-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathswagger.puml
151 lines (118 loc) · 2.92 KB
/
swagger.puml
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
@startuml
hide empty members
set namespaceSeparator none
skinparam class {
BackgroundColor PaleGreen
ArrowColor RoyalBlue
BorderColor DimGray
}
class Order {
- id <b>:Int64</b>
- petId <b>:Int64</b>
- quantity <b>:Int32</b>
- shipDate <b>:Date-time</b>
- status <b>:String</b>
- complete <b>:Boolean</b>
}
class Category {
- id <b>:Int64</b>
- name <b>:String</b>
}
class User {
- id <b>:Int64</b>
- username <b>:String</b>
- firstName <b>:String</b>
- lastName <b>:String</b>
- email <b>:String</b>
- password <b>:String</b>
- phone <b>:String</b>
- userStatus <b>:Int32</b>
}
class Tag {
- id <b>:Int64</b>
- name <b>:String</b>
}
class Pet {
- id <b>:Int64</b>
- category <b>:Category[]</b>
- name <b>:String</b>
- photoUrls <b>:String[]</b>
- tags <b>:Tag[]</b>
- status <b>:String</b>
}
class ApiResponse {
- code <b>:Int32</b>
- type <b>:String</b>
- message <b>:String</b>
}
interface PetApi {
+ <i>updatePet(Pet body)</i><b>:void</b>
}
interface PetApi {
+ <i>addPet(Pet body)</i><b>:void</b>
}
interface PetApi {
+ <i>findPetsByStatus(String[] status)</i><b>:Pet[]</b>
}
interface PetApi {
+ <i>findPetsByTags(String[] tags)</i><b>:Pet[]</b>
}
interface PetApi {
+ <i>getPetById(Integer petId)</i><b>:Pet</b>
}
interface PetApi {
+ <i>updatePetWithForm(Integer petId,String name,String status)</i><b>:void</b>
}
interface PetApi {
+ <i>deletePet(Integer petId)</i><b>:void</b>
}
interface PetApi {
+ <i>uploadFile(Integer petId,String additionalMetadata,File file)</i><b>:ApiResponse</b>
}
interface StoreApi {
+ <i>getInventory()</i><b>:void</b>
}
interface StoreApi {
+ <i>placeOrder(Order body)</i><b>:Order</b>
}
interface StoreApi {
+ <i>getOrderById(Integer orderId)</i><b>:Order</b>
}
interface StoreApi {
+ <i>deleteOrder(Integer orderId)</i><b>:void</b>
}
interface UserApi {
+ <i>createUser(User body)</i><b>:void</b>
}
interface UserApi {
+ <i>createUsersWithArrayInput(User[] body)</i><b>:void</b>
}
interface UserApi {
+ <i>createUsersWithListInput(User[] body)</i><b>:void</b>
}
interface UserApi {
+ <i>loginUser(String username,String password)</i><b>:void</b>
}
interface UserApi {
+ <i>logoutUser()</i><b>:void</b>
}
interface UserApi {
+ <i>getUserByName(String username)</i><b>:User</b>
}
interface UserApi {
+ <i>updateUser(String username,User body)</i><b>:void</b>
}
interface UserApi {
+ <i>deleteUser(String username)</i><b>:void</b>
}
Pet *-- "0..*" Category
Pet *-- "0..*" Tag
PetApi --> Pet
PetApi --> ApiResponse
StoreApi --> Order
UserApi --> User
note as N1
Name: <b><color:royalBlue>Swagger Petstore</color>
Version: <b><color:royalBlue>1.0.0</color>
end note
@enduml