docs: add summaries to all openapi routes
This commit is contained in:
parent
a0332df101
commit
27e21f0ad0
|
@ -9,6 +9,7 @@ tags:
|
||||||
paths:
|
paths:
|
||||||
/api/users/register:
|
/api/users/register:
|
||||||
put:
|
put:
|
||||||
|
summary: Create new user
|
||||||
description: Create new user
|
description: Create new user
|
||||||
tags:
|
tags:
|
||||||
- Users
|
- Users
|
||||||
|
@ -63,6 +64,7 @@ paths:
|
||||||
post:
|
post:
|
||||||
tags:
|
tags:
|
||||||
- Users
|
- Users
|
||||||
|
summary: Log in with email and password
|
||||||
requestBody:
|
requestBody:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
|
@ -100,6 +102,7 @@ paths:
|
||||||
post:
|
post:
|
||||||
tags:
|
tags:
|
||||||
- Users
|
- Users
|
||||||
|
summary: Reset a user's password
|
||||||
description: |-
|
description: |-
|
||||||
I know its not secure because anyone can reset anyones password. But here's a counterpoint: its not required to be secure, and i dont care
|
I know its not secure because anyone can reset anyones password. But here's a counterpoint: its not required to be secure, and i dont care
|
||||||
requestBody:
|
requestBody:
|
||||||
|
@ -131,6 +134,7 @@ paths:
|
||||||
- Private routes
|
- Private routes
|
||||||
security:
|
security:
|
||||||
- session: []
|
- session: []
|
||||||
|
summary: List all users
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
description: OK
|
description: OK
|
||||||
|
@ -155,6 +159,7 @@ paths:
|
||||||
description: Must be a valid UUID
|
description: Must be a valid UUID
|
||||||
tags:
|
tags:
|
||||||
- Private routes
|
- Private routes
|
||||||
|
summary: Get a user
|
||||||
security:
|
security:
|
||||||
- session: []
|
- session: []
|
||||||
responses:
|
responses:
|
||||||
|
@ -187,6 +192,7 @@ paths:
|
||||||
description: Must be a valid UUID
|
description: Must be a valid UUID
|
||||||
tags:
|
tags:
|
||||||
- Private routes
|
- Private routes
|
||||||
|
summary: Edit a user
|
||||||
security:
|
security:
|
||||||
- session: []
|
- session: []
|
||||||
responses:
|
responses:
|
||||||
|
|
Loading…
Reference in New Issue