(http-friendly-exception status-code error message detail)
Inputs: [status-code :- s/Int error :- s/Str message :- s/Str detail :- s/Any]
https://www.baeldung.com/rest-api-error-handling-best-practices
Inputs: [status-code :- s/Int error :- s/Str message :- s/Str detail :- s/Any] https://www.baeldung.com/rest-api-error-handling-best-practices
(resource-existence-check-interceptor resource-identifier-fn sql-query)
Inputs: [resource-identifier-fn sql-query]
resource-identifier-fn -> function used to extract param used to query the resource, must receive a context as argument. sql-query -> postgresql query that will try to find the resource using the resource identifier
Inputs: [resource-identifier-fn sql-query] resource-identifier-fn -> function used to extract param used to query the resource, must receive a context as argument. sql-query -> postgresql query that will try to find the resource using the resource identifier
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close