January 2018
Intermediate to advanced
336 pages
7h 56m
English
Routes for Service are very similar to the Provider service. It also defines routes to create, modify, rate, and delete services. The route to create a service expects a provider ID as a mandatory parameter to make sure that each service is associated with a provider at the time of creation. Also, any change in provider ID using the PUT /services/:id route is validated against the Provider service to make sure that the specified provider exists and is registered with the Helping Hands application. The routes are shown in the following code snippet:
;; Tabular routes(def routes #{["/services/:id" :get (conj common-interceptors `auth `core/validate-id-get `core/get-service `gen-events) :route-name :service-get] ["/services/:id" ...Read now
Unlock full access