{"info":{"_postman_id":"3ed53dbe-3693-4aad-83f3-c0056856ed18","name":"MIFX Test Backend","description":"<html><head></head><body><h3 id=\"introduction\">Introduction</h3>\n<p>This is an API Documentation for Test Backend at MIFX. This API use <em><strong>api_token</strong></em> for authentication.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"11570376","collectionId":"3ed53dbe-3693-4aad-83f3-c0056856ed18","publishedId":"UVyysCNL","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-04-10T23:08:12.000Z"},"item":[{"name":"Book","item":[{"name":"Get Books","id":"1167db9e-b262-4df6-8ccc-3aca95c1bc0e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/books?page=1&sortColumn=avg_review&sortDirection=DESC&title=Hello World&authors=1,2","description":"<p>Get List Available book</p>\n","urlObject":{"path":["books"],"host":["{{url}}"],"query":[{"description":{"content":"<p>Page number you want to display</p>\n","type":"text/plain"},"key":"page","value":"1"},{"description":{"content":"<p>One of title, avg_review or published_year</p>\n","type":"text/plain"},"key":"sortColumn","value":"avg_review"},{"description":{"content":"<p>One of ASC or DESC</p>\n","type":"text/plain"},"key":"sortDirection","value":"DESC"},{"description":{"content":"<p>Search by book title</p>\n","type":"text/plain"},"key":"title","value":"Hello World"},{"description":{"content":"<p>Search by author’s ID (comma-separated)</p>\n","type":"text/plain"},"key":"authors","value":"1,2"}],"variable":[]}},"response":[],"_postman_id":"1167db9e-b262-4df6-8ccc-3aca95c1bc0e"},{"name":"Create Book","id":"787ffa7a-75f6-4046-9704-2999c2595ee9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"isbn","value":"9788328302342","type":"text","description":"<p>ISBN number should 13 digits (required)</p>\n"},{"key":"title","value":"Hello World","type":"text","description":"<p>Book Title (require)</p>\n"},{"key":"authors[]","value":"1","description":"<p>Author ID array format (required)</p>\n","type":"text"},{"key":"description","value":"Hello Wolrd","type":"text","description":"<p>Book Description (required)</p>\n"},{"key":"published_year","value":"1998","type":"text","description":"<p>Book Published year must be between 1900 and 2020 (required)</p>\n"}]},"url":"{{url}}/books?api_token={{token}}","description":"<p>In this endpoint you can easily add new book. Don't forget to put your <em><strong>api_token</strong></em> in <strong>Query Parameter</strong></p>\n","urlObject":{"path":["books"],"host":["{{url}}"],"query":[{"key":"api_token","value":"{{token}}"}],"variable":[]}},"response":[],"_postman_id":"787ffa7a-75f6-4046-9704-2999c2595ee9"}],"id":"c494edac-bcc3-42d9-a6dc-395550bd6320","_postman_id":"c494edac-bcc3-42d9-a6dc-395550bd6320","description":""},{"name":"Review","item":[{"name":"Create Review","id":"bd2779e5-e921-4235-bedb-6d89fc2c60c2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"review","value":"3","type":"text","description":"<p>Book review between 1 and 10 (required)</p>\n"},{"key":"comment","value":"Look good to me!","type":"text","description":"<p>Book comment (required)</p>\n"}]},"url":"{{url}}/books/:bookId/reviews?api_token={{token}}","description":"<p>Endpoint for create new book review. API token must be provide on <strong>Query Parameter</strong></p>\n","urlObject":{"path":["books",":bookId","reviews"],"host":["{{url}}"],"query":[{"key":"api_token","value":"{{token}}"}],"variable":[{"description":{"content":"<p>ID of the book you want to review</p>\n","type":"text/plain"},"type":"any","value":"1","key":"bookId"}]}},"response":[],"_postman_id":"bd2779e5-e921-4235-bedb-6d89fc2c60c2"},{"name":"Delete Review","id":"2ecc18bb-e300-47a7-a37d-bf8377e2a87a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":"{{url}}/books/:bookId/reviews/:bookReviewId?api_token={{token}}","description":"<p>You can delete your created review use this Endpoint with API Token</p>\n","urlObject":{"path":["books",":bookId","reviews",":bookReviewId"],"host":["{{url}}"],"query":[{"key":"api_token","value":"{{token}}"}],"variable":[{"description":{"content":"<p>ID of the book you want to delete review</p>\n","type":"text/plain"},"type":"any","value":"1","key":"bookId"},{"description":{"content":"<p>ID of the review you want to delete</p>\n","type":"text/plain"},"type":"any","value":"1","key":"bookReviewId"}]}},"response":[],"_postman_id":"2ecc18bb-e300-47a7-a37d-bf8377e2a87a"}],"id":"081d61b2-4b6e-4382-93e4-666edfff311f","_postman_id":"081d61b2-4b6e-4382-93e4-666edfff311f","description":""}]}