Skip to content

trustcentric/Sphinx-HTTP-domain

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sphinx HTTP Domain

Description

Sphinx plugin to add an HTTP domain, allowing the documentation of RESTful HTTP methods.

You can document simple methods, wrap any arguments in the path with curly-braces:

.. http:method:: GET /api/foo/bar/{id}/{slug}

   :arg id: An id
   :arg slug: A slug

   Retrieve list of foobars matching given id.

Query string parameters are also supported:

.. http:method:: GET /api/foo/bar/?id

   :param id: An id

   Search for a list of foobars matching given id.

This is very rudimentary and experimental code at the moment.

Installation

Run pip install sphinx-http-domain.

Then, add sphinx_http_domain to your conf.py:

extensions = ['sphinx_http_domain']

Development

For contributions, please fork this project on GitHub!

Author

David Zentgraf (https://github.com/deceze)

Contributors

About

Sphinx domain to mark up RESTful web services in ReST.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published