Big refactoring #77

Merged
flecomte merged 166 commits from refactoring-component-and-immutable into master 2021-03-24 19:06:07 +01:00
Showing only changes of commit 0f768f3e4c - Show all commits

View File

@@ -392,7 +392,6 @@ paths:
$ref: '#/components/schemas/CitizenListResponse' $ref: '#/components/schemas/CitizenListResponse'
401: 401:
$ref: '#/components/responses/401' $ref: '#/components/responses/401'
/citizens/current: /citizens/current:
get: get:
security: security:
@@ -408,7 +407,6 @@ paths:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/CitizenResponse' $ref: '#/components/schemas/CitizenResponse'
/citizens/{citizen}: /citizens/{citizen}:
parameters: parameters:
- $ref: '#/components/parameters/citizen' - $ref: '#/components/parameters/citizen'
@@ -430,6 +428,45 @@ paths:
description: Citizen not found description: Citizen not found
401: 401:
$ref: '#/components/responses/401' $ref: '#/components/responses/401'
/citizens/{citizen}/password/change:
parameters:
- $ref: '#/components/parameters/citizen'
put:
security:
- JWTAuth: [ ]
summary: Change Citizen Password
tags:
- citizen
operationId: changePassword
requestBody:
required: true
content:
application/json:
schema:
required:
- oldPassword
- newPassword
properties:
oldPassword:
type: string
format: password
example:
azerty
newPassword:
type: string
format: password
example:
qwerty
responses:
201:
description: Password changed
400:
description: Bad request
401:
$ref: '#/components/responses/401'
404:
description: Citizen not found
components: components:
parameters: parameters:
page: page: