Skip to content

Commit 02f6832

Browse files
committed
update the response json schema for /metakg endpoint
1 parent fbd2666 commit 02f6832

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

SmartAPI/smartapi_openapi.yml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -254,15 +254,19 @@ paths:
254254
type: string
255255
description: The api providing the association, e.g. MyChem.info
256256
example: MyChem.info API
257-
smartapi_spec_url:
258-
type: string
259-
description: the url for smartapi specification
260-
example: https://raw.githubusercontent.com/NCATS-Tangerine/translator-api-registry/master/mychem.info/openapi_full.yml
261-
smartapi_ui_url:
262-
type: string
263-
description: the web UI url for the API
264-
example: https://smart-api.info/ui/8f08d1446e0bb9c2b323713ce83e2bd3
265-
smartapi_id:
266-
type: string
267-
description: unique smartapi id for the api
268-
example: 8f08d1446e0bb9c2b323713ce83e2bd3
257+
smartapi:
258+
type: object
259+
description: smartapi related data
260+
properties:
261+
metadata:
262+
type: string
263+
description: the url for smartapi specification
264+
example: https://raw.githubusercontent.com/NCATS-Tangerine/translator-api-registry/master/mychem.info/openapi_full.yml
265+
ui:
266+
type: string
267+
description: the web UI url for the API
268+
example: https://smart-api.info/ui/8f08d1446e0bb9c2b323713ce83e2bd3
269+
id:
270+
type: string
271+
description: unique smartapi id for the api
272+
example: 8f08d1446e0bb9c2b323713ce83e2bd3

0 commit comments

Comments
 (0)