-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathswagger.json
62 lines (62 loc) · 1.33 KB
/
swagger.json
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
{
"swagger": "2.0",
"info": {
"description": "",
"version": "1.0.0",
"title": "api-elastic-search"
},
"host": "api.openweathermap.org",
"basePath": "/data/2.5",
"tags": [
{
"name": "weather",
"description": "Access to Open Weather Maps"
}
],
"schemes": [
"http"
],
"paths": {
"/weather": {
"get": {
"tags": [
"weather"
],
"summary": "Get Weather By City",
"description": "Pass in a City name as a input paramter",
"produces": [
"application/xml",
"application/json"
],
"parameters": [
{
"name": "q",
"in": "query",
"description": "City name to be provided here",
"required": true,
"type": "string"
},
{
"name": "APPID",
"in": "query",
"description": "API Key",
"required": true,
"type": "string",
"default": "a15dc5154ed56253325131bf5d8bb71c"
}
],
"responses": {
"200": {
"description": "successful operation",
"schema": {
"type": "string"
}
},
"400": {
"description": "Invalid status value"
}
}
}
}
}
}