Skip to content
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 "orgID" parameter shouldn't be required for "GET /labels" [area/api] #13401

Closed
bednar opened this issue Apr 15, 2019 · 0 comments · Fixed by #13444
Closed
Assignees
Labels

Comments

@bednar
Copy link
Contributor

bednar commented Apr 15, 2019

The GET /labels is defined as:

/labels:
    get:
      tags:
        - Labels
      summary: Get all labels
      parameters:
          - $ref: '#/components/parameters/TraceSpan'
          - in: query
            name: orgID
            description: specifies the organization of the resource
            required: true
            schema:
              type: string
      responses:
        '200':
          description: all labels
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LabelsResponse"
        default:
          description: unexpected error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"

but the orgID parameter is not required by an implementation:

-> GET
-> http://127.0.0.1:9999/api/v2/labels

<- 200 
<- OK
<- {
	"links": {
		"self": "/api/v2/labels"
	},
	"labels": [{
		"id": "03b441dfd9371000",
		"orgID": "03b440ac89b71000",
		"name": "Cool Resource1555332471625-IT"
	}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants