implemented first tests and basic functionality
This commit is contained in:
		@@ -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>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
 
 | 
			
		||||
@@ -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:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user