From aaca60ef21f677a3c04736f970bac257836e157f Mon Sep 17 00:00:00 2001 From: Nehal Nevle Date: Thu, 23 Jan 2020 17:28:57 +0530 Subject: [PATCH 1/6] Changed documentation of Api v3 --- docs/api/v3.rst | 4 ++-- media/css/core.css | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/api/v3.rst b/docs/api/v3.rst index ccc00edcb9e..8608bb03bfa 100644 --- a/docs/api/v3.rst +++ b/docs/api/v3.rst @@ -161,7 +161,7 @@ Project details }, "_links": { "_self": "/api/v3/projects/pip/", - "versions": "/api/v3/projects/pip/versions/", + "versions": "/api/v3/project/pip/version/", "builds": "/api/v3/projects/pip/builds/", "subprojects": "/api/v3/projects/pip/subprojects/", "superproject": "/api/v3/projects/pip/superproject/", @@ -315,7 +315,7 @@ Version detail "identifier": "3a6b3995c141c0888af6591a59240ba5db7d9914", "ref": "19.0.2", "built": true, - "active": true, + "active": true "type": "tag", "last_build": "{BUILD}", "downloads": { diff --git a/media/css/core.css b/media/css/core.css index 8b1fbdb84ff..572741e126e 100644 --- a/media/css/core.css +++ b/media/css/core.css @@ -516,6 +516,9 @@ div.module.search-dashboard input { text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5); text-decoration: none; } + #project_bar div.project-view-docs > a:hover{ + background-color: #3e8e41 + } #project_bar .project-title { padding: 0; } #project_bar .project-title h1 { margin: 0 0 5px; padding: 0; } From b584b760eab85fc9f415f678aff86463d3579f4c Mon Sep 17 00:00:00 2001 From: Nehal Nevle Date: Sun, 26 Jan 2020 10:58:43 +0530 Subject: [PATCH 2/6] Did the requrired changes --- docs/api/v3.rst | 4 ++-- media/css/core.css | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/docs/api/v3.rst b/docs/api/v3.rst index 8608bb03bfa..5cea07175a7 100644 --- a/docs/api/v3.rst +++ b/docs/api/v3.rst @@ -161,7 +161,7 @@ Project details }, "_links": { "_self": "/api/v3/projects/pip/", - "versions": "/api/v3/project/pip/version/", + "versions": "/api/v3/projects/pip/versions/", "builds": "/api/v3/projects/pip/builds/", "subprojects": "/api/v3/projects/pip/subprojects/", "superproject": "/api/v3/projects/pip/superproject/", @@ -294,7 +294,7 @@ Versions listing Version detail ++++++++++++++ -.. http:get:: /api/v3/projects/(string:project_slug)/versions/(string:version_slug)/ +.. http:get:: /api/v3/projects/{project}/versions/{version} Retrieve details of a single version. diff --git a/media/css/core.css b/media/css/core.css index 572741e126e..8b1fbdb84ff 100644 --- a/media/css/core.css +++ b/media/css/core.css @@ -516,9 +516,6 @@ div.module.search-dashboard input { text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5); text-decoration: none; } - #project_bar div.project-view-docs > a:hover{ - background-color: #3e8e41 - } #project_bar .project-title { padding: 0; } #project_bar .project-title h1 { margin: 0 0 5px; padding: 0; } From 82ab4fafcd1f19f9ff95daf5b02a41d41f44e9c4 Mon Sep 17 00:00:00 2001 From: Nehal Nevle Date: Tue, 28 Jan 2020 18:41:20 +0530 Subject: [PATCH 3/6] made the changes in version update documentationi --- docs/api/v3.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api/v3.rst b/docs/api/v3.rst index 5cea07175a7..405b4cefa93 100644 --- a/docs/api/v3.rst +++ b/docs/api/v3.rst @@ -161,7 +161,7 @@ Project details }, "_links": { "_self": "/api/v3/projects/pip/", - "versions": "/api/v3/projects/pip/versions/", + "versions": "/api/v3/project/pip/version/", "builds": "/api/v3/projects/pip/builds/", "subprojects": "/api/v3/projects/pip/subprojects/", "superproject": "/api/v3/projects/pip/superproject/", @@ -346,7 +346,7 @@ Version detail Version update ++++++++++++++ -.. http:patch:: /api/v3/projects/(string:project_slug)/version/(string:version_slug)/ +.. http:patch:: /api/v3/projects/{project}/versions/{version} Update a version. From 80688e32aa394bc90272d43a9c9eb5c6def129ed Mon Sep 17 00:00:00 2001 From: Nehal Nevle Date: Tue, 28 Jan 2020 20:42:12 +0530 Subject: [PATCH 4/6] Reverted unwanted changes --- docs/api/v3.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/api/v3.rst b/docs/api/v3.rst index 405b4cefa93..80f4f8537b2 100644 --- a/docs/api/v3.rst +++ b/docs/api/v3.rst @@ -161,7 +161,7 @@ Project details }, "_links": { "_self": "/api/v3/projects/pip/", - "versions": "/api/v3/project/pip/version/", + "versions": "/api/v3/projects/pip/versions/", "builds": "/api/v3/projects/pip/builds/", "subprojects": "/api/v3/projects/pip/subprojects/", "superproject": "/api/v3/projects/pip/superproject/", @@ -315,7 +315,7 @@ Version detail "identifier": "3a6b3995c141c0888af6591a59240ba5db7d9914", "ref": "19.0.2", "built": true, - "active": true + "active": true, "type": "tag", "last_build": "{BUILD}", "downloads": { @@ -346,7 +346,7 @@ Version detail Version update ++++++++++++++ -.. http:patch:: /api/v3/projects/{project}/versions/{version} +.. http:patch:: /api/v3/projects/(string:{projects})/versions/(string:{version})/ Update a version. @@ -365,7 +365,7 @@ Version update .. sourcecode:: json { - "active": true, + "active": true } :statuscode 204: Updated successfully From f27082de7466760e439f4fd2de94d308ff331673 Mon Sep 17 00:00:00 2001 From: Nehal Nevle Date: Mon, 3 Feb 2020 17:32:26 +0530 Subject: [PATCH 5/6] Update v3.rst --- docs/api/v3.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/v3.rst b/docs/api/v3.rst index 80f4f8537b2..7c388d051f9 100644 --- a/docs/api/v3.rst +++ b/docs/api/v3.rst @@ -294,7 +294,7 @@ Versions listing Version detail ++++++++++++++ -.. http:get:: /api/v3/projects/{project}/versions/{version} +.. http:get:: /api/v3/projects/(string:project_slug)/versions/(string:version_slug)/ Retrieve details of a single version. From 66d40e380c45ba7bec00608aaecd0f9a65843f61 Mon Sep 17 00:00:00 2001 From: Nehal Nevle Date: Tue, 4 Feb 2020 17:18:16 +0530 Subject: [PATCH 6/6] Update docs/api/v3.rst Co-Authored-By: Santos Gallegos --- docs/api/v3.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/v3.rst b/docs/api/v3.rst index 7c388d051f9..c1756b7eedf 100644 --- a/docs/api/v3.rst +++ b/docs/api/v3.rst @@ -346,7 +346,7 @@ Version detail Version update ++++++++++++++ -.. http:patch:: /api/v3/projects/(string:{projects})/versions/(string:{version})/ +.. http:patch:: /api/v3/projects/(string:project_slug)/versions/(string:version_slug)/ Update a version.