File tree 2 files changed +174
-117
lines changed
2 files changed +174
-117
lines changed Original file line number Diff line number Diff line change
1
+ openapi : 3.1.0
2
+ info :
3
+ title : Webhook Example
4
+ version : 1.0.0
5
+ paths :
6
+ # OpenAPI documents all need a paths element
7
+ /pets :
8
+ get :
9
+ summary : List all pets
10
+ operationId : listPets
11
+ parameters :
12
+ - name : limit
13
+ in : query
14
+ description : How many items to return at one time (max 100)
15
+ required : false
16
+ schema :
17
+ type : integer
18
+ format : int32
19
+ responses :
20
+ ' 200 ' :
21
+ description : A paged array of pets
22
+ content :
23
+ application/json :
24
+ schema :
25
+ $ref : " #/components/schemas/Pets"
26
+
27
+ webhooks :
28
+ # Each webhook needs a name
29
+ newPet :
30
+ # This is a Path Item Object, the only difference is that the request is initiated by the API provider
31
+ post :
32
+ requestBody :
33
+ description : Information about a new pet in the system
34
+ content :
35
+ application/json :
36
+ schema :
37
+ $ref : " #/components/schemas/Pet"
38
+ responses :
39
+ " 200 " :
40
+ description : Return a 200 status to indicate that the data was received successfully
41
+
42
+ components :
43
+ schemas :
44
+ Pet :
45
+ required :
46
+ - id
47
+ - name
48
+ properties :
49
+ id :
50
+ type : integer
51
+ format : int64
52
+ name :
53
+ type : string
54
+ tag :
55
+ type : string
56
+ Pets :
57
+ type : array
58
+ items :
59
+ $ref : " #/components/schemas/Pet"
60
+
61
+
You can’t perform that action at this time.
0 commit comments