Liking cljdoc? Tell your friends :D

martian.core


bootstrapclj/s

(bootstrap api-root concise-handlers & [{:keys [produces consumes] :as opts}])

Creates a martian instance from a martian description

Creates a martian instance from a martian description
sourceraw docstring

bootstrap-swaggerclj/s

(bootstrap-swagger api-root swagger-json & [opts])

Creates a martian instance from a swagger spec

(let [m (bootstrap-swagger "https://api.org" swagger-spec)] (url-for m :load-pet {:id 123}))

;; => https://api.org/pets/123

Creates a martian instance from a swagger spec

(let [m (bootstrap-swagger "https://api.org" swagger-spec)]
  (url-for m :load-pet {:id 123}))

;; => https://api.org/pets/123
sourceraw docstring

default-interceptorsclj/s

source

exploreclj/s

(explore {:keys [handlers]})
(explore {:keys [handlers]} route-name)
source

find-handlerclj/s

(find-handler handlers route-name)
source

handler-forclj/s

(handler-for m route-name)
source

Martiancljs

source

request-forclj/s

(request-for martian route-name)
(request-for {:keys [handlers interceptors] :as martian} route-name params)
source

response-forclj/s

(response-for martian route-name)
(response-for {:keys [handlers interceptors] :as martian} route-name params)
source

update-handlerclj/s

(update-handler {:keys [handlers] :as m} route-name update-fn & update-args)

Update a handler in the martian record with the provided route-name e.g. add route-specific interceptors: (update-handler m :load-pet assoc :interceptors [an-interceptor])

Update a handler in the martian record with the provided route-name
e.g. add route-specific interceptors:
(update-handler m :load-pet assoc :interceptors [an-interceptor])
sourceraw docstring

url-forclj/s

(url-for martian route-name)
(url-for {:keys [api-root handlers]} route-name params)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close