You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First and foremost, thank you for your work on this library! It has been crucial in my API development.
I am using custom mime-types in the Accept header as the manner by which I version my API. For instance: application/vnd.my-app.v1+json. A plug detects the custom mime-type and sets a value in the conn to the mapped version number, something like: :v1. Then the controller, views, etc can pattern match on the conn version value to fork with different behaviors. For more info on this technique see this blog post.
Due to this API versioning implementation, it seems I am forced to document all API versions within the same file. Obviously, this makes the versions of the API harder to grok.
It would be nice if there was a way for me to generate my API version docs to different files even though the same module is implementing them.
Maybe you already know of a way to accomplish this with no changes to bureaucrat? If not, this could possibly be accomplished through:
Configuring the output READMEs to be dependent on the test file and not the module under test
Providing configuration options for the module under test that could look at something in the conn and send the output to a different configured file
What are your thoughts? Thanks again!
The text was updated successfully, but these errors were encountered:
First and foremost, thank you for your work on this library! It has been crucial in my API development.
I am using custom mime-types in the
Accept
header as the manner by which I version my API. For instance:application/vnd.my-app.v1+json
. A plug detects the custom mime-type and sets a value in theconn
to the mapped version number, something like::v1
. Then the controller, views, etc can pattern match on theconn
version value to fork with different behaviors. For more info on this technique see this blog post.Due to this API versioning implementation, it seems I am forced to document all API versions within the same file. Obviously, this makes the versions of the API harder to grok.
It would be nice if there was a way for me to generate my API version docs to different files even though the same module is implementing them.
Maybe you already know of a way to accomplish this with no changes to bureaucrat? If not, this could possibly be accomplished through:
What are your thoughts? Thanks again!
The text was updated successfully, but these errors were encountered: