Answer the question
In order to leave comments, you need to log in
How do you document your rest apis?
For example, I wrote my rest api, I want to let everyone use it, if there are any standard ways to create documentation or guides, cookbooks for creating documentation.
Answer the question
In order to leave comments, you need to log in
For example en.wikipedia.org/wiki/Web_Application_Description_Language . And for myself (two developers, a client and a server), google docs helps out so as not to bother.
I think that REST APi should be very simple and understandable, but I have not yet driven really complex representations.
As a dock, I usually give a minimal example of interaction in which I comment on the necessary actions and provide proper responses from the service. In principle, you can probably find a tool that will bring the example code to beautiful html, but this is more a matter of generating a dock in general and not for api.
All REST methods for me are described through annotations (Symfony 2) and then documentation is generated for them. Adding curl examples there is no problem.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question