{"info":{"_postman_id":"a7d7ce7e-1dcf-44f4-a7d4-f29cfe3327a3","name":"SimplyBooks","description":"<html><head></head><body><p>This is the Simply Books API assessment for NSS. It allows you to CRUD for Authors, Books, Genres and Book Genres.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"33936806","collectionId":"a7d7ce7e-1dcf-44f4-a7d4-f29cfe3327a3","publishedId":"2sAYQXpYcJ","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-01-15T01:49:09.000Z"},"item":[{"name":"Books","item":[{"name":"GET all books","id":"d937951f-4c76-4cac-9693-a0b86add1bfb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"localhost:8000/books","description":"<p>This will get all the data for the books endpoint. Will return a 200 if successful</p>\n","urlObject":{"path":["books"],"host":["localhost:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"d937951f-4c76-4cac-9693-a0b86add1bfb"},{"name":"GET Book by ID","id":"c948b296-2c4c-419e-a1af-a046098e25fa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"localhost:8000/books/4","description":"<p>This will GET the data for a single book, changing the Id number will get different books.</p>\n","urlObject":{"path":["books","4"],"host":["localhost:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"c948b296-2c4c-419e-a1af-a046098e25fa"},{"name":"POST book","event":[{"listen":"test","script":{"id":"3662a966-abb7-44ef-934c-29d80e9f064f","exec":[""],"type":"text/javascript","packages":{}}}],"id":"67c811cf-2d68-47d9-b1ac-d8dff6e12d7a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"author_id\": \"1\",\r\n    \"title\": \"book title1\",\r\n    \"image\": \"https://firebasestorage.googleapis.com/v0/b/alm...\",\r\n    \"price\": 25.99,\r\n    \"sale\": \"False\",\r\n    \"description\": \"testdesc\",\r\n    \"uid\": 1\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8000/books","description":"<p>Submits JSON data to the API will return a 201 if successful.</p>\n","urlObject":{"path":["books"],"host":["localhost:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"67c811cf-2d68-47d9-b1ac-d8dff6e12d7a"},{"name":"Update a book","id":"4c24f544-9b9e-45f0-9141-d19cb36f7be7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{   \r\n    \"author_id\": \"1\",\r\n    \"title\": \"Fifty Shades of Chicken\",\r\n    \"image\": \"https://firebasestorage.googleapis.com/v0/b/alm...\",\r\n    \"price\": 25.99,\r\n    \"sale\": true,\r\n    \"description\": \"testdesc\",\r\n    \"uid\": 1\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8000/books/1","description":"<p>This will update the data and overwrite it with different data as PUT request by including the id number in the endpoint</p>\n<p>Will return a 200 if successful</p>\n","urlObject":{"path":["books","1"],"host":["localhost:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"4c24f544-9b9e-45f0-9141-d19cb36f7be7"},{"name":"Delete a book","id":"a5987cc4-909b-4ae9-bbda-bf02d42b18f9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"localhost:8000/books/1","description":"<p>The DELETE will delete data previousl created identified via the id. Will return a 204 no content when successful.</p>\n","urlObject":{"path":["books","1"],"host":["localhost:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"a5987cc4-909b-4ae9-bbda-bf02d42b18f9"}],"id":"cd1f20de-b4ce-487c-8fe4-42ebf2aff414","description":"<p>Endpoints for books</p>\n","_postman_id":"cd1f20de-b4ce-487c-8fe4-42ebf2aff414"},{"name":"Authors","item":[{"name":"GET all authors","id":"8f15c769-3bbc-40f6-ad56-99f50bbe12d3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:8000/authors","description":"<p>This will get all the data for the Authors endpoint. Will return a 200 if successful</p>\n","urlObject":{"path":["authors"],"host":["localhost:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"8f15c769-3bbc-40f6-ad56-99f50bbe12d3"},{"name":"GET author by ID","id":"e36713de-b741-4b38-8e83-26b7ab0cea58","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:8000/authors/1","description":"<p>This will GET the data for a single author, changing the Id number will get different authors.</p>\n","urlObject":{"path":["authors","1"],"host":["localhost:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"e36713de-b741-4b38-8e83-26b7ab0cea58"},{"name":"POST author","id":"0a2cbfed-3076-4c9c-af0c-467d23a65772","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"email@email.com\",\r\n    \"first_name\": \"dustin\",\r\n    \"last_name\": \"lawson\",\r\n    \"image\": \"https://firebasestorage.googleapis.com/v0/b/alm...\",\r\n    \"favorite\": false,\r\n    \"uid\": 1\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8000/authors","description":"<p>Submits JSON data to the API will return a 201 if successful.</p>\n","urlObject":{"path":["authors"],"host":["localhost:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"0a2cbfed-3076-4c9c-af0c-467d23a65772"},{"name":"Update an author","id":"91137775-06e5-429e-9280-85c2da81f887","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"email@email.com\",\r\n    \"first_name\": \"dustin\",\r\n    \"last_name\": \"lawson\",\r\n    \"image\": \"https://firebasestorage.googleapis.com/v0/b/alm...\",\r\n    \"favorite\": false,\r\n    \"uid\": 1\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8000/authors/1","description":"<p>This will update the data and overwrite it with different data as PUT request by including the id number in the endpoint</p>\n<p>Will return a 200 if successful</p>\n","urlObject":{"path":["authors","1"],"host":["localhost:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"91137775-06e5-429e-9280-85c2da81f887"},{"name":"Delete an author","id":"7ddb50ba-3c40-46d1-9ae0-b9bf295e7c44","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"localhost:8000/authors/1","description":"<p>The DELETE will delete data previousl created identified via the id. Will return a 204 no content when successful.</p>\n","urlObject":{"path":["authors","1"],"host":["localhost:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"7ddb50ba-3c40-46d1-9ae0-b9bf295e7c44"}],"id":"6b051e1f-0cce-4591-86b3-f34d47a0b9a8","description":"<p>Authors endpoint requests</p>\n","_postman_id":"6b051e1f-0cce-4591-86b3-f34d47a0b9a8"},{"name":"Genres","item":[{"name":"GET genres","id":"51c3f39b-5642-49f0-940e-502a2313436e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:8000/genres","description":"<p>ll the data for the Genres endpoint. Will return a 200 if successful</p>\n","urlObject":{"path":["genres"],"host":["localhost:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"51c3f39b-5642-49f0-940e-502a2313436e"},{"name":"POST genre","id":"0b398c3b-44c2-4623-9717-c9e7ad01f3a5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"description\": \"333\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8000/genres","description":"<p>Submits JSON data to the API will return a 201 if successful.</p>\n","urlObject":{"path":["genres"],"host":["localhost:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"0b398c3b-44c2-4623-9717-c9e7ad01f3a5"},{"name":"Update Genre","id":"d3523985-5a55-43fe-a71e-b2686a4d55b7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"url":"localhost:8000/genres/1","description":"<p>This will update the data and overwrite it with different data as PUT request by including the id number in the endpoint</p>\n<p>Will return a 200 if successful</p>\n","urlObject":{"path":["genres","1"],"host":["localhost:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"d3523985-5a55-43fe-a71e-b2686a4d55b7"},{"name":"Genres","id":"7de115dc-895b-420e-ae7b-348cb389cb41","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"localhost:8000/genres/1","description":"<p>The DELETE will delete data previousl created identified via the id. Will return a 204 no content when successful.</p>\n","urlObject":{"path":["genres","1"],"host":["localhost:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"7de115dc-895b-420e-ae7b-348cb389cb41"}],"id":"d3a91973-e0eb-4143-a66e-aed8858978e8","_postman_id":"d3a91973-e0eb-4143-a66e-aed8858978e8","description":""},{"name":"Book Genres","item":[{"name":"GET book genres","id":"5a9e882c-161f-491d-86c3-24ff4cbaa686","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"localhost:8000/bookGenres","description":"<p>ll the data for the Book genres endpoint. Will return a 200 if successful</p>\n","urlObject":{"path":["bookGenres"],"host":["localhost:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"5a9e882c-161f-491d-86c3-24ff4cbaa686"},{"name":"POST book genres","id":"ed128480-f03a-43b6-a88a-0dc391154983","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n        \"book_id\": 6,\r\n        \"genre_id\": 3\r\n    }","options":{"raw":{"language":"json"}}},"url":"localhost:8000/bookGenres","description":"<p>Submits JSON data to the API will return a 201 if successful.</p>\n","urlObject":{"path":["bookGenres"],"host":["localhost:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"ed128480-f03a-43b6-a88a-0dc391154983"},{"name":"Update book genres","id":"d21ebdc9-2bff-4c90-b96f-f71bad6cf71a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n        \"book_id\": 9,\r\n        \"genre_id\": 2\r\n    }","options":{"raw":{"language":"json"}}},"url":"localhost:8000/bookGenres/3","description":"<p>This will update the data and overwrite it with different data as PUT request by including the id number in the endpoint</p>\n<p>Will return a 200 if successful</p>\n","urlObject":{"path":["bookGenres","3"],"host":["localhost:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"d21ebdc9-2bff-4c90-b96f-f71bad6cf71a"},{"name":"Delete book genres","id":"2c641619-e173-4617-a6f0-cefb63672570","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"localhost:8000/bookGenres/3","description":"<p>The DELETE will delete data previousl created identified via the id. Will return a 204 no content when successful.</p>\n","urlObject":{"path":["bookGenres","3"],"host":["localhost:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"2c641619-e173-4617-a6f0-cefb63672570"}],"id":"08cbce2b-5531-4ec6-87a4-e0e8e095856e","_postman_id":"08cbce2b-5531-4ec6-87a4-e0e8e095856e","description":""}],"event":[{"listen":"prerequest","script":{"id":"5afe6e8e-f872-4ef6-96b0-0a1aa15cbc04","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"1308b754-649d-47d5-a455-7e52bed1f647","type":"text/javascript","packages":{},"exec":[""]}}],"variable":[{"key":"dbUrl","value":"localhost:8000","type":"default"}]}