-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathself.yaml
64 lines (64 loc) · 1.79 KB
/
self.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
openapi: 3.0.0
info:
title: Self integration API
description: "Self integration API"
version: 0.0.1
servers:
- url: /consortia/{consortiumId}/
paths:
/_self:
get:
summary: Get a list of user tenants associated to the logged in user
operationId: getUserTenantsForCurrentUser
parameters:
- $ref: "#/components/parameters/consortiumId"
responses:
"200":
$ref: "#/components/responses/UserTenantCollection"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
components:
responses:
UserTenantCollection:
description: Returns a user tenant association collection object
content:
application/json:
schema:
$ref: "schemas/userTenant.yaml#/UserTenantCollection"
NotFound:
description: Resource not found
content:
application/json:
schema:
$ref: "schemas/common.yaml#/Error"
BadRequest:
description: Bad request
content:
application/json:
schema:
$ref: "schemas/common.yaml#/Error"
Unauthorized:
description: Not authorized to perform requested action
content:
text/plain:
example: unable to perform action -- unauthorized
InternalServerError:
description: Internal server error
content:
application/json:
schema:
$ref: "schemas/common.yaml#/Error"
parameters:
consortiumId:
in: path
name: consortiumId
schema:
$ref: "schemas/common.yaml#/uuid"
required: true
description: The ID of consortium