Archived
2

implemented first tests and basic functionality

This commit is contained in:
VLE2FE
2020-04-22 17:24:15 +02:00
parent e92a9d93c2
commit f23b65d3d8
17 changed files with 451 additions and 49 deletions

View File

@ -15,6 +15,15 @@ info:
<li>dev: handling machine learning models</li>
<li>admin: user administration</li>
</ul>
Password policy:
<ul>
<li>at least one digit</li>
<li>at least one lower case letter</li>
<li>at least one upper case letter</li>
<li>at least one of the following special characters: !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~</li>
<li>no whitespace</li>
<li>at least 8 characters</li>
</ul>

View File

@ -137,8 +137,6 @@ Template:
type: object
Email:
required:
- email
properties:
email:
type: string
@ -151,14 +149,16 @@ User:
name:
type: string
example: johndoe
levels:
type: array
items:
type: string
example: read
pass:
type: string
writeOnly: true
example: Abc123!#
level:
type: string
example: read
location:
type: string
example: Rng
device_name:
type: string
example: Alpha II
example: Alpha II

View File

@ -130,16 +130,22 @@
content:
application/json:
schema:
$ref: 'oas.yaml#/components/schemas/User'
required:
- email
- name
- pass
- level
- location
- device_name
allOf:
- $ref: 'oas.yaml#/components/schemas/User'
responses:
200:
description: user details
content:
application/json:
schema:
type: array
items:
$ref: 'oas.yaml#/components/schemas/User'
$ref: 'oas.yaml#/components/schemas/User'
400:
$ref: 'oas.yaml#/components/responses/400'
401: