From df16c83af3e1400ffdf41529621b96ae56d35013 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Wed, 3 Nov 2021 12:12:19 +0100 Subject: [PATCH] add service directory --- servicelocator.yml | 39 ++++++++++++++++++++++++++++++++++++--- 1 file changed, 36 insertions(+), 3 deletions(-) diff --git a/servicelocator.yml b/servicelocator.yml index 1ab6e89..478d962 100644 --- a/servicelocator.yml +++ b/servicelocator.yml @@ -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