Liking cljdoc? Tell your friends :D

shopify.resources.routes

Functions to determine the endpoint of a resource. You probably don't need to use these; use the shopify.resources namespace to make requests.

Functions to determine the endpoint of a resource. You probably don't need to use these; use the `shopify.resources` namespace to make requests.
raw docstring

endpointclj

(endpoint resource-type cardinality params)

Takes a resource type keword (e.g. :products), a cardinality (:member or :collection), and a map of params. Returns a partial request map of :uri and :params.

Takes a resource type keword (e.g. `:products`), a cardinality (`:member` or `:collection`), and a map of params. Returns a partial request map of `:uri` and `:params`.
sourceraw docstring

extract-path-paramsclj

(extract-path-params resource-type member-attrs)

Takes a resource type-keyword and a map of member attributes, and returns a map of path params and a map of the remaining attributes

Takes a resource type-keyword and a map of member attributes, and returns a map of path params and a map of the remaining attributes
sourceraw docstring

path-param-keys-for-resourceclj

source

path-paramsclj

source

pick-routeclj

(pick-route routes params)

Pick the first satisfyable route template in a collection, given a collection of available keys.

Pick the first satisfyable route template in a collection, given a collection of available keys.
sourceraw docstring

prepare-path-paramscljmultimethod

Takes a resource type keyword and a map of member attributes, and returns a possibly altered map suitable for extracting path params.

Takes a resource type keyword and a map of member attributes, and returns a possibly altered map suitable for extracting path params.
sourceraw docstring

render-routeclj

(render-route route params)

Given a route template and a map of params, return a partial request map of :uri and :params.

Given a route template and a map of params, return a partial request map of `:uri` and `:params`.
sourceraw docstring

resource-typesclj

source

routes-for-resourceclj

(routes-for-resource resource-type cardinality)

Takes a resource type keword (e.g. :products) and cardinality (:member or :collection) and returns a sequence of routes.

Takes a resource type keword (e.g. `:products`) and cardinality (`:member` or `:collection`) and returns a sequence of routes.
sourceraw docstring

transform-parent-resource-attrsclj

(transform-parent-resource-attrs attrs)
source

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

× close