-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InfluxDB 2.0: The LabelResponse schema isn't used for "/scrapers/{scraperTargetID}/labels" and "/buckets/{bucketID}/labels" (POST method) [area/api] #77
Comments
Hi @kelwang The response type for creating a label has to be The definition has to be same as for '/orgs/{orgID}/labels':
...
post:
tags:
- Organizations
summary: add a label to an organization
parameters:
- $ref: '#/components/parameters/TraceSpan'
- in: path
name: orgID
schema:
type: string
required: true
description: ID of the organization
requestBody:
description: label to add
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/LabelMapping"
responses:
'200':
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"
'/telegrafs/{telegrafID}/labels':
...
post:
tags:
- Telegrafs
summary: add a label to a telegraf config
parameters:
- $ref: '#/components/parameters/TraceSpan'
- in: path
name: telegrafID
schema:
type: string
required: true
description: ID of the telegraf config
requestBody:
description: label to add
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/LabelMapping"
responses:
'200':
description: "the label added to the telegraf config"
content:
application/json:
schema:
$ref: "#/components/schemas/LabelResponse"
default:
description: unexpected error
content:
application/json:
schema:
$ref: "#/components/schemas/Error" cc @jademcgough |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it has not had recent activity. Please reopen if this issue is still important to you. Thank you for your contributions. |
The
POST
response for/scrapers/{scraperTargetID}/labels
and/buckets/{bucketID}/labels
is defined as inner object:but has to be defined as
LabelResponse
(same type as forGET
).The text was updated successfully, but these errors were encountered: