-
Notifications
You must be signed in to change notification settings - Fork 1
/
documentation.yaml
40 lines (38 loc) · 1 KB
/
documentation.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
swagger: "2.0"
info:
description: |
Mtaa API Documentation , Mtaa api is an api for
accessing easy accessing locations across tanzania
from regions to streets.
The source code can be found at [mtaaAPI](https://github.com/HackEAC/mtaaAPI)
version: 1.5
title: mtaaAPI
contact:
email: [email protected]
license:
name: MIT
url: https://github.com/HackEAC/mtaaAPI/blob/main/LICENSE
paths:
/api/tanzania:
get:
summary: Return all regions in a country (Tanzania)
produces:
- application/json
responses:
200:
description: OK
examples:
application/json:
{ "regions": ["Shinyanga", "Mara", "....", "Tabora", "Dodoma"] }
/api/tanzania/{region}:
get:
summary: Returns all districts in a specified region
produces:
- application/json
parameters:
name: region
responses:
200:
description: OK
examples:
application/json: {}