After you create an account you can post, update and delete information about the car you wish to sell.
Please do not save any changes that you make
2. If you do not have the Desktop App visit https://www.postman.com/ and Sign up for free.
When logged in you will need to locate where it says Get started with Postman and below choose Start with something new, Next select HTTP Request
Enter the following url: https://car-sale-silk.vercel.app/api/cars
If you want to skip this part you can go straight to step 5 with a premade username
1. Open a new window, enter the url again but remove cars and replace with users (https://car-sale-silk.vercel.app/api/users)
1. Open a new window, enter the url again but add to the ending login https://car-sale-silk.vercel.app/api/users/login
email: tskoli@tskoli.is password: Tskoli.12345
🥳 Result: Congrats! you are now logged in as a user and are able to 'POST' a car if you can see your id, name, email and token.
1. To be able to 'POST' a car you need authorization. This is where we will need to go back to our login tab and copy the "token" information
only copy the text inside the quotation marks "token": " copy this text "
2. Go back to your car tab and where we selected 'Body' before now we want to select 'Authorization'
🥳 Result: Congrats! you have now made your first 'POST' and should see the information displayed with your username.
make sure you are on the car ulr where you made a 'POST' before
3. Locate the id from the 'GET' result only copy the text inside the quotation marks "_id": " copy this number "
make sure you are on the car ulr where you made a 'PUT' before
🥳 Result: The post you made should now be replaced with only the id number and it should no longer be visable in the 'GET' results!
remember to remove the id number from the url when you want to 'GET' cars