Add Swagger docs at /docs and /openapi.json with split OpenAPI spec
Made-with: Cursor
This commit is contained in:
23
backend/openapi/path-items/auth-me.yaml
Normal file
23
backend/openapi/path-items/auth-me.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
get:
|
||||
tags: [Auth]
|
||||
summary: Current user from Bearer token
|
||||
security:
|
||||
- BearerAuth: []
|
||||
responses:
|
||||
"200":
|
||||
description: Pubkey and method
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
pubkey:
|
||||
type: string
|
||||
method:
|
||||
type: string
|
||||
"401":
|
||||
description: Unauthorized or invalid token
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "../components/schemas/common.yaml#/ApiError"
|
||||
Reference in New Issue
Block a user