forked from Nishchit14/swagger
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathswagger2sampleapifromjson-openapi.json
More file actions
90 lines (90 loc) · 2.73 KB
/
swagger2sampleapifromjson-openapi.json
File metadata and controls
90 lines (90 loc) · 2.73 KB
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
{
"openapi": "3.0.0",
"info": {
"version": "1.0.0",
"title": "Swagger2SampleApiFromJson",
"description": "This is a sample for swagger OAS2 document.",
"termsOfService": "http:\/\/exmple.com\/license\/"
},
"servers": [
"http:\/\/petstore.swagger.io\/contextJsonV2"
],
"paths": {
"\/pet\/{petId}": {
"get": {
"summary": "Find pet by ID",
"description": "Returns a single pet",
"operationId": "GetPetById",
"deprecated": 0,
"parameters": [
{
"name": "petId",
"in": "path",
"description": "ID of pet to return"
}
],
"responses": {
"200": {
"description": "successful operation",
"content": {
"application\/xml": {
"schema": {
"$href": "#\/components\/schemas\/Pet"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"Category": {
"type": "object",
"properties": {
"id": {
"description": "",
"type": "integer"
},
"name": {
"description": "",
"type": "string"
}
}
},
"Pet": {
"type": "object",
"properties": {
"id": {
"description": "",
"type": "integer"
},
"Category": {
"description": "",
"type": "object"
},
"category": {
"description": "",
"type": ""
},
"name": {
"description": "",
"type": "string"
},
"photoUrls": {
"description": "",
"type": "array"
},
"status": {
"description": "pet status in the store",
"type": "string"
}
}
},
"photoUrls": {
"type": "array"
}
}
}
}