-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathswagger-editor-2
45 lines (45 loc) · 1.1 KB
/
swagger-editor-2
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
# this is an example of the Uber API
# as a demonstration of an API spec in YAML
swagger: '2.0'
info:
title: Uber API
description: Move your app forward with the Uber API
version: "1.0.0"
# the domain of the service
host: api.openweathermap.org
# array of all schemes that your API supports
schemes:
- https
# will be prefixed to all paths
basePath: /data/2.5
produces:
- application/json
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"