add service directory
This commit is contained in:
parent
aea0a4d2df
commit
df16c83af3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user