add service directory

This commit is contained in:
Torma Kristóf 2021-11-03 12:12:19 +01:00
parent aea0a4d2df
commit df16c83af3

View File

@ -16,7 +16,7 @@ tags:
- name: servicelocator - name: servicelocator
description: Service location API description: Service location API
paths: paths:
/servicelocation/{serviceID}: /service/location/{serviceID}:
get: get:
tags: tags:
- servicelocator - servicelocator
@ -45,6 +45,21 @@ paths:
- location - location
404: 404:
description: Not found 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: /service:
get: get:
tags: tags:
@ -153,12 +168,30 @@ components:
type: array type: array
items: items:
$ref: '#/components/schemas/ServiceLocatorObject' $ref: '#/components/schemas/ServiceLocatorObject'
ServiceLocatorObject: ServiceDirectory:
type: array
items:
$ref: '#/components/schemas/ServiceDirectoryObject'
ServiceDirectoryObject:
required: required:
- device_id
- id - id
- name
type: object type: object
properties: properties:
name:
type: string
id:
type: string
format: uuid
ServiceLocatorObject:
required:
- servicearray
- id
- name
type: object
properties:
name:
type: string
id: id:
type: string type: string
format: uuid format: uuid