Skip to content

Commit

Permalink
refactor: remove nested orgs labels route from swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
AlirieGray committed Jul 28, 2020
1 parent 9802ae1 commit 68b06b6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 68 deletions.
68 changes: 0 additions & 68 deletions http/swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4110,74 +4110,6 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/Error"
post:
operationId: PostOrgsIDLabels
tags:
- Organizations
summary: Add a label to an organization
parameters:
- $ref: "#/components/parameters/TraceSpan"
- in: path
name: orgID
schema:
type: string
required: true
description: The organization ID.
requestBody:
description: Label to add
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/LabelMapping"
responses:
"201":
description: Returns the created label
content:
application/json:
schema:
$ref: "#/components/schemas/LabelResponse"
default:
description: Unexpected error
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
"/orgs/{orgID}/labels/{labelID}":
delete:
operationId: DeleteOrgsIDLabelsID
tags:
- Organizations
summary: Delete a label from an organization
parameters:
- $ref: "#/components/parameters/TraceSpan"
- in: path
name: orgID
schema:
type: string
required: true
description: The organization ID.
- in: path
name: labelID
schema:
type: string
required: true
description: The label ID.
responses:
"204":
description: Delete has been accepted
"404":
description: Organization not found
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
default:
description: Unexpected error
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
"/orgs/{orgID}/secrets":
get:
operationId: GetOrgsIDSecrets
Expand Down
1 change: 1 addition & 0 deletions label/http_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ func (h *LabelEmbeddedHandler) handleFindResourceLabels(w http.ResponseWriter, r
h.api.Err(w, r, err)
return
}

filter := influxdb.LabelMappingFilter{
ResourceID: *embeddedID,
ResourceType: h.rt,
Expand Down

0 comments on commit 68b06b6

Please sign in to comment.