March 2020
Intermediate to advanced
392 pages
10h 10m
English
These services need to be reachable via URLs, just as with the user service. Remember that Vapor's way of addressing that is by using a router. The router compares incoming request URLs to what we have told it to do and will execute the desired function. We need to do this for every service that is serving as a Representational State Transfer (REST) API.
For this service, we will need routes that cover the following features:
The last two features—updating, creating, and deleting products and categories—are of course reserved for administrators and require JWT verification with the correct user level. ...
Read now
Unlock full access