Closed Bobby-Zien closed 3 years ago
Updating issue to include how to update just the addresses of a customer - check slack channel for discussion on keeping addresses subordinate API specified in same tickets as customers API
TODO: finish updating acceptance criteria for addresses subordinate api
TODO: decide what we want to return when the addresses API is called with a PUT operation
TODO: subordinate API for address updates
TODO: subordinate API for address updates
I just test API on the postman.
TODO: subordinate API for address updates
I just test API on the postman.
I think we have to make sure that we have a separate endpoint for changing addresses specifically though based on the assignment. I can see if I can find the time to look into it
Assigning myself just to cover the PUT for the addresses API
As a user I need the ability to update my information as a customer So that I can change my contact information, change my address, change my wishlists, and more on the eCommerce site.
Details & Assumptions:
For updating a customer's information:
PUT http://[Our API address]/customers/{customer_id}
Expected request JSON body for updating a customer's information:
For updating a customer's address specifically:
PUT http://[Our API address]/customers/{customer_id}/addresses
The
PUT http://[Our API address]/customers/{customer_id}/addresses
endpoint will include a JSON request body containing an array specifying the set of addresses that should replace the user's current set of addressesExpected request JSON body for updating a customer's addresses:
Acceptance Criteria: