Skip to content

HTTP Options Response Body #33

Answered by ca0abinary
nateklaiber asked this question in Q&A
Discussion options

You must be logged in to vote

@nateklaiber In this case I would focus on this part of the spec

The response body, if any, SHOULD also include information about the communication options.

The example you provided uses OPTIONS to provide data not specifically related to "communication options" (e.g.: accepted verbs, CORS, expirations, and the like) but rather as an SDK documentation resource.

It's a clever idea, but I would encourage a well-known endpoint as opposed to a solution like this. For example the swagger integration with .net via Swashbuckle provides a /swagger endpoint and the ruby gem rswag provides /api-docs as a browsable resource useful both programmatically and for end users.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@nateklaiber
Comment options

@travisgosselin
Comment options

@nateklaiber
Comment options

@travisgosselin
Comment options

Answer selected by travisgosselin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants