-
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 #16477 from opf/bug/40642-api-doc-get-/projects-mi…
…ssing-params-and-incorrect-response [#40642] fixed API spec merging issue with collection links
- Loading branch information
Showing
7 changed files
with
88 additions
and
46 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,13 @@ | ||
# Schema: CollectionLinks | ||
--- | ||
type: object | ||
required: | ||
- self | ||
properties: | ||
self: | ||
allOf: | ||
- $ref: './link.yml' | ||
- description: |- | ||
This collection resource. | ||
**Resource**: Collection |
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
33 changes: 33 additions & 0 deletions
33
docs/api/apiv3/components/schemas/offset_paginated_collection_links.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,33 @@ | ||
# Schema: OffsetPaginatedCollectionLinks | ||
--- | ||
allOf: | ||
- $ref: './collection_links.yml' | ||
- type: object | ||
required: | ||
- jumpTo | ||
- changeSize | ||
properties: | ||
jumpTo: | ||
allOf: | ||
- $ref: './link.yml' | ||
- description: A templated link to jump to a given offset. | ||
changeSize: | ||
allOf: | ||
- $ref: './link.yml' | ||
- description: A templated link to change the current page size. | ||
previousByOffset: | ||
allOf: | ||
- $ref: './link.yml' | ||
- description: |- | ||
A link to the previous page of the collection. | ||
# Conditions | ||
- The collection is not on the first page. | ||
nextByOffset: | ||
allOf: | ||
- $ref: './link.yml' | ||
- description: |- | ||
A link to the next page of the collection. | ||
# Conditions | ||
- The collection is not on the last page. |
22 changes: 22 additions & 0 deletions
22
docs/api/apiv3/components/schemas/offset_paginated_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,22 @@ | ||
# Schema: OffsetPaginatedCollectionModel | ||
--- | ||
allOf: | ||
- $ref: './collection_model.yml' | ||
- type: object | ||
required: | ||
- pageSize | ||
- offset | ||
- _links | ||
properties: | ||
pageSize: | ||
type: integer | ||
description: |- | ||
The amount of elements per page. If not set by the request this value defaults to the server's system | ||
settings. | ||
minimum: 0 | ||
offset: | ||
type: integer | ||
description: The page offset indicating on which page the element collection starts. | ||
minimum: 0 | ||
_links: | ||
$ref: './offset_paginated_collection_links.yml' |
16 changes: 1 addition & 15 deletions
16
docs/api/apiv3/components/schemas/principal_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
32 changes: 12 additions & 20 deletions
32
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
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