Liking cljdoc? Tell your friends :D

sqlite-component.interceptors


http-friendly-exceptionclj

(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
sourceraw docstring

resource-existence-check-interceptorclj

(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
sourceraw docstring

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

× close