-
Notifications
You must be signed in to change notification settings - Fork 276
/
Copy pathopenapi.json
5521 lines (5521 loc) · 190 KB
/
openapi.json
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
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"openapi": "3.0.3",
"info": {
"title": "Apicurio Registry API [v3]",
"version": "3.0.x",
"description": "Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility.\n\nThe Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. \n\nThe supported artifact types include:\n- Apache Avro schema\n- AsyncAPI specification\n- Google protocol buffers\n- GraphQL schema\n- JSON Schema\n- Kafka Connect schema\n- OpenAPI specification\n- Web Services Description Language\n- XML Schema Definition\n\n\n**Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v3` by default. Therefore you must prefix all API operation paths with `/apis/registry/v3` in this case. For example: `/apis/registry/v3/ids/globalIds/{globalId}`.\n",
"contact": {
"name": "Apicurio",
"url": "https://github.com/apicurio/apicurio-registry",
"email": "apicurio@lists.jboss.org"
},
"license": {
"name": "Apache 2.0",
"url": "https://www.apache.org/licenses/LICENSE-2.0"
}
},
"paths": {
"/ids/globalIds/{globalId}": {
"summary": "Access artifact content utilizing an artifact version's globally unique identifier.",
"get": {
"tags": [
"Artifacts"
],
"parameters": [
{
"name": "references",
"description": "Allows the user to specify how references in the content should be treated.",
"schema": {
"$ref": "#/components/schemas/HandleReferencesType"
},
"in": "query"
}
],
"responses": {
"200": {
"$ref": "#/components/responses/ArtifactContent"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"500": {
"$ref": "#/components/responses/ServerError"
}
},
"operationId": "getContentByGlobalId",
"summary": "Get artifact by global ID",
"description": "Gets the content for an artifact version in the registry using its globally unique\nidentifier.\n\nThis operation may fail for one of the following reasons:\n\n* No artifact version with this `globalId` exists (HTTP error `404`)\n* A server error occurred (HTTP error `500`)\n"
},
"parameters": [
{
"name": "globalId",
"description": "Global identifier for an artifact version.",
"schema": {
"format": "int64",
"type": "integer"
},
"in": "path",
"required": true
}
]
},
"/admin/rules": {
"summary": "Manage the global rules that apply to all artifacts if not otherwise configured.",
"get": {
"tags": [
"Global rules",
"Admin"
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/RuleType"
}
}
}
},
"description": "The list of names of the globally configured rules."
},
"500": {
"$ref": "#/components/responses/ServerError"
}
},
"operationId": "listGlobalRules",
"summary": "List global rules",
"description": "Gets a list of all the currently configured global rules (if any).\n\nThis operation can fail for the following reasons:\n\n* A server error occurred (HTTP error `500`)\n"
},
"post": {
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CreateRule"
}
}
},
"required": true
},
"tags": [
"Global rules",
"Admin"
],
"responses": {
"204": {
"description": "The global rule was added."
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"500": {
"$ref": "#/components/responses/ServerError"
}
},
"operationId": "createGlobalRule",
"summary": "Create global rule",
"description": "Adds a rule to the list of globally configured rules.\n\nThis operation can fail for the following reasons:\n\n* The rule type is unknown (HTTP error `400`)\n* The rule already exists (HTTP error `409`)\n* A server error occurred (HTTP error `500`)\n"
},
"delete": {
"tags": [
"Global rules",
"Admin"
],
"responses": {
"204": {
"description": "All global rules have been removed successfully."
},
"500": {
"$ref": "#/components/responses/ServerError"
}
},
"operationId": "deleteAllGlobalRules",
"summary": "Delete all global rules",
"description": "Deletes all globally configured rules.\n\nThis operation can fail for the following reasons:\n\n* A server error occurred (HTTP error `500`)\n"
}
},
"/admin/rules/{ruleType}": {
"summary": "Manage the configuration of a single global artifact rule.",
"get": {
"tags": [
"Global rules",
"Admin"
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Rule"
}
}
},
"description": "The global rule's configuration."
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"500": {
"$ref": "#/components/responses/ServerError"
}
},
"operationId": "getGlobalRuleConfig",
"summary": "Get global rule configuration",
"description": "Returns information about the named globally configured rule.\n\nThis operation can fail for the following reasons:\n\n* Invalid rule name/type (HTTP error `400`)\n* No rule with name/type `rule` exists (HTTP error `404`)\n* A server error occurred (HTTP error `500`)\n"
},
"put": {
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Rule"
}
}
},
"required": true
},
"tags": [
"Global rules",
"Admin"
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Rule"
}
}
},
"description": "The global rule's configuration was successfully updated."
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"500": {
"$ref": "#/components/responses/ServerError"
}
},
"operationId": "updateGlobalRuleConfig",
"summary": "Update global rule configuration",
"description": "Updates the configuration for a globally configured rule.\n\nThis operation can fail for the following reasons:\n\n* Invalid rule name/type (HTTP error `400`)\n* No rule with name/type `rule` exists (HTTP error `404`)\n* A server error occurred (HTTP error `500`)\n"
},
"delete": {
"tags": [
"Global rules",
"Admin"
],
"responses": {
"204": {
"description": "The global rule was successfully deleted."
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"500": {
"$ref": "#/components/responses/ServerError"
}
},
"operationId": "deleteGlobalRule",
"summary": "Delete global rule",
"description": "Deletes a single global rule. If this is the only rule configured, this is the same\nas deleting **all** rules.\n\nThis operation can fail for the following reasons:\n\n* Invalid rule name/type (HTTP error `400`)\n* No rule with name/type `rule` exists (HTTP error `404`)\n* Rule cannot be deleted (HTTP error `409`)\n* A server error occurred (HTTP error `500`)\n"
},
"parameters": [
{
"name": "ruleType",
"description": "The unique name/type of a rule.",
"schema": {
"$ref": "#/components/schemas/RuleType"
},
"in": "path",
"required": true
}
]
},
"/system/info": {
"summary": "Retrieve system information",
"get": {
"tags": [
"System"
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SystemInfo"
}
}
},
"description": "On success, returns the system information."
},
"500": {
"$ref": "#/components/responses/ServerError"
}
},
"operationId": "getSystemInfo",
"summary": "Get system information",
"description": "This operation retrieves information about the running registry system, such as the version\nof the software and when it was built."
}
},
"/search/artifacts": {
"summary": "Search for artifacts in the registry.",
"get": {
"tags": [
"Search",
"Artifacts"
],
"parameters": [
{
"name": "name",
"description": "Filter by artifact name.",
"schema": {
"type": "string"
},
"in": "query"
},
{
"name": "offset",
"description": "The number of artifacts to skip before starting to collect the result set. Defaults to 0.",
"schema": {
"default": 0,
"type": "integer"
},
"in": "query",
"required": false
},
{
"name": "limit",
"description": "The number of artifacts to return. Defaults to 20.",
"schema": {
"default": 20,
"type": "integer"
},
"in": "query",
"required": false
},
{
"name": "order",
"description": "Sort order, ascending (`asc`) or descending (`desc`).",
"schema": {
"$ref": "#/components/schemas/SortOrder"
},
"in": "query"
},
{
"name": "orderby",
"description": "The field to sort by. Can be one of:\n\n* `name`\n* `createdOn`\n",
"schema": {
"$ref": "#/components/schemas/ArtifactSortBy"
},
"in": "query"
},
{
"name": "labels",
"description": "Filter by one or more name/value label. Separate each name/value pair using a colon. For\nexample `labels=foo:bar` will return only artifacts with a label named `foo`\nand value `bar`.",
"schema": {
"type": "array",
"items": {
"type": "string"
}
},
"in": "query"
},
{
"name": "description",
"description": "Filter by description.",
"schema": {
"type": "string"
},
"in": "query"
},
{
"name": "groupId",
"description": "Filter by artifact group.",
"schema": {
"type": "string"
},
"in": "query"
},
{
"name": "globalId",
"description": "Filter by globalId.",
"schema": {
"format": "int64",
"type": "integer"
},
"in": "query"
},
{
"name": "contentId",
"description": "Filter by contentId.",
"schema": {
"format": "int64",
"type": "integer"
},
"in": "query",
"required": false
},
{
"name": "artifactId",
"description": "Filter by artifactId.",
"schema": {
"type": "string"
},
"in": "query"
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ArtifactSearchResults"
}
}
},
"description": "On a successful response, returns a result set of artifacts - one for each artifact\nin the registry that matches the criteria."
},
"500": {
"$ref": "#/components/responses/ServerError"
}
},
"operationId": "searchArtifacts",
"summary": "Search for artifacts",
"description": "Returns a paginated list of all artifacts that match the provided filter criteria.\n\nThis operation can fail for the following reasons:\n\n* A server error occurred (HTTP error `500`)\n"
},
"post": {
"requestBody": {
"description": "The content to search for.",
"content": {
"*/*": {
"schema": {
"$ref": "#/components/schemas/FileContent"
}
}
},
"required": true
},
"tags": [
"Search",
"Artifacts"
],
"parameters": [
{
"name": "canonical",
"description": "Parameter that can be set to `true` to indicate that the server should \"canonicalize\" the content when searching for matching artifacts. Canonicalization is unique to each artifact type, but typically involves removing any extra whitespace and formatting the content in a consistent manner. Must be used along with the `artifactType` query parameter.",
"schema": {
"type": "boolean"
},
"in": "query"
},
{
"name": "artifactType",
"description": "Indicates the type of artifact represented by the content being used for the search. This is only needed when using the `canonical` query parameter, so that the server knows how to canonicalize the content prior to searching for matching artifacts.",
"schema": {
"$ref": "#/components/schemas/ArtifactType"
},
"in": "query"
},
{
"name": "groupId",
"description": "Filter by artifact group.",
"schema": {
"type": "string"
},
"in": "query"
},
{
"name": "offset",
"description": "The number of artifacts to skip before starting to collect the result set. Defaults to 0.",
"schema": {
"default": 0,
"type": "integer"
},
"in": "query",
"required": false
},
{
"name": "limit",
"description": "The number of artifacts to return. Defaults to 20.",
"schema": {
"default": 20,
"type": "integer"
},
"in": "query",
"required": false
},
{
"name": "order",
"description": "Sort order, ascending (`asc`) or descending (`desc`).",
"schema": {
"$ref": "#/components/schemas/SortOrder"
},
"in": "query"
},
{
"name": "orderby",
"description": "The field to sort by. Can be one of:\n\n* `name`\n* `createdOn`\n",
"schema": {
"$ref": "#/components/schemas/ArtifactSortBy"
},
"in": "query"
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ArtifactSearchResults"
}
}
},
"description": "On a successful response, returns a result set of artifacts - one for each artifact\nin the registry that matches the criteria."
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"500": {
"$ref": "#/components/responses/ServerError"
}
},
"operationId": "searchArtifactsByContent",
"summary": "Search for artifacts by content",
"description": "Returns a paginated list of all artifacts with at least one version that matches the\nposted content.\n\nThis operation can fail for the following reasons:\n\n* Provided content (request body) was empty (HTTP error `400`)\n* A server error occurred (HTTP error `500`)\n"
}
},
"/admin/export": {
"summary": "Provides a way to export registry data.",
"get": {
"tags": [
"Admin"
],
"parameters": [
{
"name": "forBrowser",
"description": "Indicates if the operation is done for a browser. If true, the response will be a JSON payload with a property called `href`. This `href` will be a single-use, naked download link suitable for use by a web browser to download the content.",
"schema": {
"type": "boolean"
},
"in": "query"
}
],
"responses": {
"200": {
"content": {
"application/zip": {
"schema": {
"$ref": "#/components/schemas/FileContent"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/DownloadRef"
}
}
},
"description": "Response when the export is successful."
},
"500": {
"$ref": "#/components/responses/ServerError"
}
},
"operationId": "exportData",
"summary": "Export registry data",
"description": "Exports registry data as a ZIP archive."
}
},
"/admin/import": {
"summary": "Provides a way to import data into the registry.",
"post": {
"requestBody": {
"description": "The ZIP file representing the previously exported registry data.",
"content": {
"application/zip": {
"schema": {
"$ref": "#/components/schemas/FileContent"
}
}
},
"required": true
},
"tags": [
"Admin"
],
"parameters": [
{
"name": "X-Registry-Preserve-GlobalId",
"description": "If this header is set to false, global ids of imported data will be ignored and replaced by next id in global id sequence. This allows to import any data even thought the global ids would cause a conflict.",
"schema": {
"type": "boolean"
},
"in": "header"
},
{
"name": "X-Registry-Preserve-ContentId",
"description": "If this header is set to false, content ids of imported data will be ignored and replaced by next id in content id sequence. The mapping between content and artifacts will be preserved. This allows to import any data even thought the content ids would cause a conflict.",
"schema": {
"type": "boolean"
},
"in": "header",
"required": false
},
{
"name": "requireEmptyRegistry",
"description": "Query parameter indicating whether the registry must be empty before allowing\ndata to be imported. Defaults to `true` if omitted.",
"schema": {
"type": "boolean"
},
"in": "query",
"required": false
}
],
"responses": {
"201": {
"description": "Indicates that the import was successful."
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"500": {
"$ref": "#/components/responses/ServerError"
}
},
"operationId": "importData",
"summary": "Import registry data",
"description": "Imports registry data that was previously exported using the `/admin/export` operation."
}
},
"/groups/{groupId}/artifacts/{artifactId}/versions/{versionExpression}": {
"summary": "Manage a single version of a single artifact in the registry.",
"get": {
"tags": [
"Metadata"
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/VersionMetaData"
}
}
},
"description": "The artifact version's metadata."
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"500": {
"$ref": "#/components/responses/ServerError"
}
},
"operationId": "getArtifactVersionMetaData",
"summary": "Get artifact version metadata",
"description": "Retrieves the metadata for a single version of the artifact. The version metadata is \na subset of the artifact metadata and only includes the metadata that is specific to\nthe version (for example, this doesn't include `modifiedOn`).\n\nThis operation can fail for the following reasons:\n\n* No artifact with this `artifactId` exists (HTTP error `404`)\n* No version with this `version` exists (HTTP error `404`)\n* A server error occurred (HTTP error `500`)\n"
},
"put": {
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/EditableVersionMetaData"
}
}
},
"required": true
},
"tags": [
"Metadata"
],
"responses": {
"204": {
"description": "The artifact version's metadata was successfully updated."
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"500": {
"$ref": "#/components/responses/ServerError"
}
},
"operationId": "updateArtifactVersionMetaData",
"summary": "Update artifact version metadata",
"description": "Updates the user-editable portion of the artifact version's metadata. Only some of \nthe metadata fields are editable by the user. For example, `description` is editable, \nbut `createdOn` is not.\n\nThis operation can fail for the following reasons:\n\n* No artifact with this `artifactId` exists (HTTP error `404`)\n* No version with this `version` exists (HTTP error `404`)\n* A server error occurred (HTTP error `500`)\n"
},
"delete": {
"tags": [
"Versions"
],
"responses": {
"204": {
"description": "The artifact version was successfully deleted."
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"405": {
"$ref": "#/components/responses/MethodNotAllowed"
},
"500": {
"$ref": "#/components/responses/ServerError"
}
},
"operationId": "deleteArtifactVersion",
"summary": "Delete artifact version",
"description": "Deletes a single version of the artifact. Parameters `groupId`, `artifactId` and the unique `version`\nare needed. If this is the only version of the artifact, this operation is the same as \ndeleting the entire artifact.\n\nThis feature is disabled by default and it's discouraged for normal usage. To enable it, set the `registry.rest.artifact.deletion.enabled` property to true. This operation can fail for the following reasons:\n\n* No artifact with this `artifactId` exists (HTTP error `404`)\n* No version with this `version` exists (HTTP error `404`)\n * Feature is disabled (HTTP error `405`)\n * A server error occurred (HTTP error `500`)\n"
},
"parameters": [
{
"name": "groupId",
"description": "The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. Must follow the \".{1,512}\" pattern.",
"schema": {
"$ref": "#/components/schemas/GroupId"
},
"in": "path",
"required": true
},
{
"name": "artifactId",
"description": "The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. Must follow the \".{1,512}\" pattern.",
"schema": {
"$ref": "#/components/schemas/ArtifactId"
},
"in": "path",
"required": true
},
{
"name": "versionExpression",
"description": "An expression resolvable to a specific version ID within the given group and artifact. The following rules apply:\n\n - If the expression is in the form \"branch={branchId}\", and artifact branch {branchId} exists: The expression is resolved to a version that the branch points to.\n - Otherwise: The expression is resolved to a version with the same ID, which must follow the \"[a-zA-Z0-9._\\\\-+]{1,256}\" pattern.",
"schema": {
"type": "string"
},
"in": "path",
"required": true
}
]
},
"/groups/{groupId}/artifacts/{artifactId}/rules": {
"summary": "Manage the rules for a single artifact.",
"get": {
"tags": [
"Artifact rules"
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/RuleType"
}
}
}
},
"description": "Returns the names of the rules configured for the artifact."
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"500": {
"$ref": "#/components/responses/ServerError"
}
},
"operationId": "listArtifactRules",
"summary": "List artifact rules",
"description": "Returns a list of all rules configured for the artifact. The set of rules determines\nhow the content of an artifact can evolve over time. If no rules are configured for\nan artifact, then the rules configured for the group is used. If no rules are \nconfigured at the group level, then the set of globally configured rules are used. \nIf no global rules are defined, there are no restrictions on content evolution.\n\nThis operation can fail for the following reasons:\n\n* No artifact with this `artifactId` exists (HTTP error `404`)\n* A server error occurred (HTTP error `500`)"
},
"post": {
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CreateRule"
}
}
},
"required": true
},
"tags": [
"Artifact rules"
],
"responses": {
"204": {
"description": "The rule was added."
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"500": {
"$ref": "#/components/responses/ServerError"
}
},
"operationId": "createArtifactRule",
"summary": "Create artifact rule",
"description": "Adds a rule to the list of rules that get applied to the artifact when adding new\nversions. All configured rules must pass to successfully add a new artifact version.\n\nThis operation can fail for the following reasons:\n\n* No artifact with this `artifactId` exists (HTTP error `404`)\n* Rule (named in the request body) is unknown (HTTP error `400`)\n* Rule is already configured (HTTP error `409`)\n* A server error occurred (HTTP error `500`)"
},
"delete": {
"tags": [
"Artifact rules"
],
"responses": {
"204": {
"description": "The rules were successfully deleted."
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"500": {
"$ref": "#/components/responses/ServerError"
}
},
"operationId": "deleteArtifactRules",
"summary": "Delete artifact rules",
"description": "Deletes all of the rules configured for the artifact. After this is done, the global\nrules apply to the artifact again.\n\nThis operation can fail for the following reasons:\n\n* No artifact with this `artifactId` exists (HTTP error `404`)\n* A server error occurred (HTTP error `500`)"
},
"parameters": [
{
"name": "groupId",
"description": "The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. Must follow the \".{1,512}\" pattern.",
"schema": {
"$ref": "#/components/schemas/GroupId"
},
"in": "path",
"required": true
},
{
"name": "artifactId",
"description": "The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. Must follow the \".{1,512}\" pattern.",
"schema": {
"$ref": "#/components/schemas/ArtifactId"
},
"in": "path",
"required": true
}
]
},
"/groups/{groupId}/artifacts/{artifactId}/rules/{ruleType}": {
"summary": "Manage the configuration of a single artifact rule.",
"get": {
"tags": [
"Artifact rules"
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Rule"
}
}
},
"description": "Information about a rule."
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"500": {
"$ref": "#/components/responses/ServerError"
}
},
"operationId": "getArtifactRuleConfig",
"summary": "Get artifact rule configuration",
"description": "Returns information about a single rule configured for an artifact. This is useful\nwhen you want to know what the current configuration settings are for a specific rule.\n\nThis operation can fail for the following reasons:\n\n* No artifact with this `artifactId` exists (HTTP error `404`)\n* No rule with this name/type is configured for this artifact (HTTP error `404`)\n* Invalid rule type (HTTP error `400`)\n* A server error occurred (HTTP error `500`)"
},
"put": {
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Rule"
}
}
},
"required": true
},
"tags": [
"Artifact rules"
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Rule"
}
}
},
"description": "Rule configuration was updated."
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"500": {
"$ref": "#/components/responses/ServerError"
}
},
"operationId": "updateArtifactRuleConfig",
"summary": "Update artifact rule configuration",
"description": "Updates the configuration of a single rule for the artifact. The configuration data\nis specific to each rule type, so the configuration of the `COMPATIBILITY` rule \nis in a different format from the configuration of the `VALIDITY` rule.\n\nThis operation can fail for the following reasons:\n\n* No artifact with this `artifactId` exists (HTTP error `404`)\n* No rule with this name/type is configured for this artifact (HTTP error `404`)\n* Invalid rule type (HTTP error `400`)\n* A server error occurred (HTTP error `500`)\n"
},
"delete": {
"tags": [
"Artifact rules"
],
"responses": {
"204": {
"description": "The rule was successfully deleted."
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"500": {
"$ref": "#/components/responses/ServerError"
}
},
"operationId": "deleteArtifactRule",
"summary": "Delete artifact rule",
"description": "Deletes a rule from the artifact. This results in the rule no longer applying for\nthis artifact. If this is the only rule configured for the artifact, this is the \nsame as deleting **all** rules, and the globally configured rules now apply to\nthis artifact.\n\nThis operation can fail for the following reasons:\n\n* No artifact with this `artifactId` exists (HTTP error `404`)\n* No rule with this name/type is configured for this artifact (HTTP error `404`)\n* Invalid rule type (HTTP error `400`)\n* A server error occurred (HTTP error `500`)"
},
"parameters": [
{
"name": "groupId",
"description": "The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. Must follow the \".{1,512}\" pattern.",
"schema": {
"$ref": "#/components/schemas/GroupId"
},
"in": "path",
"required": true
},
{
"name": "artifactId",
"description": "The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. Must follow the \".{1,512}\" pattern.",
"schema": {
"$ref": "#/components/schemas/ArtifactId"
},
"in": "path",
"required": true
},
{
"name": "ruleType",
"description": "The unique name/type of a rule.",
"schema": {
"enum": [
"VALIDITY",
"COMPATIBILITY",
"INTEGRITY"
],
"type": "string"
},
"in": "path",
"required": true
}
]
},
"/admin/roleMappings/{principalId}": {
"summary": "Manage the configuration of a single role mapping.",
"get": {
"tags": [
"Admin"
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RoleMapping"
}
}
},
"description": "When successful, returns the details of a role mapping."
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"500": {
"$ref": "#/components/responses/ServerError"
}
},
"operationId": "getRoleMapping",
"summary": "Return a single role mapping",
"description": "Gets the details of a single role mapping (by `principalId`).\n\nThis operation can fail for the following reasons:\n\n* No role mapping for the `principalId` exists (HTTP error `404`)\n* A server error occurred (HTTP error `500`)\n"
},
"put": {
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateRole"
}
}
},
"required": true
},
"tags": [
"Admin"
],
"responses": {
"204": {
"description": "Response when the update is successful."
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"500": {
"$ref": "#/components/responses/ServerError"
}
},
"operationId": "updateRoleMapping",
"summary": "Update a role mapping",
"description": "Updates a single role mapping for one user/principal.\n\nThis operation can fail for the following reasons:\n\n* No role mapping for the principalId exists (HTTP error `404`)\n* A server error occurred (HTTP error `500`)\n"
},
"delete": {
"tags": [
"Admin"
],
"responses": {
"204": {
"description": "Response returned when the delete was successful."