-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathswagger.yaml
144 lines (143 loc) · 3.82 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
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
openapi: 3.0.0
info:
title: _TODO
description: Transfer your personal data from multiple data providers to your Solid Pod.
version: _TODO
servers:
- url: http://localhost:4000/
description: Optional server description, e.g. Main (production) server
paths:
/api-docs:
get:
summary: Gets these docs
responses:
"200":
description: OK
content:
text/html:
schema:
type: string
/{provider}/callback:
get:
summary: Updates the provider tokens and redirects back to root
responses:
"302":
description: OK
parameters:
- name: provider
in: path
description: The provider
required: true
schema:
$ref: "#/components/schemas/ProviderModel"
/rmlmapper:
post:
summary: Execute the RMLMapper
requestBody:
content:
application/json:
schema:
type: object
properties:
provider:
$ref: "#/components/schemas/ProviderModel"
file:
type: string
responses:
200:
description: OK
content:
text/plain:
schema:
type: string
application/json:
schema:
type: object
properties:
rdf:
type: string
prov:
type: object
401:
description: No credentials
500:
description: Not OK
content:
text/plain:
schema:
type: string
/status/{provider}/connected:
get:
summary: Returns whether the given provider is connected (i.e. whether the backend contains tokens for that provider.
parameters:
- name: provider
in: path
description: Data provider (e.g. flickr)
required: true
schema:
$ref: "#/components/schemas/ProviderModel"
responses:
200:
description: Returns true or false, depending on whether the given provider is connected.
content:
application/json:
schema:
type: object
properties:
provider:
$ref: "#/components/schemas/ProviderModel"
connected:
type: boolean
/configuration/{provider}/{configKey}:
get:
summary: Returns the configuration of a provider
parameters:
- name: provider
in: path
description: Data provider (e.g. flickr)
required: true
schema:
$ref: "#/components/schemas/ProviderModel"
- name: configKey
in: path
description: configuration key
required: true
schema:
$ref: "#/components/schemas/ConfigurationKey"
responses:
200:
description: OK
content:
application/json:
schema:
type: object
properties:
url:
type: string
/logout:
post:
summary: Log out. This will destroy the session.
responses:
200:
description: Succesfully logged out from all connected providers.
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
500:
description: Internal Server Error. Something went wrong when logging out.
components:
schemas:
ProviderModel:
type: string
enum:
- imgur
- flickr
- google
ConfigurationKey:
type: string
enum:
- connect