Creating routes

Interceptors in Pedestal are attached to routes that define the endpoints for clients to interact with the application. Pedestal provides three prominent ways of defining Routes (http://pedestal.io/reference/routing-quick-reference#_routes)—verbose, table, and terse. All three are defined as Clojure data structures with verbose being defined as a Map (https://clojure.org/reference/data_structures#Maps), table as a set (https://clojure.org/reference/data_structures#Sets), and terse as a vector (https://clojure.org/reference/data_structures#Vectors). These three formats are defined for convenience only. Pedestal internally converts all route definitions into the verbose form before processing them using the convenient function ...

Get Microservices with Clojure now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.