You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If user is not logged in, client should be redirected to Login Page. Please check Protected Routing subject on React Router 5 tutorials and docs.
In this task you will handle only Step 1
Step 1 - Address information
On that page client can add shipping and receipt addresses separately
Client can select address previously saved
Make a GET request to “/user/address” to get saved address list of the user
NOTE! if user authenticated and token is in request headers, address of the user will be responded. However, if user is not logged in, than it will response with an Error
Add new address
If client click “Add Address” button a form should be shown on the page
Form Fields:
Address Title: String
Name & Surname: String
Phone: String
City (İl): City should be selected on the dropdown list
District (İlçe): String
Neighborhood (Mahalle): String
Address: String multiline ****for the rest details: Street, building and door numbers
On Submit you need to make a POST request to same endpoint: “/user/address”
NOTE! if user authenticated and token is in request headers, address of the user will be saved to DB. However, if user is not logged in, than address will not be saved and it will response with an Error.
To update address information you need to create PUT request to “/user/address” endpoint including id of the address information.
The text was updated successfully, but these errors were encountered:
Description
There will be two steps on Create Order Page
If user is not logged in, client should be redirected to Login Page. Please check Protected Routing subject on React Router 5 tutorials and docs.
In this task you will handle only Step 1
Step 1 - Address information
Add new address
The text was updated successfully, but these errors were encountered: