@@ -111,6 +111,7 @@ paths:
111111 application/json :
112112 schema :
113113 $ref : ' #/components/schemas/Team'
114+
114115 ' /v1/teams/{teamId} ' :
115116 parameters :
116117 - $ref : ' #/components/parameters/teamParams'
@@ -154,6 +155,83 @@ paths:
154155 ' 200 ' :
155156 description : Successfully deleted a team
156157
158+ /v2/teams :
159+ get :
160+ operationId : getAplTeams
161+ description : Get teams collection
162+ x-aclSchema : Team
163+ responses :
164+ ' 200 ' :
165+ description : Successfully obtained teams collection
166+ content :
167+ application/json :
168+ schema :
169+ type : array
170+ items :
171+ $ref : ' #/components/schemas/AplTeamSettingsResponse'
172+ post :
173+ operationId : createAplTeam
174+ description : Create a team
175+ x-aclSchema : Team
176+ requestBody :
177+ content :
178+ application/json :
179+ schema :
180+ $ref : ' #/components/schemas/AplTeamSettingsRequest'
181+ description : Team object that needs to be added to the collection
182+ required : true
183+ responses :
184+ << : *DefaultPostResponses
185+ ' 200 ' :
186+ description : Successfully obtained teams collection
187+ content :
188+ application/json :
189+ schema :
190+ $ref : ' #/components/schemas/AplTeamSettingsResponse'
191+
192+ ' /v2/teams/{teamId} ' :
193+ parameters :
194+ - $ref : ' #/components/parameters/teamParams'
195+ get :
196+ operationId : getAplTeam
197+ description : Get a specific team
198+ x-aclSchema : Team
199+ responses :
200+ << : *DefaultGetResponses
201+ ' 200 ' :
202+ description : Successfully obtained team
203+ content :
204+ application/json :
205+ schema :
206+ $ref : ' #/components/schemas/AplTeamSettingsResponse'
207+ put :
208+ operationId : editAplTeam
209+ description : Edit a team
210+ x-aclSchema : Team
211+ requestBody :
212+ content :
213+ application/json :
214+ schema :
215+ $ref : ' #/components/schemas/AplTeamSettingsRequest'
216+ description : Team object that contains updated values
217+ required : true
218+ responses :
219+ << : *DefaultGetResponses
220+ ' 200 ' :
221+ description : Successfully edited team
222+ content :
223+ application/json :
224+ schema :
225+ $ref : ' #/components/schemas/AplTeamSettingsResponse'
226+ delete :
227+ operationId : deleteAplTeam
228+ description : Delete team
229+ x-aclSchema : Team
230+ responses :
231+ << : *DefaultGetResponses
232+ ' 200 ' :
233+ description : Successfully deleted a team
234+
157235 /v1/services :
158236 get :
159237 operationId : getAllServices
@@ -2850,7 +2928,7 @@ components:
28502928 properties :
28512929 kind :
28522930 type : string
2853- enum : [AplTeamSettings ]
2931+ enum : [AplTeamSettingSet ]
28542932 spec :
28552933 $ref : ' team.yaml#/AplTeamSpec'
28562934 required :
@@ -2859,12 +2937,12 @@ components:
28592937 AplTeamSettingsRequest :
28602938 allOf :
28612939 - $ref : ' #/components/schemas/AplTeamSettings'
2862- - $ref : ' #/components/schemas/aplMetadata '
2940+ - $ref : ' #/components/schemas/aplTeamMetadata '
28632941 AplTeamSettingsResponse :
28642942 type : object
28652943 allOf :
28662944 - $ref : ' #/components/schemas/AplTeamSettings'
2867- - $ref : ' #/components/schemas/aplMetadata '
2945+ - $ref : ' #/components/schemas/aplTeamMetadata '
28682946 - $ref : ' #/components/schemas/aplStatusResponse'
28692947 AplWorkload :
28702948 type : object
0 commit comments