From 26d0e82dfdf8a6e447629647a09cd4747d2a9ce8 Mon Sep 17 00:00:00 2001 From: Jan Sandbrink Date: Tue, 25 Nov 2014 14:46:50 +0100 Subject: [PATCH] specify better suited permissions - also fix an embarrassing typo ^^ [ci skip] --- doc/apiv3-documentation.apib | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/apiv3-documentation.apib b/doc/apiv3-documentation.apib index f254e1355c..21dff0476c 100644 --- a/doc/apiv3-documentation.apib +++ b/doc/apiv3-documentation.apib @@ -1112,7 +1112,7 @@ but are also limited to the projects that the current user is allowed to see. Returned if the version does not exist or the client does not have sufficient permissions to see it. - **Required permission:** view project (any project where the version is available) + **Required permission:** view work packages **or** manage versions (any project where the given version is available) *Note: A client without sufficient permissions shall not be able to test for the existence of a version. That's why a 404 is returned here, even if a 403 might be more appropriate.* @@ -1727,7 +1727,7 @@ Note that due to sharing this might be more than the versions *defined* by that Returned if the project does not exist or the client does not have sufficient permissions to see it. - **Required permission:** view project + **Required permission:** view work packages **or** manage versions (on given project) *Note: A client without sufficient permissions shall not be able to test for the existence of a project. That's why a 404 is returned here, even if a 403 might be more appropriate.* @@ -1764,21 +1764,21 @@ Note that due to sharing this might be more than the versions *defined* by that "status": "Open" } -## View Priority [GET] +## View Version [GET] + Parameters - + id (required, integer, `1`) ... priority id + + id (required, integer, `1`) ... version id + Response 200 (application/hal+json) - [Priority][] + [Version][] + Response 404 (application/hal+json) Returned if the version does not exist or the client does not have sufficient permissions to see it. - **Required permission:** view project (any project where the version is available) + **Required permission:** view work packages **or** manage versions (any project where the version is available) *Note: A client without sufficient permissions shall not be able to test for the existence of a version. That's why a 404 is returned here, even if a 403 might be more appropriate.*