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

Have /api/v1/users/init/ return a JSON response or an empty body #59

Closed
andrewshawcare opened this issue Sep 23, 2020 · 3 comments · Fixed by #2739
Closed

Have /api/v1/users/init/ return a JSON response or an empty body #59

andrewshawcare opened this issue Sep 23, 2020 · 3 comments · Fixed by #2739
Assignees
Labels
feature New feature or request good first issue Good for newcomers

Comments

@andrewshawcare
Copy link
Contributor

I've created a provisioning script and a client wrapper for the Bullet Train API which throws an exception when attempting to parse the response from /api/v1/users/init/ as it seems to only return a text body of, "ADMIN USER CREATED".

Ideally, when the Accept header is set to application/json, the API could return either a 201 Created response with no body or the same message as a JSON payload:

{
  "adminUserCreated": true
}
@dabeeeenster
Copy link
Contributor

Hi Andrew,

Thanks for this - It's on the backlog and will get fixed up shortly.

@dabeeeenster dabeeeenster added feature New feature or request good first issue Good for newcomers labels Nov 21, 2020
@tushar5526
Copy link
Contributor

tushar5526 commented Sep 3, 2023

I would like to work on this if this is not solved internally :)

@dabeeeenster
Copy link
Contributor

Yep that would be great @tushar5526

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants