Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add auth to user routes #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/main/resources/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ paths:
tags:
- user
summary: Create user
description: This can only be done by the logged in user.
description: ''
operationId: createUser
responses:
default:
Expand Down Expand Up @@ -529,6 +529,8 @@ paths:
responses:
default:
description: successful operation
security:
- petstore_auth: []
'/user/{username}':
get:
tags:
Expand Down Expand Up @@ -586,6 +588,8 @@ paths:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/User'
security:
- petstore_auth: []
delete:
tags:
- user
Expand All @@ -604,6 +608,8 @@ paths:
description: Invalid username supplied
'404':
description: User not found
security:
- petstore_auth: []
externalDocs:
description: Find out more about Swagger
url: 'http://swagger.io'
Expand Down