refactored user.ts
This commit is contained in:
		@@ -2,7 +2,7 @@
 | 
			
		||||
  get:
 | 
			
		||||
    summary: all samples in overview
 | 
			
		||||
    description: 'Auth: all, levels: read, write, maintain, dev, admin'
 | 
			
		||||
    x-doc: returns only samples with status 10  # TODO: methods /samples/new|deleted
 | 
			
		||||
    x-doc: returns only samples with status 10
 | 
			
		||||
    tags:
 | 
			
		||||
      - /sample
 | 
			
		||||
    responses:
 | 
			
		||||
@@ -18,6 +18,30 @@
 | 
			
		||||
        $ref: 'api.yaml#/components/responses/401'
 | 
			
		||||
      500:
 | 
			
		||||
        $ref: 'api.yaml#/components/responses/500'
 | 
			
		||||
 | 
			
		||||
/samples{group}:
 | 
			
		||||
  parameters:
 | 
			
		||||
    - $ref: 'api.yaml#/components/parameters/Group'
 | 
			
		||||
  get:
 | 
			
		||||
    summary: all new/deleted samples in overview
 | 
			
		||||
    description: 'Auth: basic, levels: maintain, admin'
 | 
			
		||||
    x-doc: returns only samples with status 0/-1
 | 
			
		||||
    tags:
 | 
			
		||||
      - /sample
 | 
			
		||||
    responses:
 | 
			
		||||
      200:
 | 
			
		||||
        description: samples overview
 | 
			
		||||
        content:
 | 
			
		||||
          application/json:
 | 
			
		||||
            schema:
 | 
			
		||||
              type: array
 | 
			
		||||
              items:
 | 
			
		||||
                $ref: 'api.yaml#/components/schemas/SampleRefs'
 | 
			
		||||
      401:
 | 
			
		||||
        $ref: 'api.yaml#/components/responses/401'
 | 
			
		||||
      500:
 | 
			
		||||
        $ref: 'api.yaml#/components/responses/500'
 | 
			
		||||
 | 
			
		||||
/sample/{id}:
 | 
			
		||||
  parameters:
 | 
			
		||||
    - $ref: 'api.yaml#/components/parameters/Id'
 | 
			
		||||
@@ -130,7 +154,7 @@
 | 
			
		||||
  get:
 | 
			
		||||
    summary: list all existing field names for custom notes fields
 | 
			
		||||
    description: 'Auth: all, levels: read, write, maintain, dev, admin'
 | 
			
		||||
    x-doc: integrity has to be ensured  # TODO: implement mechanism to regularly check note_fields
 | 
			
		||||
    x-doc: integrity has to be ensured
 | 
			
		||||
    tags:
 | 
			
		||||
      - /sample
 | 
			
		||||
    responses:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user