Created
February 16, 2020 19:10
-
-
Save rocioDEV/c174c05d5c830c37dad98d2b99a09dbe to your computer and use it in GitHub Desktop.
OpenAPI - GET by url param example
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
'/users/{email}': | |
get: | |
tags: | |
- USERS | |
description: Returns the requested user | |
parameters: | |
- name: email | |
in: path | |
description: email of the requested user | |
required: true | |
schema: | |
type: string | |
responses: | |
'200': | |
description: User fetched correctly | |
content: | |
application/json: | |
schema: | |
$ref: '#/components/schemas/User' | |
'500': | |
description: Error fetching user | |
content: {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment