add service directory

This commit is contained in:
Torma Kristóf 2021-11-03 12:12:19 +01:00
parent aea0a4d2df
commit df16c83af3
1 changed files with 36 additions and 3 deletions

View File

@ -16,7 +16,7 @@ tags:
- name: servicelocator
description: Service location API
paths:
/servicelocation/{serviceID}:
/service/location/{serviceID}:
get:
tags:
- servicelocator
@ -45,6 +45,21 @@ paths:
- location
404:
description: Not found
/service/directory:
get:
tags:
- servicelocator
summary: Get service directory
operationId: serviceDirectory
responses:
200:
description: Service with given ID
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceDirectory'
404:
description: Not found
/service:
get:
tags:
@ -153,12 +168,30 @@ components:
type: array
items:
$ref: '#/components/schemas/ServiceLocatorObject'
ServiceLocatorObject:
ServiceDirectory:
type: array
items:
$ref: '#/components/schemas/ServiceDirectoryObject'
ServiceDirectoryObject:
required:
- device_id
- id
- name
type: object
properties:
name:
type: string
id:
type: string
format: uuid
ServiceLocatorObject:
required:
- servicearray
- id
- name
type: object
properties:
name:
type: string
id:
type: string
format: uuid