Archived
2

added passreset and mail helper

This commit is contained in:
VLE2FE
2020-04-23 17:46:00 +02:00
parent 1a3fdc567d
commit 4e68267bfd
8 changed files with 220 additions and 8 deletions

View File

@ -141,14 +141,17 @@ Email:
email:
type: string
example: john.doe@bosch.com
User:
allOf:
- $ref: 'oas.yaml#/components/schemas/_Id'
- $ref: 'oas.yaml#/components/schemas/Email'
UserName:
properties:
name:
type: string
example: johndoe
User:
allOf:
- $ref: 'oas.yaml#/components/schemas/_Id'
- $ref: 'oas.yaml#/components/schemas/UserName'
- $ref: 'oas.yaml#/components/schemas/Email'
properties:
pass:
type: string
writeOnly: true

View File

@ -171,11 +171,13 @@
content:
application/json:
schema:
$ref: 'oas.yaml#/components/schemas/Email'
allOf:
- $ref: 'oas.yaml#/components/schemas/UserName'
- $ref: 'oas.yaml#/components/schemas/Email'
responses:
200:
$ref: 'oas.yaml#/components/responses/Ok'
401:
$ref: 'oas.yaml#/components/responses/401'
404:
$ref: 'oas.yaml#/components/responses/404'
500:
$ref: 'oas.yaml#/components/responses/500'