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 "me/password" doesn't have specified a response content [area/api] #12772

Closed
bednar opened this issue Mar 20, 2019 · 0 comments
Assignees
Labels

Comments

@bednar
Copy link
Contributor

bednar commented Mar 20, 2019

The me/password doesn't have specified a response content:

/me/password:
    put:
      tags:
        - Users
      summary: Update password
      security:
        - basicAuth: []
      parameters:
        - $ref: '#/components/parameters/TraceSpan'
      requestBody:
        description: new password
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/PasswordResetBody"
      responses:
        '204':
          description: password succesfully updated
        default:
          description: unsuccessful authentication
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"

but the http response contains an User:

-> PUT 
-> http://127.0.0.1:9999/api/v2/me/password
-> {"password":"my-password"}

<- 200 
<- OK
<- {
	"links": {
		"logs": "/api/v2/users/0391ed592f162000/logs",
		"self": "/api/v2/users/0391ed592f162000"
	},
	"id": "0391ed592f162000",
	"name": "my-user"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants