-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswagger.yaml
105 lines (100 loc) · 2.94 KB
/
swagger.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
swagger: '2.0'
info:
description: >-
The Eccles and Salford Islamic Society API. You can find out more about
Eccles Mosque at [https://ecclesmosque.org.uk](https://ecclesmosque.org.uk)
or on [@ecclesmosque](https://twitter.com/ecclesmosque).
version: 1.0.0
title: Eccles Mosque API
termsOfService: 'https://api.ecclesmosque.org.uk/terms/'
contact:
email: apiteam@ecclesmosque.org.uk
license:
name: Apache 2.0
url: 'http://www.apache.org/licenses/LICENSE-2.0.html'
host: api.ecclesmosque.org.uk
tags:
- name: "Prayer Times"
description: "Prayer Timetable"
# externalDocs:
# description: "Find out more"
# url: "https://ecclesmosque.org.uk/prayer-times/"
schemes:
- https
definitions:
days:
type: string
enum: &DAYS ["01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31"]
months:
type: string
enum: &MONTHS ["01","02","03","04","05","06","07","08","09","10","11","12"]
years:
type: string
enum: &YEARS ["2018","2017"]
paths:
'/prayer-times/{year}/{month}/{day}.json':
get:
tags:
- "Prayer Times"
summary: Get Prayer Times for a given day
description: Returns prayer times for a single day
produces:
- application/json
parameters:
- name: year
in: path
description: Year of Prayer Times Data to return
required: true
type: string
format: YYYY
enum: *YEARS
- name: month
in: path
description: Month of Prayer Times Data to return
required: true
type: string
format: MM
enum: *MONTHS
- name: day
in: path
description: Day of Prayer Times Data to return
required: true
type: string
format: DD
enum: *DAYS
responses:
'200':
description: successful operation
'404':
description: prayer times data for the given date not found
'/prayer-times/{year}/{month}/all.json':
get:
tags:
- "Prayer Times"
summary: Get Prayer Times for a given month
description: Returns prayer times for a single month
produces:
- application/json
parameters:
- name: year
in: path
description: Year of Prayer Times Data to return
required: true
type: string
format: YYYY
enum: *YEARS
- name: month
in: path
description: Month of Prayer Times Data to return
required: true
type: string
format: MM
enum: *MONTHS
responses:
'200':
description: successful operation
'404':
description: prayer times data for the given month not found
externalDocs:
description: Find out more about Eccles Mosque
url: 'https://ecclesmosque.org.uk'