1
+ @startuml
2
+ hide empty members
3
+ set namespaceSeparator none
4
+
5
+ skinparam class {
6
+ BackgroundColor PaleGreen
7
+ ArrowColor RoyalBlue
8
+ BorderColor DimGray
9
+ }
10
+
11
+ class Order {
12
+ - id <b>:Int64</b>
13
+ - petId <b>:Int64</b>
14
+ - quantity <b>:Int32</b>
15
+ - shipDate <b>:Date-time</b>
16
+ - status <b>:String</b>
17
+ - complete <b>:Boolean</b>
18
+ }
19
+
20
+ class Category {
21
+ - id <b>:Int64</b>
22
+ - name <b>:String</b>
23
+ }
24
+
25
+ class User {
26
+ - id <b>:Int64</b>
27
+ - username <b>:String</b>
28
+ - firstName <b>:String</b>
29
+ - lastName <b>:String</b>
30
+ - email <b>:String</b>
31
+ - password <b>:String</b>
32
+ - phone <b>:String</b>
33
+ - userStatus <b>:Int32</b>
34
+ }
35
+
36
+ class Tag {
37
+ - id <b>:Int64</b>
38
+ - name <b>:String</b>
39
+ }
40
+
41
+ class Pet {
42
+ - id <b>:Int64</b>
43
+ - category <b>:Category[]</b>
44
+ - name <b>:String</b>
45
+ - photoUrls <b>:String[]</b>
46
+ - tags <b>:Tag[]</b>
47
+ - status <b>:String</b>
48
+ }
49
+
50
+ class ApiResponse {
51
+ - code <b>:Int32</b>
52
+ - type <b>:String</b>
53
+ - message <b>:String</b>
54
+ }
55
+
56
+
57
+ interface PetApi {
58
+ + <i >updatePet (Pet body )</i ><b >:void </b >
59
+ }
60
+
61
+ interface PetApi {
62
+ + <i >addPet (Pet body )</i ><b >:void </b >
63
+ }
64
+
65
+ interface PetApi {
66
+ + <i >findPetsByStatus (String [] status )</i ><b >:Pet []</b >
67
+ }
68
+
69
+ interface PetApi {
70
+ + <i >findPetsByTags (String [] tags )</i ><b >:Pet []</b >
71
+ }
72
+
73
+ interface PetApi {
74
+ + <i >getPetById (Integer petId )</i ><b >:Pet </b >
75
+ }
76
+
77
+ interface PetApi {
78
+ + <i >updatePetWithForm (Integer petId ,String name ,String status )</i ><b >:void </b >
79
+ }
80
+
81
+ interface PetApi {
82
+ + <i >deletePet (Integer petId )</i ><b >:void </b >
83
+ }
84
+
85
+ interface PetApi {
86
+ + <i >uploadFile (Integer petId ,String additionalMetadata ,File file )</i ><b >:ApiResponse </b >
87
+ }
88
+
89
+ interface StoreApi {
90
+ + <i >getInventory ()</i ><b >:void </b >
91
+ }
92
+
93
+ interface StoreApi {
94
+ + <i >placeOrder (Order body )</i ><b >:Order </b >
95
+ }
96
+
97
+ interface StoreApi {
98
+ + <i >getOrderById (Integer orderId )</i ><b >:Order </b >
99
+ }
100
+
101
+ interface StoreApi {
102
+ + <i >deleteOrder (Integer orderId )</i ><b >:void </b >
103
+ }
104
+
105
+ interface UserApi {
106
+ + <i >createUser (User body )</i ><b >:void </b >
107
+ }
108
+
109
+ interface UserApi {
110
+ + <i >createUsersWithArrayInput (User [] body )</i ><b >:void </b >
111
+ }
112
+
113
+ interface UserApi {
114
+ + <i >createUsersWithListInput (User [] body )</i ><b >:void </b >
115
+ }
116
+
117
+ interface UserApi {
118
+ + <i >loginUser (String username ,String password )</i ><b >:void </b >
119
+ }
120
+
121
+ interface UserApi {
122
+ + <i >logoutUser ()</i ><b >:void </b >
123
+ }
124
+
125
+ interface UserApi {
126
+ + <i >getUserByName (String username )</i ><b >:User </b >
127
+ }
128
+
129
+ interface UserApi {
130
+ + <i >updateUser (String username ,User body )</i ><b >:void </b >
131
+ }
132
+
133
+ interface UserApi {
134
+ + <i >deleteUser (String username )</i ><b >:void </b >
135
+ }
136
+
137
+
138
+ Pet *-- "0..* " Category
139
+ Pet *-- "0..* " Tag
140
+ PetApi --> Pet
141
+ PetApi --> ApiResponse
142
+ StoreApi --> Order
143
+ UserApi --> User
144
+
145
+ note as N1
146
+ Name : <b ><color :royalBlue >Swagger Petstore </color >
147
+ Version : <b ><color :royalBlue >1 .0.0 </color >
148
+ end note
149
+
150
+
151
+ @enduml
0 commit comments