Next: , Previous: , Up: Top   [Contents][Index]

8 API configuration

Some aspects of the api can be configured either passing the configuration parameters to the start-api function, or via the configure-api function.

Common Lisp Function: (configure-apiapi-or-name &rest options)

Configure or reconfigure an already existent api


Next: , Up: API configuration   [Contents][Index]

8.1 CORS configuration

APIs can be configured to append CORS2 headers to responses.

Syntax:

(configure-api api '(:cors &rest options))

Up: CORS configuration   [Contents][Index]

8.1.1 Options:


Previous: , Up: API configuration   [Contents][Index]

8.2 Logging configuration

Log api requests and responses.

Syntax:

(configure-api '(:logging &rest options))

Then evaluate :cl:function::start-api-logging

Common Lisp Function: (start-api-logging)

Footnotes

(2)

https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS


Previous: , Up: API configuration   [Contents][Index]