-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswagger.yml
80 lines (75 loc) · 1.57 KB
/
swagger.yml
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
swagger: "2.0"
info:
description: "This is a sample server for a school project"
version: "1.0.0"
title: "Attendance Taking"
basePath: "/api"
tags:
- name: "enrollment"
description: "Everything about enrollment"
- name: "Identify"
description: "Everything about identifying ppl"
- name: "Event"
description: "Everything about events"
schemes:
- "https"
paths:
/event:
get:
tags:
- "Event"
summary: "Retrieve all events by name"
parameters:
- in: query
name: name
schema:
type: string
description: The name of the event
responses:
'200':
description: 'OK'
content:
application/json:
schema:
$ref: "#/definitions/Event"
/event/new:
post:
tags:
- "Event"
summary: "Add a new event"
responses:
'200':
description: 'OK'
parameters:
- in: "body"
name: "body"
description: "Event object that needs to be added"
required: true
schema:
$ref: "#/definitions/Event"
/user/login:
get:
tags:
- "user"
summary: "Login the user"
responses:
'200':
description: 'OK'
definitions:
Event:
type: "object"
properties:
name:
type: string
createdBy:
type: string
dateTimeStart:
type: string
format: date-time
dateTimeEnd:
type: string
format: date-time
locations:
type: array
items:
type: integer