mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 05:18:25 +00:00 
			
		
		
		
	Fix route in swagger (#5598)
This commit is contained in:
		
				
					committed by
					
						
						Lauris BH
					
				
			
			
				
	
			
			
			
						parent
						
							4586ae390f
						
					
				
				
					commit
					ba2c02b75d
				
			@@ -42,7 +42,7 @@ func ListMyOrgs(ctx *context.APIContext) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
// ListUserOrgs list user's orgs
 | 
					// ListUserOrgs list user's orgs
 | 
				
			||||||
func ListUserOrgs(ctx *context.APIContext) {
 | 
					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
 | 
						// summary: List a user's organizations
 | 
				
			||||||
	// produces:
 | 
						// produces:
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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": {
 | 
					    "/users/search": {
 | 
				
			||||||
      "get": {
 | 
					      "get": {
 | 
				
			||||||
        "produces": [
 | 
					        "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": {
 | 
					    "/users/{username}/repos": {
 | 
				
			||||||
      "get": {
 | 
					      "get": {
 | 
				
			||||||
        "produces": [
 | 
					        "produces": [
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user