This repository has been archived by the owner on May 23, 2024. It is now read-only.
Documenting parameter and representation examples #41
Comments
Can drakov handle multiple examples?
or
Also, didn't realize both Wachowski brothers were sisters now. |
Also, this has the issue of data that wouldn't go with other data could be returned. I.e. we might only return a So the specific data may be valid, but the overall could be wrong |
|
It might actually be worth just moving the |
3 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
For the API Blueprint files (and coming OAI work planned for in 2.0, #16), to be useful in a mock server environment like Drakov, we need some sort of way to document
@api-param
and representation data examples.I think documenting them on representations would be easily accomplished with an
@api-example
annotation:Thankfully, this isn't really necessary for enum's as Drakov picks the first item in the enum as the example. For parameters, however, it's a bit more complicated because of the existing language syntax in place for documenting them.
The current idea that I've been running with is to document examples within backticks.
And compiled into the Blueprint, it would appear as:
The text was updated successfully, but these errors were encountered: