{"info":{"_postman_id":"57c0b6f2-a0e2-4840-af23-bc2d3e61356e","name":"CarRentals API","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"171080","collectionId":"57c0b6f2-a0e2-4840-af23-bc2d3e61356e","publishedId":"TW6tKpYs","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-01-23T03:04:16.000Z"},"item":[{"name":"Login","id":"57d01b84-fbba-490d-8460-8a6da9503388","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n   \"username\": \"admin\",\n   \"password\": \"Password123\"\n}","options":{"raw":{"language":"json"}}},"url":"https://cush-car.herokuapp.com/api/v1/login","description":"<p>POST '/login' EndPoint for signing in users</p>\n","urlObject":{"protocol":"https","path":["api","v1","login"],"host":["cush-car","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"57d01b84-fbba-490d-8460-8a6da9503388"},{"name":"Get All Users","id":"76332723-1a44-4eb7-9817-ab8de368de77","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIzIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNjA4NDMyNzk2LCJleHAiOjE2MDg1MTkxOTYsImp0aSI6IjA5ZGRmMmZjLWY5M2YtNDVlZS04MDJjLTA1MDlkMTBkOWQzYyJ9.7xqyKjxltvBvmyqXBcbxWxDGex8LWsCnN6EcklOu77k"}],"url":"https://cush-car.herokuapp.com/api/v1/users","description":"<p>Get the list of all users\nYou can also limit results using /?limit=2\nwith offset /?limit=2/?offset=1</p>\n","urlObject":{"protocol":"https","path":["api","v1","users"],"host":["cush-car","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"76332723-1a44-4eb7-9817-ab8de368de77"},{"name":"Get All Cars","event":[{"listen":"test","script":{"id":"0839bad6-8c77-434b-9873-426357b735af","exec":["pm.globals.set(\"variable_key\", \"variable_value\");"],"type":"text/javascript"}}],"id":"7432fd5b-51eb-499c-bbb7-9c5e436d6c97","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://cush-car.herokuapp.com/api/v1/cars/","description":"<p>Get the list of all cars available\nYou can also limit results using /?limit=2\nwith offset /?limit=2/?offset=1</p>\n","urlObject":{"protocol":"https","path":["api","v1","cars",""],"host":["cush-car","herokuapp","com"],"query":[{"disabled":true,"key":"limit","value":""}],"variable":[]}},"response":[],"_postman_id":"7432fd5b-51eb-499c-bbb7-9c5e436d6c97"},{"name":"Post a Car","id":"5caff1cb-e1a7-4df2-bfec-2940a0247167","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"make\": \"Toyota\",\n  \"model\": \"Corolla\",\n  \"year\": 2015,\n  \"color\": \"Black\",\n  \"ac\": \"true\",\n  \"transmission\": \"Automatic\",\n  \"max_capacity\": 4,\n  \"image_url\": \"https://source.unsplash.com/800x600/?car,black\"\n}","options":{"raw":{"language":"json"}}},"url":"https://cush-car.herokuapp.com/api/v1/cars","description":"<p>User must be logged in to be able to add a car</p>\n","urlObject":{"protocol":"https","path":["api","v1","cars"],"host":["cush-car","herokuapp","com"],"query":[{"disabled":true,"key":"username","value":"acushla"},{"disabled":true,"key":"password","value":"qazwsx"},{"disabled":true,"key":"confirm_password","value":"qazwsx"}],"variable":[]}},"response":[],"_postman_id":"5caff1cb-e1a7-4df2-bfec-2940a0247167"},{"name":"Register User","id":"150b7507-c662-40ae-82c3-8ffe5a0ab072","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"user\": {\n  \"username\": \"acushla\",\n  \"password\": \"Password123\"\n }\n}","options":{"raw":{"language":"json"}}},"url":"https://cush-car.herokuapp.com/api/v1/register","description":"<p>User registration endpoint </p>\n","urlObject":{"protocol":"https","path":["api","v1","register"],"host":["cush-car","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"150b7507-c662-40ae-82c3-8ffe5a0ab072"},{"name":"Delete A Car","id":"36f16bdc-0d1b-4912-855c-dbd562002417","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"https://cush-car.herokuapp.com/api/v1/cars/3","urlObject":{"protocol":"https","path":["api","v1","cars","3"],"host":["cush-car","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"36f16bdc-0d1b-4912-855c-dbd562002417"},{"name":"Add Favourite","id":"93348543-06e3-4395-81d6-d9728fb382dc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"car_id\": \"5\"\n}","options":{"raw":{"language":"json"}}},"url":"https://cush-car.herokuapp.com/api/v1/favourites","urlObject":{"protocol":"https","path":["api","v1","favourites"],"host":["cush-car","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"93348543-06e3-4395-81d6-d9728fb382dc"},{"name":"Get All Favourites","id":"9e2e60c2-555c-4416-9821-9b8c86693810","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://cush-car.herokuapp.com/api/v1/favourites","urlObject":{"protocol":"https","path":["api","v1","favourites"],"host":["cush-car","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"9e2e60c2-555c-4416-9821-9b8c86693810"},{"name":"Get A Car","id":"dc5fee38-0ab1-491c-9da6-f8bf9a89549c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://cush-car.herokuapp.com/api/v1/cars/4","description":"<p>Retrieves a car item based on the ID provided</p>\n","urlObject":{"protocol":"https","path":["api","v1","cars","4"],"host":["cush-car","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"dc5fee38-0ab1-491c-9da6-f8bf9a89549c"}]}