-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update get.yaml to improve readability and accuracy of page content r…
…etrieval
- Loading branch information
Showing
1 changed file
with
27 additions
and
7 deletions.
There are no files selected for viewing
34 changes: 27 additions & 7 deletions
34
paths/collection/{collection-name}/page/{page-identifier}/content/get.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 |
---|---|---|
@@ -1,16 +1,36 @@ | ||
summary: Detail | ||
operationId: showPetById | ||
description: Info for a specific pet | ||
summary: Get conetent of a page | ||
operationId: getPageContent | ||
description: Get the content of a page | ||
tags: | ||
- pets | ||
- pages | ||
parameters: | ||
- $ref: "../parameters/path/petId.yaml" | ||
- name: collection-name | ||
in: path | ||
description: The name of the collection | ||
required: true | ||
schema: | ||
type: string | ||
- name: page-identifier | ||
in: path | ||
description: The identifier of the page | ||
required: true | ||
schema: | ||
type: string | ||
responses: | ||
"200": | ||
description: Expected response to a valid request | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "../schemas/Pet.yaml" | ||
type: object | ||
required: | ||
- content | ||
properties: | ||
content: | ||
type: string | ||
default: | ||
$ref: "../responses/UnexpectedError.yaml" | ||
description: unexpected error | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "/schemas/error.yaml" |