Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OpenAPI specifications for get source
- Loading branch information
1 parent
6888f1e
commit be1d559
Showing
3 changed files
with
68 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
13 changes: 13 additions & 0 deletions
13
src/api/public/apidocs-new/components/schemas/source/projects.yaml
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,13 @@ | ||
type: array | ||
items: | ||
type: object | ||
properties: | ||
entry: | ||
type: object | ||
properties: | ||
name: | ||
type: string | ||
xml: | ||
attribute: true | ||
xml: | ||
name: directory |
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,53 @@ | ||
get: | ||
summary: List all the projects | ||
description: | | ||
Get a list of projects | ||
parameters: | ||
- name: deleted | ||
in: query | ||
schema: | ||
type: integer | ||
description: Set to 1 to include deleted projects in the listing. This is available for Admins only. | ||
example: 0 | ||
required: false | ||
|
||
responses: | ||
'200': | ||
description: OK. The request has succeeded. | ||
content: | ||
application/xml; charset=utf-8: | ||
schema: | ||
$ref: '../components/schemas/source/projects.yaml' | ||
examples: | ||
existing_projects: | ||
entry: | ||
name: "home:Admin" | ||
deleted_projects: | ||
entry: | ||
name: "home:Admin" | ||
|
||
'400': | ||
description: Wrong value for deleted parameter. | ||
content: | ||
application/xml; charset=utf-8: | ||
schema: | ||
$ref: '../components/schemas/api_response.yaml' | ||
examples: | ||
not boolean: | ||
value: | ||
code: 400 | ||
summary: "not boolean" | ||
'401': | ||
$ref: '../components/responses/unauthorized.yaml' | ||
'403': | ||
description: | | ||
No permission to access deleted projects. | ||
content: | ||
application/xml; charset=utf-8: | ||
schema: | ||
$ref: '../components/schemas/api_response.yaml' | ||
example: | ||
code: 'no_permission_for_deleted' | ||
summary: only admins can see deleted projects. | ||
tags: | ||
- Sources - Projects |