Download OpenAPI specification:Download
This is public API for DIPLOMAT DENTAL's business partners. Basic authentication is used with credentials diplomatdental:fs6Uutmq8aPrq3Tr for staging environment and diplomatdental:g4JY77X7P6nXHgc4 for production environment. Users are required to authenticate with their email and password credentials. Cookie is returned in Set-Cookie header of login response and has maxAge set to 86400000 (1 day), use it for all following requests in Cookie header to authenticate. Only resources associated with user accounts are returned.
Authenticate user with email and password combination.
User credentials
| email required | string |
| password required | string |
{- "email": "user@email.com",
- "password": "gAUzTeMBybjpum8F"
}{- "_id": "5cc8344ed09d6c0010698e8e",
- "firstName": "user",
- "lastName": "user",
- "email": "user@email.com",
- "phone": "+421000000000",
- "address": "Vrbovská cesta 17",
- "city": "Piešťany",
- "country": "Slovakia",
- "postalCode": "92101",
- "roles": {
- "property1": true,
- "property2": true
}
}Dental units associated with current authenticated user account are returned.
[- {
- "_id": "5c3f11d9999eb1010f245da3",
- "extIdentifiers": {
- "diplomatDental": {
- "id": "180004"
}
}, - "name": {
- "sk": "DIPLOMAT DE20"
}, - "description": {
- "sk": "F-GRN4,FZ-GRN4"
}
}
]Detailed information about dental unit.
| id required | string Example: 5c3f11d9999eb1010f245da3 ID of dental unit |
{- "_id": "5c3f11d9999eb1010f245da3",
- "extIdentifiers": {
- "diplomatDental": {
- "id": "180004"
}
}, - "name": {
- "sk": "DIPLOMAT DE20"
}, - "description": {
- "sk": "F-GRN4,FZ-GRN4"
}, - "meta": {
- "itemNumber": "DE20",
- "clientAccount": "EUR-MED SLOVAKIA",
- "region": "LTU",
- "dispatchDate": "2018-01-19T00:00:00.000Z",
- "versionHw": "CB 16777286;TB 16777216;SB 16777283;FC 83886149;AB 16777282;CHB 50331717;CSB 16777284;",
- "versionFw": "CB 16777236;TB 0;SB 16777236;FC 16777220;AB 16777223;CHB 16777474;CSB 16777216;"
}
}Interactions data of dental unit created in one day. Output starting in a time specified by from parameter and ends with the end of that day 23:59.59.999 (UTC). When querying data periodically, send datetime of previous request in from parameter so you get only new records. That helps to benefit from smaller and quicker responses and also reduces server's load. Use pagination parameters to get all records when total exceeds limit. Records are sorted by time property.
| id required | string Example: 5c3f11d9999eb1010f245da3 ID of dental unit |
| from required | string Example: from=2021-10-18T00:00:00.000Z UTC ISO 8601 date to return logs from (to the end of that day) |
| $limit | integer multiple of 1 [ 0 .. 1000 ] Default: 1000 Example: $limit=1000 Pagination parameter limiting number of records returned |
| $skip | integer multiple of 1 >= 0 Default: 0 Example: $skip=0 Pagination parameter skipping first n records in response |
{- "total": 873,
- "limit": 1000,
- "skip": 0,
- "data": [
- {
- "_id": "616d4e1c5637fd001ca3156a",
- "level": "info",
- "ref": "6152b66acd3892001ae3df5a",
- "message": "Operating light start",
- "time": "2021-10-18T23:30:28.797Z",
- "meta": {
- "event": {
- "code": "2001",
- "name": "Dimmed light intensity"
}, - "value": "1"
}
}
]
}