feat: send xsrf_token header
This commit is contained in:
parent
b79a6b9117
commit
1bbfa338d9
15 changed files with 151 additions and 27 deletions
|
|
@ -1,6 +1,8 @@
|
|||
get:
|
||||
summary: Get user info
|
||||
operationId: getUsersId
|
||||
security:
|
||||
- JwtAuthCookies: []
|
||||
parameters:
|
||||
- in: path
|
||||
name: user_id
|
||||
|
|
@ -36,8 +38,7 @@ patch:
|
|||
Fields not provided in the request body remain unchanged.
|
||||
operationId: updateUser
|
||||
parameters:
|
||||
- $ref: '../parameters/access_token.yaml' # ← для поля в UI и GoDoc
|
||||
- $ref: '../parameters/xsrf_token_cookie.yaml' # ← для CSRF
|
||||
- $ref: '../parameters/xsrf_token_header.yaml'
|
||||
- name: user_id
|
||||
in: path
|
||||
required: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue