Skip to content

Instantly share code, notes, and snippets.

@rocioDEV
Created February 16, 2020 19:10
Show Gist options
  • Save rocioDEV/c174c05d5c830c37dad98d2b99a09dbe to your computer and use it in GitHub Desktop.
Save rocioDEV/c174c05d5c830c37dad98d2b99a09dbe to your computer and use it in GitHub Desktop.
OpenAPI - GET by url param example
'/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