33 title : " Modelix Maven Connector"
44 version : " 1.0.0"
55servers :
6- - url : ' /api/ modelix/maven-connector'
6+ - url : ' /modelix/maven-connector'
77 description : Makes artifacts from maven repositories available to other services
88tags :
99 - name : MavenConnector
10+ - name : MavenRepositories
11+ - name : MavenArtifacts
1012paths :
1113 / :
1214 get :
1315 operationId : getMavenConnectorConfig
14- tags : [MavenConnector ]
16+ tags : [MavenRepositories, MavenArtifacts ]
1517 responses :
1618 " 200 " :
1719 description : OK
2224 /repositories/ :
2325 get :
2426 operationId : listMavenRepositories
27+ tags : [MavenRepositories]
2528 responses :
2629 " 200 " :
2730 description : OK
3235 /repositories/{repositoryId} :
3336 get :
3437 operationId : getMavenRepository
35- tags : [MavenConnector ]
38+ tags : [MavenRepositories ]
3639 parameters :
3740 - name : repositoryId
3841 in : path
4851 $ref : ' #/components/schemas/MavenRepository'
4952 put :
5053 operationId : updateMavenRepository
51- tags : [MavenConnector ]
54+ tags : [MavenRepositories ]
5255 parameters :
5356 - name : repositoryId
5457 in : path
6568 description : OK
6669 delete :
6770 operationId : deleteMavenRepository
68- tags : [MavenConnector ]
71+ tags : [MavenRepositories ]
6972 parameters :
7073 - name : repositoryId
7174 in : path
@@ -78,14 +81,76 @@ paths:
7881 /artifacts/ :
7982 get :
8083 operationId : listMavenArtifacts
81- tags : [MavenConnector ]
84+ tags : [MavenArtifacts ]
8285 responses :
8386 " 200 " :
8487 description : OK
8588 content :
8689 application/json :
8790 schema :
8891 $ref : ' #/components/schemas/MavenArtifactList'
92+ /artifacts/{groupId}/{artifactId} :
93+ get :
94+ operationId : getMavenArtifact
95+ tags : [MavenArtifacts]
96+ parameters :
97+ - name : groupId
98+ in : path
99+ required : true
100+ schema :
101+ type : string
102+ - name : artifactId
103+ in : path
104+ required : true
105+ schema :
106+ type : string
107+ responses :
108+ " 200 " :
109+ description : OK
110+ content :
111+ application/json :
112+ schema :
113+ $ref : ' #/components/schemas/MavenArtifact'
114+ put :
115+ operationId : updateMavenArtifact
116+ tags : [MavenArtifacts]
117+ parameters :
118+ - name : groupId
119+ in : path
120+ required : true
121+ schema :
122+ type : string
123+ - name : artifactId
124+ in : path
125+ required : true
126+ schema :
127+ type : string
128+ requestBody :
129+ content :
130+ application/json :
131+ schema :
132+ $ref : ' #/components/schemas/MavenArtifact'
133+ responses :
134+ " 200 " :
135+ description : OK
136+ delete :
137+ operationId : deleteMavenArtifact
138+ tags : [MavenArtifacts]
139+ parameters :
140+ - name : groupId
141+ in : path
142+ required : true
143+ schema :
144+ type : string
145+ - name : artifactId
146+ in : path
147+ required : true
148+ schema :
149+ type : string
150+ responses :
151+ " 200 " :
152+ description : OK
153+
89154components :
90155 schemas :
91156 MavenConnectorConfig :
@@ -114,10 +179,8 @@ components:
114179 properties :
115180 id :
116181 type : string
117- nullable : false
118182 url :
119183 type : string
120- nullable : false
121184 MavenArtifactList :
122185 type : object
123186 required : [artifacts]
0 commit comments