devops-customers-squad / customers

This repository contains the implementation of the customers RESTful Flask service to be used by the eCommerce site.
Apache License 2.0
0 stars 2 forks source link

Need the ability to create a new customer #3

Closed ryanjcohen closed 3 years ago

ryanjcohen commented 3 years ago

As a user I need the ability to register my information as a customer and create an account So that I can create wishlists, receive recommendations, place orders, and more on the eCommerce site.

Details & Assumptions:

Acceptance Criteria:

Given a valid JSON request body specifying a new customer's information
When I submit the create customer request by calling 'POST /customers' 
Then I should receive an HTTP return code of 201 and a JSON object representing the newly-created customer
Bobby-Zien commented 3 years ago

Added Acceptance Criteria

ryanjcohen commented 3 years ago

Just making small change to acceptance criteria to make the JSON body formatted as a code block

ryanjcohen commented 3 years ago

Ranking as 8 for now, as we might end up doing more error-checking/validation on the request for this endpoint than for some other endpoints (ex. GET endpoints)

Bobby-Zien commented 3 years ago

Should duplicated username should return 400?