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

[API] /auth/login(POST) response with a status code of 201 is returned. #143

Closed
monstar-hashimoto-ryosuke opened this issue Apr 22, 2020 · 1 comment

Comments

@monstar-hashimoto-ryosuke

Bug Details

  • The status code of the /auth/login(POST) response is returned as 201 and the data is also returned.
    • By Swagger's definition, the status code is 204, with no response data.

covid_api_auth_login_back

# Implementation environment * Postman(Mac)

Expected value

  • As defined in Swagger, the status code returns 204 as a response

Reproduction method

  1. Open an API test tool such as Postman and configure the following
  2. Enter the URL. https://api-dev.mamori-i.jp/auth/login
  3. Include the following in the Request body
{
  "prefecture": 1,
  "job": "公務員"
}
  1. Obtain an access token from the authentication screen
  2. Set the access token obtained in 3 as the Bearer Token
  3. Send the API
@monstar-hashimoto-ryosuke monstar-hashimoto-ryosuke changed the title [API] /auth/login(POST)のレスポンスのステータスコードが201で返却される [API] /auth/login(POST) response with a status code of 201 is returned. Apr 22, 2020
@shogo-mitomo
Copy link
Member

The app team requested that to return an empty JSON instead of no response.
Therefore, the status code has been changed to 200. We have also changed the Swagger API definition document to do so.

@DaisukeHirata DaisukeHirata transferred this issue from another repository May 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants