Question: ## 1 : Our API should be able to process new User registrations. As a user, I should be able to create a new Account
## : Our API should be able to process new User registrations.
As a user, I should be able to create a new Account on the endpoint POST localhost:register The body will contain a representation of a JSON Account, but will not contain an accountid
The registration will be successful if and only if the username is not blank, the password is at least characters long, and an Account with that username does not already exist. If all these conditions are met, the response body should contain a JSON of the Account, including its accountid The response status should be OK which is the default. The new account should be persisted to the database.
If the registration is not successful, the response status should be Client error
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
