Archived
2
This repository has been archived on 2023-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
definma-api/api/api.yaml

101 lines
2.9 KiB
YAML
Raw Normal View History

2020-04-21 10:53:07 +02:00
openapi: 3.0.2
info:
title: Digital fingerprint of plastics - API
version: 1.0.0
description: |
This **API** gives access to the project database.
2020-04-23 13:59:45 +02:00
Access is restricted. Authentication can be obtained with HTTP Basic Auth using username and password.
Data access methods can also be accessed using an API key at the URL ending like ?key=xxx
2020-04-23 13:59:45 +02:00
The description lists available authentication methods, also the locks of each method close correspondingly
if the entered authentication is allowed.
There are a number of different user levels:
| | read sample data | add samples/edit own | read spectral data | edit other's data | maintain templates | edit users |
|:-----:|:----------------:|:--------------------:|:------------------:|:-----------------:|:------------------:|:----------:|
| read | yes | no | no | no | no | no |
| write | yes | yes | no | no | no | no |
| dev | yes | yes | yes | yes | yes | no |
| admin | yes | yes | yes | yes | yes | yes |
Password policy:
- at least one digit
- at least one lower case letter
- at least one upper case letter
- at least one of the following special characters: !"#%&'()*+,-./:;<=>?@[\]^_`{|}~
- no whitespace
- at least 8 characters
<br>
2020-05-12 17:15:36 +02:00
x-doc: |
status:
<ul>
<li>-10: deleted</li>
<li>0: newly added/changed</li>
<li>10: validated</li>
</ul>
2020-08-04 13:54:14 +02:00
<a href="https://sourcecode.socialcoding.bosch.com/users/vle2fe/repos/dfop-api/">Bitbucket repository API</a>
<a href="https://sourcecode.socialcoding.bosch.com/users/vle2fe/repos/dfop-ui/">Bitbucket repository UI</a>
<a href="https://definma.apps.de1.bosch-iot-cloud.com/documentation">Documentation page</a>
2020-04-21 10:53:07 +02:00
servers:
2021-03-04 10:18:31 +01:00
- url: https://definma-api-test.apps.de1.bosch-iot-cloud.com
2020-07-09 13:48:27 +02:00
description: server on the BIC
2020-04-21 10:53:07 +02:00
- url: http://localhost:3000
description: local server
security:
- ApiKey: []
- BasicAuth: []
tags:
- name: /
- name: /sample
- name: /material
- name: /measurement
2020-05-04 15:48:07 +02:00
- name: /template
2020-04-21 10:53:07 +02:00
- name: /model
- name: /user
2020-09-03 10:06:16 +02:00
- name: /help
2020-04-21 10:53:07 +02:00
paths:
allOf:
2020-06-05 08:50:06 +02:00
- $ref: 'root.yaml'
2020-04-21 10:53:07 +02:00
- $ref: 'sample.yaml'
- $ref: 'material.yaml'
- $ref: 'measurement.yaml'
- $ref: 'template.yaml'
- $ref: 'model.yaml'
- $ref: 'user.yaml'
2020-09-03 10:06:16 +02:00
- $ref: 'help.yaml'
2020-04-21 10:53:07 +02:00
components:
parameters:
$ref: 'parameters.yaml'
schemas:
$ref: 'schemas.yaml'
responses:
$ref: 'responses.yaml'
securitySchemes:
BasicAuth:
type: http
scheme: basic
ApiKey:
type: apiKey
in: query
name: key