-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtest.yaml
75 lines (75 loc) · 2.2 KB
/
test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
openapi: 3.0.3
info:
title: MyDisease.info API
version: '1.0'
servers:
- description: Encrypted Production server
url: https://mydisease.info/v1
x-maturity: production
paths:
/query:
get:
summary: Query for disease information
operationId: queryDiseaseInformation
parameters:
- name: q
in: query
description: User query (required)
required: true
schema:
type: string
- name: fields
in: query
description: Comma-separated fields to limit the response (optional)
schema:
type: string
default: "mondo.label,mondo.definition,mondo.synonym"
- name: size
in: query
description: Maximum number of results to return (optional)
schema:
type: integer
default: 100
responses:
'200':
description: A 200 status code indicates a successful query, and is accompanied by the query response payload.
content: "application/json"
schema:
type: object
properties:
took:
type: integer
total:
type: integer
max_score:
type: number
hits:
type: array
items:
type: object
properties:
_id:
type: string
_score:
type: number
mondo:
type: object
properties:
label:
type: string
synonym:
type: object
properties:
exact:
type: array
items:
type: string
related:
type: array
items:
type: string
required:
- took
- total
- max_score
- hits