diff --git a/swh/web/api/views/origin.py b/swh/web/api/views/origin.py --- a/swh/web/api/views/origin.py +++ b/swh/web/api/views/origin.py @@ -103,7 +103,7 @@ {resheader_link} **Allowed HTTP Methods:** :http:method:`get`, :http:method:`head`, - :http:method:`options` + :http:method:`options` :statuscode 200: no error @@ -148,7 +148,7 @@ {common_headers} **Allowed HTTP Methods:** :http:method:`get`, :http:method:`head`, - :http:method:`options` + :http:method:`options` :statuscode 200: no error :statuscode 404: requested origin can not be found in the archive @@ -177,7 +177,7 @@ {common_headers} **Allowed HTTP Methods:** :http:method:`get`, :http:method:`head`, - :http:method:`options` + :http:method:`options` :statuscode 200: no error :statuscode 404: requested origin can not be found in the archive @@ -209,7 +209,7 @@ {common_headers} **Allowed HTTP Methods:** :http:method:`get`, :http:method:`head`, - :http:method:`options` + :http:method:`options` :statuscode 200: no error :statuscode 404: requested origin can not be found in the archive @@ -261,7 +261,7 @@ {common_headers} **Allowed HTTP Methods:** :http:method:`get`, :http:method:`head`, - :http:method:`options` + :http:method:`options` :statuscode 200: no error @@ -324,7 +324,7 @@ {common_headers} **Allowed HTTP Methods:** :http:method:`get`, :http:method:`head`, - :http:method:`options` + :http:method:`options` :statuscode 200: no error @@ -373,7 +373,7 @@ {return_origin_visit_array} **Allowed HTTP Methods:** :http:method:`get`, :http:method:`head`, - :http:method:`options` + :http:method:`options` :statuscode 200: no error :statuscode 404: requested origin can not be found in the archive @@ -409,7 +409,7 @@ {return_origin_visit_array} **Allowed HTTP Methods:** :http:method:`get`, :http:method:`head`, - :http:method:`options` + :http:method:`options` :statuscode 200: no error :statuscode 404: requested origin can not be found in the archive @@ -498,7 +498,7 @@ {return_origin_visit} **Allowed HTTP Methods:** :http:method:`get`, :http:method:`head`, - :http:method:`options` + :http:method:`options` :statuscode 200: no error :statuscode 404: requested origin or visit can not be found in the @@ -541,7 +541,7 @@ {return_origin_visit} **Allowed HTTP Methods:** :http:method:`get`, :http:method:`head`, - :http:method:`options` + :http:method:`options` :statuscode 200: no error :statuscode 404: requested origin or visit can not be found in the @@ -573,7 +573,7 @@ {return_origin_visit} **Allowed HTTP Methods:** :http:method:`get`, :http:method:`head`, - :http:method:`options` + :http:method:`options` :statuscode 200: no error :statuscode 404: requested origin or visit can not be found in the @@ -614,7 +614,8 @@ {common_headers} - **Allowed HTTP Methods:** :http:method:`get`, :http:method:`head`, :http:method:`options` + **Allowed HTTP Methods:** :http:method:`get`, :http:method:`head`, + :http:method:`options` :statuscode 200: no error :statuscode 404: requested origin can not be found in the archive diff --git a/swh/web/api/views/origin_save.py b/swh/web/api/views/origin_save.py --- a/swh/web/api/views/origin_save.py +++ b/swh/web/api/views/origin_save.py @@ -43,7 +43,7 @@ * **not created**: no saving task has been created * **not yet scheduled**: saving task has been created but its - execution has not yet been scheduled + execution has not yet been scheduled * **scheduled**: the task execution has been scheduled * **succeed**: the saving task has been successfully executed * **failed**: the saving task has been executed but it failed @@ -69,7 +69,7 @@ **succeed** or **failed** **Allowed HTTP Methods:** :http:method:`get`, :http:method:`post`, - :http:method:`head`, :http:method:`options` + :http:method:`head`, :http:method:`options` :statuscode 200: no error :statuscode 400: an invalid origin type or url has been provided diff --git a/swh/web/api/views/release.py b/swh/web/api/views/release.py --- a/swh/web/api/views/release.py +++ b/swh/web/api/views/release.py @@ -40,7 +40,7 @@ target type **Allowed HTTP Methods:** :http:method:`get`, :http:method:`head`, - :http:method:`options` + :http:method:`options` :statuscode 200: no error :statuscode 400: an invalid **sha1_git** value has been provided diff --git a/swh/web/api/views/revision.py b/swh/web/api/views/revision.py --- a/swh/web/api/views/revision.py +++ b/swh/web/api/views/revision.py @@ -123,7 +123,8 @@ {return_revision_array} - **Allowed HTTP Methods:** :http:method:`get`, :http:method:`head`, :http:method:`options` + **Allowed HTTP Methods:** :http:method:`get`, :http:method:`head`, + :http:method:`options` :statuscode 200: no error :statuscode 404: no revision matching the given criteria could be found in the archive @@ -273,7 +274,8 @@ {return_revision} - **Allowed HTTP Methods:** :http:method:`get`, :http:method:`head`, :http:method:`options` + **Allowed HTTP Methods:** :http:method:`get`, :http:method:`head`, + :http:method:`options` :statuscode 200: no error :statuscode 404: no revision matching the given criteria could be found in the archive @@ -314,7 +316,7 @@ {return_revision} **Allowed HTTP Methods:** :http:method:`get`, :http:method:`head`, - :http:method:`options` + :http:method:`options` :statuscode 200: no error :statuscode 400: an invalid **sha1_git** value has been provided @@ -374,7 +376,8 @@ :>json string revision: the unique revision identifier :>json string type: the type of the directory - **Allowed HTTP Methods:** :http:method:`get`, :http:method:`head`, :http:method:`options` + **Allowed HTTP Methods:** :http:method:`get`, :http:method:`head`, + :http:method:`options` :statuscode 200: no error :statuscode 400: an invalid **sha1_git** value has been provided @@ -415,7 +418,8 @@ {return_revision_array} - **Allowed HTTP Methods:** :http:method:`get`, :http:method:`head`, :http:method:`options` + **Allowed HTTP Methods:** :http:method:`get`, :http:method:`head`, + :http:method:`options` :statuscode 200: no error :statuscode 400: an invalid **sha1_git** value has been provided diff --git a/swh/web/api/views/snapshot.py b/swh/web/api/views/snapshot.py --- a/swh/web/api/views/snapshot.py +++ b/swh/web/api/views/snapshot.py @@ -55,7 +55,7 @@ :>json string id: the unique identifier of the snapshot **Allowed HTTP Methods:** :http:method:`get`, :http:method:`head`, - :http:method:`options` + :http:method:`options` :statuscode 200: no error :statuscode 400: an invalid snapshot identifier has been provided diff --git a/swh/web/api/views/stat.py b/swh/web/api/views/stat.py --- a/swh/web/api/views/stat.py +++ b/swh/web/api/views/stat.py @@ -40,7 +40,7 @@ {common_headers} **Allowed HTTP Methods:** :http:method:`get`, :http:method:`head`, - :http:method:`options` + :http:method:`options` :statuscode 200: no error diff --git a/swh/web/api/views/vault.py b/swh/web/api/views/vault.py --- a/swh/web/api/views/vault.py +++ b/swh/web/api/views/vault.py @@ -53,7 +53,7 @@ Once the cooking task has been executed, the resulting archive can be downloaded using the dedicated endpoint - :http:get:`/api/1/vault/directory/(dir_id)/raw/`. + :http:get:`/api/1/vault/directory/(dir_id)/raw/`. Then to extract the cooked directory in the current one, use:: @@ -78,7 +78,7 @@ :>json string obj_id: the identifier of the object to cook **Allowed HTTP Methods:** :http:method:`get`, :http:method:`post`, - :http:method:`head`, :http:method:`options` + :http:method:`head`, :http:method:`options` :statuscode 200: no error :statuscode 400: an invalid directory identifier has been provided @@ -111,7 +111,7 @@ :resheader Content-Type: application/octet-stream **Allowed HTTP Methods:** :http:method:`get`, :http:method:`head`, - :http:method:`options` + :http:method:`options` :statuscode 200: no error :statuscode 400: an invalid directory identifier has been provided @@ -149,7 +149,7 @@ Once the cooking task has been executed, the resulting gitfast archive can be downloaded using the dedicated endpoint - :http:get:`/api/1/vault/revision/(rev_id)/gitfast/raw/`. + :http:get:`/api/1/vault/revision/(rev_id)/gitfast/raw/`. Then to import the revision in the current directory, use:: @@ -175,7 +175,7 @@ :>json string obj_id: the identifier of the object to cook **Allowed HTTP Methods:** :http:method:`get`, :http:method:`post`, - :http:method:`head`, :http:method:`options` + :http:method:`head`, :http:method:`options` :statuscode 200: no error :statuscode 400: an invalid revision identifier has been provided @@ -208,7 +208,7 @@ :resheader Content-Type: application/octet-stream **Allowed HTTP Methods:** :http:method:`get`, :http:method:`head`, - :http:method:`options` + :http:method:`options` :statuscode 200: no error :statuscode 400: an invalid revision identifier has been provided diff --git a/swh/web/browse/utils.py b/swh/web/browse/utils.py --- a/swh/web/browse/utils.py +++ b/swh/web/browse/utils.py @@ -1075,7 +1075,7 @@ Args: swh_objects (list): a list of dict with the following keys: * type: swh object type - (content/directory/release/revision/snapshot) + (content/directory/release/revision/snapshot) * id: swh object id snapshot_context (dict): optional parameter describing the snapshot in which the object has been found @@ -1083,7 +1083,7 @@ Returns: list: a list of dict with the following keys: * object_type: the swh object type - (content/directory/release/revision/snapshot) + (content/directory/release/revision/snapshot) * object_icon: the swh object icon to use in HTML views * swh_id: the computed swh object persistent identifier * swh_id_url: the url resolving the persistent identifier diff --git a/swh/web/browse/views/content.py b/swh/web/browse/views/content.py --- a/swh/web/browse/views/content.py +++ b/swh/web/browse/views/content.py @@ -35,7 +35,7 @@ by its hash value. The url that points to it is - :http:get:`/browse/content/[(algo_hash):](hash)/raw/` + :http:get:`/browse/content/[(algo_hash):](hash)/raw/` """ try: re_encode = bool(strtobool(request.GET.get('re_encode', 'false'))) @@ -172,7 +172,7 @@ by its hash value. The url that points to it is - :http:get:`/browse/content/[(algo_hash):](hash)/` + :http:get:`/browse/content/[(algo_hash):](hash)/` """ try: algo, checksum = query.parse_hash(query_string) diff --git a/swh/web/browse/views/directory.py b/swh/web/browse/views/directory.py --- a/swh/web/browse/views/directory.py +++ b/swh/web/browse/views/directory.py @@ -32,7 +32,7 @@ by its sha1_git value. The url that points to it is - :http:get:`/browse/directory/(sha1_git)/[(path)/]` + :http:get:`/browse/directory/(sha1_git)/[(path)/]` """ root_sha1_git = sha1_git try: diff --git a/swh/web/browse/views/origin.py b/swh/web/browse/views/origin.py --- a/swh/web/browse/views/origin.py +++ b/swh/web/browse/views/origin.py @@ -156,7 +156,7 @@ for a swh origin identified by its id or its url. The url that points to it is - :http:get:`/browse/origin/[(origin_type)/url/](origin_url)/visits/`. + :http:get:`/browse/origin/[(origin_type)/url/](origin_url)/visits/`. """ try: origin_info = get_origin_info(origin_url, origin_type) diff --git a/swh/web/browse/views/snapshot.py b/swh/web/browse/views/snapshot.py --- a/swh/web/browse/views/snapshot.py +++ b/swh/web/browse/views/snapshot.py @@ -39,7 +39,7 @@ in a snapshot. The url that points to it is - :http:get:`/browse/snapshot/(snapshot_id)/directory/[(path)/]` + :http:get:`/browse/snapshot/(snapshot_id)/directory/[(path)/]` """ origin_type = request.GET.get('origin_type', None) origin_url = request.GET.get('origin_url', None) @@ -58,7 +58,7 @@ collected in a snapshot. The url that points to it is - :http:get:`/browse/snapshot/(snapshot_id)/content/(path)/` + :http:get:`/browse/snapshot/(snapshot_id)/content/(path)/` """ language = request.GET.get('language', None) return browse_snapshot_content(request, snapshot_id=snapshot_id, path=path, @@ -73,7 +73,7 @@ the commit log) collected in a snapshot. The url that points to it is - :http:get:`/browse/snapshot/(snapshot_id)/log/` + :http:get:`/browse/snapshot/(snapshot_id)/log/` """ return browse_snapshot_log(request, snapshot_id=snapshot_id) @@ -86,7 +86,7 @@ collected in a snapshot. The url that points to it is - :http:get:`/browse/snapshot/(snapshot_id)/branches/` + :http:get:`/browse/snapshot/(snapshot_id)/branches/` """ return browse_snapshot_branches(request, snapshot_id=snapshot_id) @@ -99,6 +99,6 @@ collected in a snapshot. The url that points to it is - :http:get:`/browse/snapshot/(snapshot_id)/releases/` + :http:get:`/browse/snapshot/(snapshot_id)/releases/` """ return browse_snapshot_releases(request, snapshot_id=snapshot_id) diff --git a/swh/web/common/utils.py b/swh/web/common/utils.py --- a/swh/web/common/utils.py +++ b/swh/web/common/utils.py @@ -226,7 +226,7 @@ dict: a dict with the following keys: * **swh_id_parsed (swh.model.identifiers.PersistentId)**: - the parsed identifier + the parsed identifier * **browse_url (str)**: the url for browsing the pointed object Raises: