-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtermapi.yaml
67 lines (66 loc) · 2.13 KB
/
termapi.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
openapi: 3.0.0
info:
description: "This service aggregates other 'terminal friendly' services."
version: 0.0.1
title: TermAPI
contact:
url: https://github.com/rspurgeon/termapi
license:
name: Apache 2.0
url: http://www.apache.org/licenses/LICENSE-2.0.html
servers:
- url: https://localhost:8000
paths:
/weather:
get:
summary: Gets the current weather at the requesters location
description: "Gets the current weather at the current location obtained from the requestors IP address. Upstream service provided by the very cool https://github.com/chubin/wttr.in"
operationId: weather_get
responses:
"200":
description: successful operation
content:
application/text:
schema:
type: string
servers:
- url: https://wttr.in/
description: provides an implementation of the weather service
/weather/{location}:
get:
summary: Gets the current weather by a specified location
description: "Gets the current weather at a specified location. Upstream service provided by the very cool https://github.com/chubin/wttr.in"
operationId: weather_get_by_location
parameters:
- name: location
in: path
description: Specifies the location of the weather to obtain
required: true
schema:
type: string
responses:
"200":
description: successful operation
content:
application/text:
schema:
type: string
servers:
- url: https://wttr.in/
description: provides an implementation of the weather service
/whats-my-ip:
x-kong-name: whats-my-ip
get:
summary: Gets your public IP address
description: "Gets your public IP address"
operationId: whats_my_ip
responses:
"200":
description: successful operation
content:
application/text:
schema:
type: string
servers:
- url: https://ifconfig.me
description: obtain ip address from ifconfig.me