Closed osman-butt closed 1 month ago
According to the OpenAPI spec for the POST api/register endpoint, the request body should look like:
POST api/register
However, the legacy code implementation for the POST api/register route is as follows:
1. Which implementation is correct according to the current requirements?
2. Which implementation is the simulation using?
@anderslatif
Email is missing in the spec and password2 is optional. It will be sent but it's up to your API to use it or not. I have updated the OpenAPI Spec. Thank you for pointing this out.
Description
According to the OpenAPI spec for the
POST api/register
endpoint, the request body should look like:However, the legacy code implementation for the
POST api/register
route is as follows:Questions:
1. Which implementation is correct according to the current requirements?
2. Which implementation is the simulation using?