-
Notifications
You must be signed in to change notification settings - Fork 1
/
openapi-run.yaml
69 lines (69 loc) · 1.49 KB
/
openapi-run.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
swagger: '2.0'
info:
title: API Gateway for GitHub Webhook Events
description: Sample API on API Gateway with a Cloud Run backend
version: 0.1.0
schemes:
- https
produces:
- application/json
x-google-backend:
address: https://sample-fastapi-webhook-hy3pspxs6a-uw.a.run.app
security: [ ]
paths:
/webhook:
post:
operationId: webhook_webhook_post
parameters:
- in: header
name: x-hub-signature
required: false
type: string
produces:
- application/json
responses:
'202':
description: Successful Response
schema: { }
'422':
description: Validation Error
schema:
$ref: '#/definitions/HTTPValidationError'
summary: Webhook
security:
- api_key: [ ]
definitions:
HTTPValidationError:
properties:
detail:
items:
$ref: '#/definitions/ValidationError'
title: Detail
type: array
title: HTTPValidationError
type: object
ValidationError:
properties:
loc:
items:
type: string
title: Location
type: array
msg:
title: Message
type: string
type:
title: Error Type
type: string
required:
- loc
- msg
- type
title: ValidationError
type: object
securityDefinitions:
# This section configures basic authentication with an API key.
api_key:
type: "apiKey"
name: "key"
in: "query"