Skip to content

Commit ba2c02b

Browse files
shashvat-kedialafriks
authored andcommitted
Fix route in swagger (#5598)
1 parent 4586ae3 commit ba2c02b

File tree

2 files changed

+27
-27
lines changed

2 files changed

+27
-27
lines changed

routers/api/v1/org/org.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func ListMyOrgs(ctx *context.APIContext) {
4242

4343
// ListUserOrgs list user's orgs
4444
func ListUserOrgs(ctx *context.APIContext) {
45-
// swagger:operation GET /user/{username}/orgs organization orgListUserOrgs
45+
// swagger:operation GET /users/{username}/orgs organization orgListUserOrgs
4646
// ---
4747
// summary: List a user's organizations
4848
// produces:

templates/swagger/v1_json.tmpl

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5411,32 +5411,6 @@
54115411
}
54125412
}
54135413
},
5414-
"/user/{username}/orgs": {
5415-
"get": {
5416-
"produces": [
5417-
"application/json"
5418-
],
5419-
"tags": [
5420-
"organization"
5421-
],
5422-
"summary": "List a user's organizations",
5423-
"operationId": "orgListUserOrgs",
5424-
"parameters": [
5425-
{
5426-
"type": "string",
5427-
"description": "username of user",
5428-
"name": "username",
5429-
"in": "path",
5430-
"required": true
5431-
}
5432-
],
5433-
"responses": {
5434-
"200": {
5435-
"$ref": "#/responses/OrganizationList"
5436-
}
5437-
}
5438-
}
5439-
},
54405414
"/users/search": {
54415415
"get": {
54425416
"produces": [
@@ -5690,6 +5664,32 @@
56905664
}
56915665
}
56925666
},
5667+
"/users/{username}/orgs": {
5668+
"get": {
5669+
"produces": [
5670+
"application/json"
5671+
],
5672+
"tags": [
5673+
"organization"
5674+
],
5675+
"summary": "List a user's organizations",
5676+
"operationId": "orgListUserOrgs",
5677+
"parameters": [
5678+
{
5679+
"type": "string",
5680+
"description": "username of user",
5681+
"name": "username",
5682+
"in": "path",
5683+
"required": true
5684+
}
5685+
],
5686+
"responses": {
5687+
"200": {
5688+
"$ref": "#/responses/OrganizationList"
5689+
}
5690+
}
5691+
}
5692+
},
56935693
"/users/{username}/repos": {
56945694
"get": {
56955695
"produces": [

0 commit comments

Comments
 (0)