-
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.
Merge pull request #14379 from opf/chore/maintain-projects-api-spec
[chore] maintained project collection api specification
- Loading branch information
Showing
7 changed files
with
93 additions
and
97 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Example: Project collection | ||
--- | ||
value: | ||
_type: Collection | ||
count: 2 | ||
total: 2 | ||
pageSize: 20 | ||
offset: 1 | ||
_embedded: | ||
elements: | ||
- _hint: Project resource shortened for brevity | ||
id: 1 | ||
identifier: initialproject | ||
name: DeathStar construction | ||
active: true | ||
public: true | ||
- _hint: Project resource shortened for brevity | ||
id: 2 | ||
identifier: mysecret | ||
name: Palpatine's secret plan | ||
active: true | ||
public: false | ||
_links: | ||
self: | ||
href: '/api/v3/projects?filters=%5B%5D&offset=1&pageSize=20' | ||
jumpTo: | ||
href: '/api/v3/projects?filters=%5B%5D&offset=%7Boffset%7D&pageSize=20' | ||
templated: true | ||
changeSize: | ||
href: '/api/v3/projects?filters=%5B%5D&offset=1&pageSize=%7Bsize%7D' | ||
templated: true | ||
representations: | ||
- href: '/projects.csv?filters=%5B%5D&offset=1&pageSize=20' | ||
identifier: csv | ||
type: text/csv | ||
title: CSV | ||
- href: '/projects.xls?filters=%5B%5D&offset=1&pageSize=20' | ||
identifier: xls | ||
type: application/vnd.ms-excel | ||
title: XLS |
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 was deleted.
Oops, something went wrong.
38 changes: 38 additions & 0 deletions
38
docs/api/apiv3/components/schemas/project_collection_model.yml
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,38 @@ | ||
# Schema: ProjectCollectionModel | ||
--- | ||
allOf: | ||
- $ref: './collection_model.yml' | ||
- type: object | ||
required: | ||
- _links | ||
- _embedded | ||
properties: | ||
_links: | ||
type: object | ||
required: | ||
- self | ||
- representations | ||
properties: | ||
self: | ||
allOf: | ||
- $ref: "./link.yml" | ||
- description: |- | ||
This file links collection | ||
**Resource**: ProjectStorageCollectionModel | ||
representations: | ||
type: array | ||
items: | ||
allOf: | ||
- $ref: "./link.yml" | ||
- description: |- | ||
A project collection representation in a specific file format. | ||
_embedded: | ||
type: object | ||
required: | ||
- elements | ||
properties: | ||
elements: | ||
type: array | ||
items: | ||
$ref: './project_model.yml' |
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