forked from structurizr/java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathswagger.txt
More file actions
471 lines (453 loc) · 14.9 KB
/
swagger.txt
File metadata and controls
471 lines (453 loc) · 14.9 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
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
swagger: '2.0'
info:
version: 0.6.0
title: Structurizr
description: This is the API for Structurizr.
host: api.structurizr.com
basePath: /
schemes:
- https
consumes:
- application/json
produces:
- application/json
paths:
/workspace/{id}:
get:
parameters:
- name: id
in: path
description: The workspace ID.
type: number
format: long
required: true
responses:
'200':
description: A Structurizr workspace.
schema:
$ref: '#/definitions/Workspace'
put:
parameters:
- name: id
in: path
description: The workspace ID.
type: number
format: long
required: true
- name: workspace
in: body
description: The workspace JSON you want to put.
schema:
$ref: '#/definitions/Workspace'
required: true
responses:
'200':
description: Updates the workspace.
definitions:
Workspace:
type: object
description: Represents a Structurizr workspace, which is a wrapper for a software architecture model and the associated views.
properties:
id:
type: number
format: long
description: The workspace ID.
name:
type: string
description: The name of the workspace.
description:
type: string
description: A short description of the workspace.
thumbnail:
type: string
description: The thumbnail associated with the workspace; a Base64 encoded PNG file as a Data URI (data:image/png;base64).
model:
type: object
description: The software architecture model.
$ref: "#/definitions/Model"
views:
type: string
description: The set of views onto a software architecture model.
$ref: "#/definitions/Views"
Model:
type: object
description: A software architecture model.
properties:
people:
type: array
items:
$ref: "#/definitions/Person"
softwareSystems:
type: array
items:
$ref: "#/definitions/SoftwareSystem"
Person:
type: object
description: A person who uses a software system.
properties:
id:
type: string
description: The ID of this person in the model.
name:
type: string
description: The name of this person.
description:
type: string
description: A short description of this person.
tags:
type: string
description: A comma separated list of tags associated with this person.
location:
type: string
description: The location of this person.
enum: [ "Extenal", "Internal", "Unspecified" ]
relationships:
type: array
items:
description: The set of relationships between this person and other elements.
items:
$ref: "#/definitions/Relationship"
SoftwareSystem:
type: object
description: A software system.
properties:
id:
type: string
description: The ID of this software system in the model.
name:
type: string
description: The name of this software system.
description:
type: string
description: A short description of this software system.
location:
type: string
description: The location of this software system.
enum: [ "Extenal", "Internal", "Unspecified" ]
tags:
type: string
description: A comma separated list of tags associated with this software system.
containers:
type: array
description: The set of containers within this software system.
items:
$ref: "#/definitions/Container"
relationships:
type: array
description: The set of relationships between this software system and other elements.
items:
$ref: "#/definitions/Relationship"
Container:
type: object
description: A container (something that can execute code or host data).
properties:
id:
type: string
description: The ID of this container in the model.
name:
type: string
description: The name of this container.
description:
type: string
description: A short description of this container.
technology:
type: string
description: The technology associated with this container (e.g. Apache Tomcat).
tags:
type: string
description: A comma separated list of tags associated with this container.
components:
type: array
description: The set of components within this container.
items:
$ref: "#/definitions/Component"
relationships:
type: array
description: The set of relationships between this container and other elements.
items:
$ref: "#/definitions/Relationship"
Component:
type: object
description: A component (a grouping of related functionality behind an interface that runs inside a container).
properties:
id:
type: string
description: The ID of this component in the model.
name:
type: string
description: The name of this component.
description:
type: string
description: A short description of this component.
technology:
type: string
description: The technology associated with this component (e.g. Spring Bean).
interfaceType:
type: string
description: The interface type (e.g. a fully qualified Java interface name).
implementationType:
type: string
description: The implementation type (e.g. a fully qualified Java class name).
sourcePath:
type: string
description: The source code path that reflects this component (e.g. a GitHub URL).
tags:
type: string
description: A comma separated list of tags associated with this container.
relationships:
type: array
description: The set of relationships between this container and other elements.
items:
$ref: "#/definitions/Relationship"
Relationship:
type: object
description: A relationship between two elements.
properties:
id:
type: string
description: The ID of this relationship in the model.
description:
type: string
description: A short description of this relationship.
tags:
type: string
description: A comma separated list of tags associated with this relationship.
sourceId:
type: string
description: The ID of the source element.
destinationId:
type: string
description: The ID of the destination element.
technology:
type: string
description: The technology associated with this relationship (e.g. HTTPS, JDBC, etc).
interactionStyle:
type: string
description: The interaction style (synchronous or asynchronous).
enum: [ "Synchronous", "Asynchronous" ]
Views:
type: object
description: The set of views onto a software architecture model.
properties:
systemContextViews:
type: array
description: The set of system context views.
items:
$ref: "#/definitions/SystemContextView"
containerViews:
type: array
description: The set of container views.
items:
$ref: "#/definitions/ContainerView"
componentViews:
type: array
description: The set of component views.
items:
$ref: "#/definitions/ComponentView"
configuration:
type: object
description: The configuration object associated with this set of views.
$ref: "#/definitions/Configuration"
SystemContextView:
type: object
description: A system context view.
properties:
key:
type: string
description: An identifier for this view.
softwareSystemId:
type: string
description: The ID of the software system this view is associated with.
paperSize:
type: string
description: The paper size that should be used to render this view.
enum: [ "A5_Portrait", "A5_Landscape", "A4_Portrait", "A4_Landscape", "A3_Portrait", "A3_Landscape", "A2_Portrait", "A2_Landscape", "Letter_Portrait", "Letter_Landscape", "Slide_4_3", "Slide_16_9" ]
elements:
type: array
description: The set of elements in this views.
items:
$ref: "#/definitions/ElementInView"
relationships:
type: array
description: The set of relationships in this views.
items:
$ref: "#/definitions/RelationshipInView"
ContainerView:
type: object
description: A container view.
properties:
key:
type: string
description: An identifier for this view.
softwareSystemId:
type: string
description: The ID of the software system this view is associated with.
paperSize:
type: string
description: The paper size that should be used to render this view.
enum: [ "A5_Portrait", "A5_Landscape", "A4_Portrait", "A4_Landscape", "A3_Portrait", "A3_Landscape", "A2_Portrait", "A2_Landscape", "Letter_Portrait", "Letter_Landscape", "Slide_4_3", "Slide_16_9" ]
elements:
type: array
description: The set of elements in this views.
items:
$ref: "#/definitions/ElementInView"
relationships:
type: array
description: The set of relationships in this views.
items:
$ref: "#/definitions/RelationshipInView"
ComponentView:
type: object
description: A system context view.
properties:
key:
type: string
description: An identifier for this view.
softwareSystemId:
type: string
description: The ID of the software system this view is associated with.
containerId:
type: string
description: The ID of the container this view is associated with.
paperSize:
type: string
description: The paper size that should be used to render this view.
enum: [ "A5_Portrait", "A5_Landscape", "A4_Portrait", "A4_Landscape", "A3_Portrait", "A3_Landscape", "A2_Portrait", "A2_Landscape", "Letter_Portrait", "Letter_Landscape", "Slide_4_3", "Slide_16_9" ]
elements:
type: array
description: The set of elements in this views.
items:
$ref: "#/definitions/ElementInView"
relationships:
type: array
description: The set of relationships in this views.
items:
$ref: "#/definitions/RelationshipInView"
ElementInView:
type: object
description: An instance of a model element (Person, Software System, Container or Component) in a View.
properties:
id:
type: string
description: The ID of the element.
x:
type: number
format: integer
description: The horizontal position of the element when rendered.
y:
type: number
format: integer
description: The vertical position of the element when rendered.
RelationshipInView:
type: object
description: An instance of a model relationship in a View.
properties:
id:
type: string
description: The ID of the relationship.
order:
type: string
description: The order of this relationship (used in dynamic views only; e.g. 1.0, 1.1, 2.0, etc).
description:
type: string
description: The description of this relationship (used in dynamic views only).
vertices:
type: array
description: The set of vertices used to render the relationship.
items:
$ref: "#/definitions/Vertex"
Vertex:
type: object
description: The X, Y coordinate of a bend in a line.
properties:
x:
type: number
format: integer
description: The horizontal position of the vertex when rendered.
y:
type: number
format: integer
description: The vertical position of the vertex when rendered.
Configuration:
type: object
description: The configuration associated with a set of views.
properties:
styles:
type: object
description: The styles associated with this set of views.
properties:
metadata:
type: string
description: The placement of the diagram metadata.
enum: [ "Top", "Bottom", "None" ]
elements:
type: array
description: The set of element styles.
items:
$ref: "#/definitions/ElementStyle"
relationships:
type: array
description: The set of relationship styles.
items:
$ref: "#/definitions/RelationshipStyle"
ElementStyle:
type: object
description: A definition of an element style.
properties:
tag:
type: string
description: The tag to which this element style applies.
width:
type: number
format: integer
description: The width of the element, in pixels.
height:
type: number
format: integer
description: The height of the element, in pixels.
background:
type: string
description: The background colour of the element, as a HTML RGB hex string (e.g. #123456).
color:
type: string
description: The foreground (text) colour of the element, as a HTML RGB hex string (e.g. #123456).
fontSize:
type: number
format: integer
description: The standard font size used to render text, in pixels.
shape:
type: string
description: The shape used to render the element.
enum: [ "Box", "RoundedBox", "Cylinder", "Person", "Folder" ]
RelationshipStyle:
type: object
description: A definition of a relationship style.
properties:
tag:
type: string
description: The tag to which this relationship style applies.
thickness:
type: number
format: integer
description: The thickness of the line, in pixels.
color:
type: string
description: The colour of the line, as a HTML RGB hex string (e.g. #123456).
fontSize:
type: number
format: integer
description: The standard font size used to render the relationship annotation, in pixels.
width:
type: number
format: integer
description: The width of the relationship annotation, in pixels.
dashed:
type: boolean
description: A flag to indicate whether the line is rendered as dashed or not.
smooth:
type: boolean
description: A flag to indicate whether the line is rendered as smooth (curved) or not.
position:
type: number
format: integer
description: The position of the annotation along the line; 0 (start) to 100 (end).