-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathopenapi.yaml
164 lines (163 loc) · 3.77 KB
/
openapi.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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
openapi: 3.0.0
info:
title: OAS Diff API
version: 1.0.0
x-rosetta:
id: 5902f8fd-54a3-4b6b-9d62-ddd21ff43fba
paths:
/tenants:
post:
operationId: POST_tenants
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CreateTenantRequest'
required: true
responses:
"201":
content:
application/json:
schema:
properties:
id:
type: string
type: object
description: Created
"400":
description: Bad Request
"500":
description: Internal Server Error
summary: Create a new tenant
/tenants/{tenant-id}/webhooks:
get:
operationId: GET_tenants_{tenant_id}_webhooks
parameters:
- in: path
name: tenant-id
required: true
schema:
type: string
responses:
"200":
content:
application/json:
schema:
items:
$ref: '#/components/schemas/Webhook'
type: array
description: OK
"400":
description: Bad Request
summary: Get all webhooks for a tenant
post:
operationId: POST_tenants_{tenant_id}_webhooks
parameters:
- in: path
name: tenant-id
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CreateWebhookRequest'
required: true
responses:
"201":
content:
application/json:
schema:
properties:
id:
type: string
type: object
description: Created
"400":
description: Bad Request
"500":
description: Internal Server Error
summary: Create a new webhook for a tenant
/tenants/{tenant-id}/webhooks/{webhook-id}/changelog/{changelog-id}:
get:
operationId: GET_tenants_{tenant_id}_webhooks_{webhook_id}_changelog_{changelog_id}
parameters:
- in: path
name: tenant-id
required: true
schema:
type: string
- in: path
name: webhook-id
required: true
schema:
type: string
- in: path
name: changelog-id
required: true
schema:
type: string
responses:
"200":
content:
text/html:
schema:
type: string
description: OK
"400":
description: Bad Request
summary: Get a changelog for a webhook
components:
schemas:
CreateTenantRequest:
properties:
callback:
type: string
email:
type: string
slack_channel:
type: string
tenant:
type: string
type: object
CreateWebhookRequest:
properties:
branch:
type: string
owner:
type: string
path:
type: string
repo:
type: string
spec:
type: string
webhook_name:
type: string
type: object
Webhook:
properties:
branch:
type: string
copy:
type: string
created:
type: integer
id:
type: string
name:
type: string
owner:
type: string
path:
type: string
repo:
type: string
spec:
type: string
tenant_id:
type: string
updated:
type: integer
type: object