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 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151
|
swagger: '2.0'
info:
version: 0.0.0
title: 'AttendList'
description: |
AttendList service.
contact:
name: API Support
url: http://attendlist.co/support
email: contact@evecon.co
consumes:
- application/json
produces:
- application/json
definitions:
Event:
title: Event
type: object
properties:
Id:
type: integer
format: int64
readOnly: true
Version:
type: integer
format: int64
readOnly: true
Created:
type: integer
format: int64
readOnly: true
Updated:
type: integer
format: int64
readOnly: true
Deleted:
type: boolean
readOnly: true
StartDate:
type: string
format: date-time
EndDate:
type: string
format: date-time
Latitude:
type: number
format: float
Longitude:
type: number
format: float
Name:
type: string
URL:
type: string
Notes:
type: string
Autosearch:
type: boolean
example:
StartDate: "2015-11-01T12:00:00Z"
EndDate: "2015-11-05T12:00:00Z"
Latitude: 59.842609
Longitude: 30.319087
Name: "Bikers meeting"
URL: "http://attendlist.co"
Notes: "Yet another bikers meeting"
Autosearch: false
paths:
/events:
get:
description: Get events.
tags:
- events
operationId: getEvents
responses:
default:
description: Generic Error
'200':
description: Successful response
schema:
title: ArrayOfEvents
type: array
items:
$ref: '#/definitions/Event'
post:
description: Create new event.
tags:
- events
operationId: postEvent
parameters:
- name: Event
in: body
description: New events
required: true
schema:
$ref: '#/definitions/Event'
responses:
default:
description: Generic Error
'201':
description: |
Successful response.
'Location' header with link to /events/{id} containing new ID.
/events/{id}:
parameters:
- name: id
in: path
description: Existing event id.
required: true
type: integer
format: int64
get:
description: Get event by id.
tags:
- events
operationId: getEventById
responses:
default:
description: Generic Error
'200':
description: Successful response
schema:
title: Newly created event
$ref: '#/definitions/Event'
put:
description: Update existing event.
tags:
- events
operationId: putEventById
parameters:
- name: Event
in: body
description: Existing event
required: true
schema:
$ref: '#/definitions/Event'
responses:
default:
description: Generic Error
'204':
description: Successful response
delete:
description: Delete event by id.
tags:
- events
operationId: deleteEventById
responses:
default:
description: Generic Error
'204':
description: Successful response
|