{"info":{"_postman_id":"21b8e0e9-16d0-44a2-9833-5a0f9e09baf5","name":"Flask Project API","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"11985382","collectionId":"21b8e0e9-16d0-44a2-9833-5a0f9e09baf5","publishedId":"T1LFmVRw","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-08-04T19:47:02.000Z"},"item":[{"name":"Get Last Post","id":"b976b300-e46f-430c-b6c0-1f1df5ea694b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://flask-api-ml-model.herokuapp.com/api/posts/last?token=TOKEN_KEY","description":"<p>Allows registered users with a valid API key to get their last published post.</p>\n","urlObject":{"protocol":"https","path":["api","posts","last"],"host":["flask-api-ml-model","herokuapp","com"],"query":[{"description":{"content":"<p>Registered users can obtain <code>TOKEN_KEY</code> at <a href=\"https://flask-api-ml-model.herokuapp.com/api/tokens\">https://flask-api-ml-model.herokuapp.com/api/tokens</a></p>\n","type":"text/plain"},"key":"token","value":"TOKEN_KEY"}],"variable":[]}},"response":[],"_postman_id":"b976b300-e46f-430c-b6c0-1f1df5ea694b"},{"name":"Publish a Post","id":"105b33ed-f7d0-4122-b5d2-cbff4ff635e5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://flask-api-ml-model.herokuapp.com/api/posts/new?token=TOKEN_KEY&title=POST_TITLE&content=POST_CONTENT","description":"<p>Allows registered users with a valid API token to publish a post.</p>\n","urlObject":{"protocol":"https","path":["api","posts","new"],"host":["flask-api-ml-model","herokuapp","com"],"query":[{"description":{"content":"<p>Registered users can obtain <code>TOKEN_KEY</code> at <a href=\"https://flask-api-ml-model.herokuapp.com/api/tokens\">https://flask-api-ml-model.herokuapp.com/api/tokens</a></p>\n","type":"text/plain"},"key":"token","value":"TOKEN_KEY"},{"description":{"content":"<p>post's title</p>\n","type":"text/plain"},"key":"title","value":"POST_TITLE"},{"description":{"content":"<p>post's content</p>\n","type":"text/plain"},"key":"content","value":"POST_CONTENT"}],"variable":[]}},"response":[],"_postman_id":"105b33ed-f7d0-4122-b5d2-cbff4ff635e5"},{"name":"Delete Last Post","id":"8fe04f62-6788-4647-80a3-317d9393bbad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://flask-api-ml-model.herokuapp.com/api/posts/delete?token=TOKEN_KEY","description":"<p>Allows registered users with a valid API token to delete their last post.</p>\n","urlObject":{"protocol":"https","path":["api","posts","delete"],"host":["flask-api-ml-model","herokuapp","com"],"query":[{"description":{"content":"<p>Registered users can obtain <code>TOKEN_KEY</code> at <a href=\"https://flask-api-ml-model.herokuapp.com/api/tokens\">https://flask-api-ml-model.herokuapp.com/api/tokens</a></p>\n","type":"text/plain"},"key":"token","value":"TOKEN_KEY"}],"variable":[]}},"response":[],"_postman_id":"8fe04f62-6788-4647-80a3-317d9393bbad"},{"name":"Classify Emotion in an Image","id":"fbc7dd22-ec95-42f3-81e9-91a01c7d85d7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"description":"<p>Key is <code>image</code> of type <code>file</code>. Value is an image that you want to classify.</p>\n","key":"image","type":"file","src":"happy.jpeg"}]},"url":"https://flask-api-ml-model.herokuapp.com/api/emoclassifier?token=TOKEN_KEY","description":"<p>Allows registered users with a valid API token to classify emotion in an image.</p>\n","urlObject":{"protocol":"https","path":["api","emoclassifier"],"host":["flask-api-ml-model","herokuapp","com"],"query":[{"description":{"content":"<p>Registered users can obtain <code>TOKEN_KEY</code> at <a href=\"https://flask-api-ml-model.herokuapp.com/api/tokens\">https://flask-api-ml-model.herokuapp.com/api/tokens</a></p>\n","type":"text/plain"},"key":"token","value":"TOKEN_KEY"}],"variable":[]}},"response":[],"_postman_id":"fbc7dd22-ec95-42f3-81e9-91a01c7d85d7"},{"name":"Solve Sudoku","id":"6aadfaff-3fcb-4fff-a224-ca3325254151","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://flask-api-ml-model.herokuapp.com/api/solve_sudoku?token=TOKEN_KEY&position=SUDOKU_POSITION","description":"<p>Allows registered users with a valid API key to solve a sudoku puzzle.</p>\n","urlObject":{"protocol":"https","path":["api","solve_sudoku"],"host":["flask-api-ml-model","herokuapp","com"],"query":[{"key":"token","value":"TOKEN_KEY"},{"description":{"content":"<p><code>SUDOKU_POSITION</code>  must be strictly of size 81. Denote an empty cell as <code>0</code> or <code>.</code>, everything else as {1,2,...,9} </p>\n","type":"text/plain"},"key":"position","value":"SUDOKU_POSITION"}],"variable":[]}},"response":[],"_postman_id":"6aadfaff-3fcb-4fff-a224-ca3325254151"}]}