소스 검색

Fix route in swagger (#5598)

tags/v1.7.0-dev
Shashvat Kedia 5 년 전
부모
커밋
ba2c02b75d
2개의 변경된 파일27개의 추가작업 그리고 27개의 파일을 삭제
  1. 1
    1
      routers/api/v1/org/org.go
  2. 26
    26
      templates/swagger/v1_json.tmpl

+ 1
- 1
routers/api/v1/org/org.go 파일 보기

@@ -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:

+ 26
- 26
templates/swagger/v1_json.tmpl 파일 보기

@@ -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": [
@@ -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": [

Loading…
취소
저장