Adding routes
Pedestal routes are added for each of the identified APIs. The interceptor chain for each API consists of Auth, Validation, Business Logic, and Event interceptors that authorize the incoming requests, validate the required parameters, apply the business logic, and generate the relevant events, respectively, for other microservices and monitoring frameworks.
Since the interceptor chain of each route ends with a common gen-events interceptor, a :route-name must be defined for each route to make sure that they receive a unique name. If :route-name is not specified, Pedestal will try to assign the name of the last interceptor to each route and will fail with the Route names are not unique exception. Add the routes for the consumer ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access