Creating interceptors

The helping-hands.provider.core namespace defines all the interceptors that are used for the routes of the Provider microservice. Validation interceptors validate the input parameters and make sure that all the required fields are present in the request. Validation interceptors for Provider routes work exactly in the same way as that of the Consumer microservice routes. Additionally, they validate the datatype of the rating  and since fields to make sure that the business model gets the values in the format expected by the Datomic database. The implementation of validation interceptors is shown in the following code snippet:

(ns helping-hands.provider.core  "Initializes Helping Hands Provider Service" (:require [cheshire.core ...

Get Microservices with Clojure now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.