2020-04-21 10:53:07 +02:00
|
|
|
openapi: 3.0.2
|
|
|
|
|
|
|
|
info:
|
|
|
|
title: Digital fingerprint of plastics - API
|
|
|
|
version: 1.0.0
|
|
|
|
description: |
|
2020-08-05 18:28:27 +02:00
|
|
|
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.
|
2020-08-05 18:28:27 +02:00
|
|
|
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
|
2020-08-05 18:28:27 +02:00
|
|
|
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 |
|
|
|
|
|
2020-04-22 17:24:15 +02:00
|
|
|
Password policy:
|
2020-08-05 18:28:27 +02:00
|
|
|
|
|
|
|
- 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:
|
2020-07-09 13:48:27 +02:00
|
|
|
- url: https://definma-api.apps.de1.bosch-iot-cloud.com
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
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'
|
|
|
|
|
|
|
|
|
|
|
|
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
|