-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
97 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# /api/v3/project_storage/{id}/open | ||
--- | ||
get: | ||
summary: Open the project storage | ||
operationId: open_project_storage | ||
tags: | ||
- File Links | ||
description: |- | ||
Gets a redirect to the location of the project storage's remote origin. If the project storage has a project | ||
folder, it is opened at this location. If not, the storage root is opened. | ||
parameters: | ||
- name: id | ||
description: Project storage id | ||
in: path | ||
required: true | ||
schema: | ||
type: integer | ||
example: 1337 | ||
responses: | ||
'303': | ||
description: Redirect | ||
headers: | ||
Location: | ||
schema: | ||
type: string | ||
format: uri | ||
'403': | ||
content: | ||
application/hal+json: | ||
schema: | ||
$ref: '../components/schemas/error_response.yml' | ||
example: | ||
_type: Error | ||
errorIdentifier: urn:openproject-org:api:v3:errors:Unauthenticated | ||
message: You are not authorized to access this resource. | ||
description: |- | ||
Returned if the authorization token of the current user grants no permission to access the remote storage. | ||
'404': | ||
content: | ||
application/hal+json: | ||
schema: | ||
$ref: '../components/schemas/error_response.yml' | ||
example: | ||
_type: Error | ||
errorIdentifier: urn:openproject-org:api:v3:errors:NotFound | ||
message: The requested resource could not be found. | ||
description: |- | ||
Returned if the project storage does not exist or the client does not have sufficient permissions to see it. | ||
**Required permission:** view file links |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# /api/v3/storage/{id}/open | ||
--- | ||
get: | ||
summary: Open the storage | ||
operationId: open_storage | ||
tags: | ||
- File Links | ||
description: |- | ||
Gets a redirect to the location of the storage's remote origin. The storage's files root should be the target | ||
location. | ||
parameters: | ||
- name: id | ||
description: Storage id | ||
in: path | ||
required: true | ||
schema: | ||
type: integer | ||
example: 1337 | ||
responses: | ||
'303': | ||
description: Redirect | ||
headers: | ||
Location: | ||
schema: | ||
type: string | ||
format: uri | ||
'404': | ||
content: | ||
application/hal+json: | ||
schema: | ||
$ref: '../components/schemas/error_response.yml' | ||
example: | ||
_type: Error | ||
errorIdentifier: urn:openproject-org:api:v3:errors:NotFound | ||
message: The requested resource could not be found. | ||
description: |- | ||
Returned if the storage does not exist or the client does not have sufficient permissions to see it. | ||
**Required permission:** view file links |