insomnia-lab / libreant

{,e}Book archive, focused on small grassroot archives, distributed search, support to different kind of objects
GNU Affero General Public License v3.0
18 stars 8 forks source link

Rest api docs #168

Open ael-code opened 9 years ago

ael-code commented 9 years ago

How do we want to provide docs for REST API?

I'll try to list some different options:

What option do you like the most? Do you know other tools/ways to documenting the REST API?

boyska commented 7 years ago

The only solutions that seem right to me are the sphinx-based ones, that is sphinxcontrib.httpdomain and sphinx-swagger. However, I'm not totally sure that sphinx-swagger does what I think it does or what you say it does. I say so because its directive

.. swaggerurl:: URL

seems very strange; why should it get an URL just to document my endpoints? I'd like something to just generate documentation to be put inside the sphinx doc, without requiring a special "service".