Discovering features using HTTP OPTIONS

Say you have an API, and you want to communicate what sort of things a user can do on a specific endpoint. You can use external description formats like OpenAPI or JSON Schema, but sometimes it’s nice to also dynamically communicate this on the API itself. OPTIONS is the method used for that. You may know this HTTP method from CORS , but it’s general purpose is for clients to passively find out…