HomeSoftware Heritage

api: Remove duplicated documentation and improve it
988c88f9896dUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

api: Remove duplicated documentation and improve it

Previously, the web api was documented in two different places:

  • directly in the Python code through the use of decorators from the apidoc module
  • in swh-web sphinx documentation, using the httpdomain extension

The documentation now only relies on using sphinx and httpdomain.
Sphinx documentation have been spread in relevant docstrings of the api
endpoints implementation and the apidoc module now parse those docstrings
to extract the relevant info (endpoint description, url arguments and
query parameters, desciption of the json object returned, ...).

Web api HTML interface has also been improved in terms of semantics
and design.

Closes T1105

Details

Provenance
anlambertAuthored on Feb 20 2018, 12:12 PM
seirlPushed on Jun 26 2018, 11:47 AM
Parents
R65:0e9c50fd9d9e: swh.web.common.utils: Adapt persistent identifier computations
Branches
Unknown
Tags
Unknown