Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of OPTIONS in /core/http-methods (is OPTIONS a 'standard' HTTP method?) #633

Open
lathoub opened this issue Nov 1, 2024 · 2 comments

Comments

@lathoub
Copy link

lathoub commented Nov 1, 2024

Reading /http-methods I'm unsure if OPTIONS is a 'standard' method (or 'other' method as described here) (It is not a 'optional' method).

Upcoming OGC API - Features - Part 4: Create, Replace, Update and Delete (in draft) has a requirement for the use of OPTIONS.

Requirement 15 A:
The server SHALL support the HTTP OPTIONS operation at each resource endpoint

If I read the text correctly, only apply 'standard' HTTP methods (GET/POST/PUT/PATCH/DELETE). OPTIONS is (again, according to the text) an 'other' method and thus not allowed.

The test code however allows OPTIONS as a standard method.

Is OPTIONS a standard method and thus allowed?

@sergei-maertens
Copy link
Contributor

I would say so, considering the entire CORS mechanism in browsers depends on them.

Interestlingly the test code also checks for TRACE, which is also not mentioned in the published text.

@dvh
Copy link
Collaborator

dvh commented Nov 6, 2024

I would say yes, and just follow the OpenAPI standard which supports GET/POST/PUT/PATCH/DELETE/OPTIONS/HEAD/TRACE as mentioned in #629

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants