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 update customer information #8

Closed Bobby-Zien closed 3 years ago

Bobby-Zien commented 3 years ago

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:

Acceptance Criteria:

Given a valid customer_id and a valid JSON request body
When I call 'PUT /customers/{customer_id}'
Then I should receive a 200 HTTP return code and a JSON object representing the customer whose information was just modified

Given a valid customer_id and a valid JSON request body
When I call 'PUT /customers/{customer_id}/addresses' 
Then I should receive a 200 HTTP return code and a JSON object representing the customer whose information was just modified
ryanjcohen commented 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

ryanjcohen commented 3 years ago

TODO: finish updating acceptance criteria for addresses subordinate api

ryanjcohen commented 3 years ago

TODO: decide what we want to return when the addresses API is called with a PUT operation

ryanjcohen commented 3 years ago

TODO: subordinate API for address updates

liyingxin97 commented 3 years ago

TODO: subordinate API for address updates

I just test API on the postman.

ryanjcohen commented 3 years ago

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

ryanjcohen commented 3 years ago

Assigning myself just to cover the PUT for the addresses API