Skip to content

Language validation for insert and update user mathod #42

@Gromoff9999

Description

@Gromoff9999

As developer, I would like to update status of responses.

That would allow to get more correct responses to the requests through Postman tool.
Below, I am ready to offer answers and statuses.

Language validation for insert and update user methods.

** User/REGISTRATION**

  1. Display 400 status response with the POST method with invalid value in languages and valid URL.
  2. Display 400 status response with the POST method with empty language key in body and valid URL.
  3. Display 400 status response with the POST method with empty language value in body and valid URL.
  4. Display 400 status response with the POST request method with existing email and existing language in body and valid URL.
  5. Display 404 status response with the GET request method for inpoint .
  6. Display 404 status response with the PUT request method for inpoint.
  7. Display 404 status response with the PATCH request method for inpoint.
  8. Display 404 status response with the DELETE request method for inpoint.

User/LOGIN
1.Display 401 status response with the POST method with non exist languages in body and valid body and URL.
Display 400 status response with the POST request method with invalid language in body.
Display 400 status response with the POST method with empty value languages in body and valid URL
Display 400 status response with the POST method with empty key languages in body and valid URL

User/PATCH
Display 200 status response with the PATCH method with changed exist languages in valid body and valid URL
Display 400 status response with the PATCH request method with changed exist on invalid value language in body.
Display 200 status response with the PATCH method with empty value language in valid body and valid URL.

User/GET
Display 404 status response with the GET request method with invalid value of languages in body
Display 404 status response with the GET request method with non exist languages in body

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions