Skip to content

Commit

Permalink
Fix route in swagger (#5598)
Browse files Browse the repository at this point in the history
  • Loading branch information
shashvat-kedia authored and lafriks committed Dec 26, 2018
1 parent 4586ae3 commit ba2c02b
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion routers/api/v1/org/org.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func ListMyOrgs(ctx *context.APIContext) {

// ListUserOrgs list user's orgs
func ListUserOrgs(ctx *context.APIContext) {
// swagger:operation GET /user/{username}/orgs organization orgListUserOrgs
// swagger:operation GET /users/{username}/orgs organization orgListUserOrgs
// ---
// summary: List a user's organizations
// produces:
Expand Down
52 changes: 26 additions & 26 deletions templates/swagger/v1_json.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -5411,32 +5411,6 @@
}
}
},
"/user/{username}/orgs": {
"get": {
"produces": [
"application/json"
],
"tags": [
"organization"
],
"summary": "List a user's organizations",
"operationId": "orgListUserOrgs",
"parameters": [
{
"type": "string",
"description": "username of user",
"name": "username",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"$ref": "#/responses/OrganizationList"
}
}
}
},
"/users/search": {
"get": {
"produces": [
Expand Down Expand Up @@ -5690,6 +5664,32 @@
}
}
},
"/users/{username}/orgs": {
"get": {
"produces": [
"application/json"
],
"tags": [
"organization"
],
"summary": "List a user's organizations",
"operationId": "orgListUserOrgs",
"parameters": [
{
"type": "string",
"description": "username of user",
"name": "username",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"$ref": "#/responses/OrganizationList"
}
}
}
},
"/users/{username}/repos": {
"get": {
"produces": [
Expand Down

0 comments on commit ba2c02b

Please sign in to comment.