-
Notifications
You must be signed in to change notification settings - Fork 0
/
swagger.yaml
117 lines (117 loc) · 2.84 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
106
107
108
109
110
111
112
113
114
115
116
117
swagger: "2.0"
info:
version: 1.0.0
title: "Melbourne CocoaHeads"
description: |
API for accessing published Events on the melbournecocoaheads.com website
contact:
name: Jesse Collis
email: jesse@melbournecocoaheads.com
url: http://jcmultimedia.com.au
license:
name: MIT
url: http://github.com/gruntjs/grunt/blob/master/LICENSE-MIT
host: melbournecocoaheads.com
basePath: /api
schemes:
- https
consumes:
- application/json
produces:
- application/json
paths:
/events:
get:
description: Returns all published, upcoming events.
operationId: getEvents
tags:
- Events
responses:
200:
description: List of events
schema:
$ref: "#/definitions/EventsResponse"
examples:
application/json:
events:
- address: "Level 3, 469 La Trobe Street, Melbourne VIC 3000"
address_display: "Level 3, 469 La Trobe Street, Melbourne"
contact: "mailto:jesse@jcmultimedia.com.au"
contact_name: "Jesse Collis"
ends_at: "2017-04-13T11:30:00+0000"
event_type: "meetup"
lat: -37.8126541
lng: 144.9551303
location: "Outware"
location_link: "http://www.outware.com.au/contact"
starts_at: "2017-04-13T08:30:00+0000"
subtitle: "Melbourne CocoaHeads Meetup"
tickets: "https://www.meetup.com/Melbourne-CocoaHeads/"
title: "Melbourne CocoaHeads #104"
url: "https://www.melbournecocoaheads.com/events/meetup-2017-04-13"
definitions:
EventsResponse:
properties:
events:
type: array
items:
$ref: '#/definitions/Event'
required:
- events
Event:
required:
- address
- address_display
- contact
- contact_name
- event_type
- lat
- lng
- location
- location_link
- starts_at
- subtitle
- tickets
- title
- url
properties:
address:
type: string
address_display:
type: string
contact:
type: string
contact_name:
type: string
ends_at:
type: string
format: dateTime
event_type:
type: string
enum:
- meetup
- hacknight
lat:
type: number
format: double
lng:
type: number
format: double
location:
type: string
location_link:
type: string
format: uri
starts_at:
type: string
format: dateTime
subtitle:
type: string
tickets:
type: string
format: uri
title:
type: string
url:
type: string
format: uri