-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathswagger.yaml
110 lines (107 loc) · 2.85 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
openapi: 3.0.0
info:
title: Calendar Orchestrator
description: The Orchestrator component for the Solid Calendar (aka Knoodle).
version: "0.1"
servers:
- url: http://localhost:3000
description: Local development server
paths:
/:
get:
summary: Server running indicator
description: Returns a dummy information indicating the server is running
responses:
'200': # status code
description: A welcome message
content:
text/plain; charset=utf-8:
schema:
type: string
/user:
get:
summary: Returns user information.
parameters:
- in: query
name: webid
schema:
type: string
required: true
responses:
'200': # status code
description: A JSON array of user names
content:
application/json:
schema:
type: object
properties:
user:
type: string
ics:
type: string
'500':
description: Error message
post:
summary: Register or update a user information
requestBody:
description: |
User information in different combinations:
register: webid [+ issuer] + password + email;
update calendar URL: webid + cal_url;
update availability: webid [+ issuer];
required: true
content:
application/json:
schema:
type: object
properties:
webid:
type: string
issuer:
type: string
email:
type: string
password:
type: string
cal_url:
type: string
required:
- webid
application/x-www-form-urlencoded:
schema:
type: object
responses:
'200':
description: Success
'400':
description: Invalid request (e.g. missing fields)
'500':
description: Error in executing request
delete:
summary: Delete a registered user
parameters:
- in: query
name: webid
schema:
type: string
required: true
responses:
'200':
description: Success
'500':
description: Error
/status:
get:
summary: Update all users' calendar data
responses:
'200':
description: Success
content:
application/json:
schema:
type: array
items:
type: object
properties:
webid:
type: string