adl.to-json-routes
Application Description Language: generate RING routes for REST requests.
declarations
(declarations handlers-map)
Generate a forward declaration of all JSON route handlers we're going to
generate for this `application`.
defroutes
(defroutes handlers-map)
Generate JSON routes for all queries implied by this ADL `application` spec.
generate-handler-body
(generate-handler-body query)
Generate and return the function body for the handler for this `query`.
generate-handler-src
(generate-handler-src handler-name query-map method)
Generate and return the handler for this `query`.
handler
(handler query-key queries-map application)
Generate declarations for handlers from query with this `query-key` in this `queries-map`
taken from within this `application`. This method must follow the structure of
`to-hugsql-queries/queries` quite closely, because we must generate the same names.
make-handlers-map
(make-handlers-map application)
Analyse this `application` and generate from it a map of the handlers to be output.
to-json-routes
(to-json-routes application)
Generate a `/routes/auto-json.clj` file for this `application`.