File tree Expand file tree Collapse file tree 1 file changed +88
-0
lines changed Expand file tree Collapse file tree 1 file changed +88
-0
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "openapi" : " 3.1.0" ,
3
+ "info" : {
4
+ "title" : " Webhook Example" ,
5
+ "version" : " 1.0.0"
6
+ },
7
+ "paths" : {
8
+ "/pets" : {
9
+ "get" : {
10
+ "summary" : " List all pets" ,
11
+ "operationId" : " listPets" ,
12
+ "parameters" : [
13
+ {
14
+ "name" : " limit" ,
15
+ "in" : " query" ,
16
+ "description" : " How many items to return at one time (max 100)" ,
17
+ "required" : false ,
18
+ "schema" : {
19
+ "type" : " integer" ,
20
+ "format" : " int32"
21
+ }
22
+ }
23
+ ],
24
+ "responses" : {
25
+ "200" : {
26
+ "description" : " A paged array of pets" ,
27
+ "content" : {
28
+ "application/json" : {
29
+ "schema" : {
30
+ "$ref" : " #/components/schemas/Pets"
31
+ }
32
+ }
33
+ }
34
+ }
35
+ }
36
+ }
37
+ }
38
+ },
39
+ "webhooks" : {
40
+ "newPet" : {
41
+ "post" : {
42
+ "requestBody" : {
43
+ "description" : " Information about a new pet in the system" ,
44
+ "content" : {
45
+ "application/json" : {
46
+ "schema" : {
47
+ "$ref" : " #/components/schemas/Pet"
48
+ }
49
+ }
50
+ }
51
+ },
52
+ "responses" : {
53
+ "200" : {
54
+ "description" : " Return a 200 status to indicate that the data was received successfully"
55
+ }
56
+ }
57
+ }
58
+ }
59
+ },
60
+ "components" : {
61
+ "schemas" : {
62
+ "Pet" : {
63
+ "required" : [
64
+ " id" ,
65
+ " name"
66
+ ],
67
+ "properties" : {
68
+ "id" : {
69
+ "type" : " integer" ,
70
+ "format" : " int64"
71
+ },
72
+ "name" : {
73
+ "type" : " string"
74
+ },
75
+ "tag" : {
76
+ "type" : " string"
77
+ }
78
+ }
79
+ },
80
+ "Pets" : {
81
+ "type" : " array" ,
82
+ "items" : {
83
+ "$ref" : " #/components/schemas/Pet"
84
+ }
85
+ }
86
+ }
87
+ }
88
+ }
You can’t perform that action at this time.
0 commit comments