Skip to content
Snippets Groups Projects
Commit e569b39e authored by Antoine Lambert's avatar Antoine Lambert
Browse files

docs: Small fixes

parent a7c54c4c
No related branches found
Tags v0.0.108
No related merge requests found
......@@ -50,7 +50,7 @@ Configuration and settings
* :mod:`swh.web.doc_config`: utility module used to extend the sphinx configuration
when building the documentation.
* :mod:`swh.web.manage`: Django management module for developpers.
* :mod:`swh.web.urls`: module that holds the whole URI scheme of all
* :mod:`swh.web.urls`: module that holds the whole URI scheme of all
the web applications.
* :mod:`swh.web.wsgi`: WSGI module to use when deploying the web applications
in production.
......@@ -62,25 +62,25 @@ Configuration and settings
Common utilities
""""""""""""""""
* :mod:`swh.web.common.converters`: conversion module used to transform SWH raw data
to serializable ones. It is used by :mod:`swh.web.common.service`: to convert data
* :mod:`swh.web.common.converters`: conversion module used to transform SWH raw data
to serializable ones. It is used by :mod:`swh.web.common.service`: to convert data
before transmitting then to Django views.
* :mod:`swh.web.common.exc`: module defining exceptions used in the web applications.
* :mod:`swh.web.common.highlightjs`: utility module to ease the use of the highlightjs_
library in produced Django views.
* :mod:`swh.web.common.query`: Utilities to parse data from HTTP endpoints. It is used
* :mod:`swh.web.common.query`: Utilities to parse data from HTTP endpoints. It is used
by :mod:`swh.web.common.service`.
* :mod:`swh.web.common.service`: Orchestration layer used by views module
in charge of communication with :mod:`swh.storage` to retrieve information and
in charge of communication with :mod:`swh.storage` to retrieve information and
perform conversion for the upper layer.
* :mod:`swh.web.common.swh_templatetags`: Custom Django template tags library for swh.
* :mod:`swh.web.common.throttling`: Custom request rate limiter to use with the `Django REST Framework
* :mod:`swh.web.common.throttling`: Custom request rate limiter to use with the `Django REST Framework
<http://www.django-rest-framework.org/>`_
* :mod:`swh.web.common.urlsindex`: Utilities to help the registering of endpoints
* :mod:`swh.web.common.urlsindex`: Utilities to help the registering of endpoints
for the web applications
* :mod:`swh.web.common.utils`: Utility functions used in the web applications implementation
SWH Web API application
^^^^^^^^^^^^^^^^^^^^^^^
......@@ -121,8 +121,11 @@ SWH Web browse application
endpoints implementation.
* :mod:`swh.web.browse.views.content`: Implementation of endpoints for browsing SWH contents.
* :mod:`swh.web.browse.views.directory`: Implementation of endpoints for browsing SWH directories.
* :mod:`swh.web.browse.views.identifiers`: Implementation of endpoints for browsing SWH objects
through persistent identifiers.
* :mod:`swh.web.browse.views.origin`: Implementation of endpoints for browsing SWH origins.
* :mod:`swh.web.browse.views.person`: Implementation of endpoints for browsing SWH persons.
* :mod:`swh.web.browse.views.release`: Implementation of endpoints for browsing SWH releases.
* :mod:`swh.web.browse.views.revision`: Implementation of endpoints for browsing SWH revisions.
.. _highlightjs: https://highlightjs.org/
......@@ -17,6 +17,8 @@ Release
:statuscode 200: no error
:statuscode 404: requested release can not be found in the SWH archive
**Examples:**
.. parsed-literal::
:swh_web_browse:`release/208f61cc7a5dbc9879ae6e5c2f95891e270f09ef/`
......
......@@ -4,7 +4,7 @@ Revision
.. http:get:: /browse/revision/(sha1_git)/
HTML view that displays the metadata associated to a SWH revision.
It notably shows the revision date and message but also offers
It notably shows the revision date and message but also offers
links to get more details on:
* the author
......@@ -13,10 +13,12 @@ Revision
* the history log reachable from that revision
:param string sha1_git: hexadecimal representation for the *sha1_git*
identifier of a SWH revision
identifier of a SWH revision
:statuscode 200: no error
:statuscode 404: requested revision can not be found in the SWH archive
**Examples:**
.. parsed-literal::
:swh_web_browse:`revision/f1b94134a4b879bc55c3dacdb496690c8ebdc03f/`
......@@ -24,7 +26,7 @@ Revision
.. http:get:: /browse/revision/(sha1_git)/log/
HTML view that displays the list of revisions heading to
HTML view that displays the list of revisions heading to
a given one. In other words, it shows a commit log.
The following data are displayed for each log entry:
......@@ -42,18 +44,20 @@ Revision
* *Older*: fetch and display if available the N older log entries
than the ones currently displayed
:param string sha1_git: hexadecimal representation for the *sha1_git*
identifier of a SWH revision
:query string revs_breadcrumb: used internally to store
:param string sha1_git: hexadecimal representation for the *sha1_git*
identifier of a SWH revision
:query string revs_breadcrumb: used internally to store
the navigation breadcrumbs (i.e. the list of descendant revisions
visited so far). It must be a string in the form
visited so far). It must be a string in the form
"<rev_1>[/<rev_2>/.../<rev_n>]" where rev_i corresponds to a
revision sha1_git.
:query int per_page: the number of log entries to display per page
:query int per_page: the number of log entries to display per page
(default is 20, max is 50)
:statuscode 200: no error
:statuscode 404: requested revision can not be found in the SWH archive
**Examples:**
.. parsed-literal::
:swh_web_browse:`revision/f1b94134a4b879bc55c3dacdb496690c8ebdc03f/log/`
......
......@@ -85,12 +85,12 @@ SWH Browse Urls
.. include:: uri-scheme-browse-directory.rst
.. include:: uri-scheme-browse-identifiers.rst
.. include:: uri-scheme-browse-origin.rst
.. include:: uri-scheme-browse-person.rst
.. include:: uri-scheme-browse-revision.rst
.. include:: uri-scheme-browse-release.rst
.. include:: uri-scheme-browse-identifiers.rst
.. include:: uri-scheme-browse-revision.rst
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment