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 /ready endpoint doesn't satisfy the swagger schema [area/api] #12546

Closed
bednar opened this issue Mar 12, 2019 · 0 comments · Fixed by #12592
Closed

InfluxDB 2.0: The /ready endpoint doesn't satisfy the swagger schema [area/api] #12546

bednar opened this issue Mar 12, 2019 · 0 comments · Fixed by #12592
Assignees
Labels
Milestone

Comments

@bednar
Copy link
Contributor

bednar commented Mar 12, 2019

The /ready endpoint is in swagger defined as:

 /ready:
    get:
      tags:
        - Ready
      summary: Get the readiness of a instance at startup. Allow us to confirm the instance is prepared to accept requests.
      parameters:
        - $ref: '#/components/parameters/TraceSpan'
      responses:
        '200':
          description: the instance is ready
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Check"
        '503':
          description: the instance is not ready yet
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Check"
        default:
          description: unexpected error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"

but the HTTP response is completely different and isn't parsable to Check schema:

-> GET 
-> http://127.0.0.1:9999/ready

<- 200 
<- OK
<- {
    "status": "ready",
    "started": "2019-03-12T12:20:17.798671806Z",
    "up": "26m14.504225814s"
}
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.

4 participants