{"info":{"_postman_id":"0e3e50b8-f9c4-4dfc-8e25-5d365dfe9ddf","name":"Foreign currency","description":"<html><head></head><body><h1 id=\"introduction\">Introduction</h1>\n<p>POST Documentation on REST-API</p>\n<h1 id=\"overview\">Overview</h1>\n<p>Create Currency and Exchange. Count average of all currencies from the last 7 days until desired date. Count average and variance of desired currency from the last 7 days until current date. Remove Currency. </p>\n<h1 id=\"authentication\">Authentication</h1>\n<p>There's no authentication needed to access the API. </p>\n<h1 id=\"error-codes\">Error Codes</h1>\n<p>It will return status code of 200 if the request is success. </p>\n<h1 id=\"rate-limit\">Rate limit</h1>\n<p>The limit is depending on the framework and the complexity of the program. </p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Introduction","slug":"introduction"},{"content":"Overview","slug":"overview"},{"content":"Authentication","slug":"authentication"},{"content":"Error Codes","slug":"error-codes"},{"content":"Rate limit","slug":"rate-limit"}],"owner":"1319523","collectionId":"0e3e50b8-f9c4-4dfc-8e25-5d365dfe9ddf","publishedId":"S1EMX18J","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2019-04-11T13:49:46.000Z"},"item":[{"name":"GET Default Currency","id":"af682a34-74c4-406c-8c3d-421f05477616","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"url":"localhost:8000/api/currency","description":"<p>Get every currency that available on the database (Django default)</p>\n","urlObject":{"port":"8000","path":["api","currency"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"92f8648e-da24-4dab-ae0c-2a17f01c73da","name":"Default","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":""},"url":""},"code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":""}],"_postman_id":"af682a34-74c4-406c-8c3d-421f05477616"},{"name":"Create Currency","id":"29fdbbaf-7ccf-4263-bf38-9e559652df71","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"currency_from","value":"USD","type":"text"},{"key":"currency_to","value":"GBP","type":"text"}]},"url":"localhost:8000/api/add/","description":"<p>Create new currency into the database.</p>\n","urlObject":{"port":"8000","path":["api","add",""],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"ea72fec1-f868-4151-8b31-b3fd4477ffe2","name":"Default","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"currency_from","value":"USD","type":"text"},{"key":"currency_to","value":"GBP","type":"text"}]},"url":"localhost:8000/api/add/","description":"Create new currency into the database."},"code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":""}],"_postman_id":"29fdbbaf-7ccf-4263-bf38-9e559652df71"},{"name":"Delete Currency","id":"16b1ee99-c747-4f57-bce1-e151582618bc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"currency_from","type":"text","value":"USD"},{"key":"currency_to","type":"text","value":"GBP"}]},"url":"localhost:8000/api/untrack/","description":"<p>Remove currency from the database.</p>\n","urlObject":{"port":"8000","path":["api","untrack",""],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"681c2a07-f6b9-40ef-801f-4d3e285fb0df","name":"Default","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"currency_from","type":"text","value":"USD"},{"key":"currency_to","type":"text","value":"GBP"}]},"url":"localhost:8000/api/untrack/","description":"Remove currency from the database."},"code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":""}],"_postman_id":"16b1ee99-c747-4f57-bce1-e151582618bc"},{"name":"Create Exchange","id":"f6825ae3-8265-45a4-baee-3397d8a10c37","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"currency_from","type":"text","value":"USD"},{"key":"currency_to","type":"text","value":"GBP"},{"key":"exchange_date","value":"2018-07-02","type":"text"},{"key":"exchange_rate","value":"0.756","type":"text"}]},"url":"localhost:8000/api/create/","description":"<p>Create new exchange into the database.</p>\n","urlObject":{"port":"8000","path":["api","create",""],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"11069de7-0ed9-4031-a54d-523e108354aa","name":"Default","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"currency_from","type":"text","value":"USD"},{"key":"currency_to","type":"text","value":"GBP"},{"key":"exchange_date","value":"2018-07-02","type":"text"},{"key":"exchange_rate","value":"0.756","type":"text"}]},"url":"localhost:8000/api/create/","description":"Create new exchange into the database."},"code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":""}],"_postman_id":"f6825ae3-8265-45a4-baee-3397d8a10c37"},{"name":"GET Default Exchange","id":"f9cd4b53-3765-4d48-9941-39c4ba873ecf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"localhost:8000/api/exchange","description":"<p>Get every exchange that available on the database (Django default)</p>\n","urlObject":{"port":"8000","path":["api","exchange"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"c2362ef8-c9ee-4e00-be09-50205dbe18a6","name":"Default","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":""},"url":""},"code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":""}],"_postman_id":"f9cd4b53-3765-4d48-9941-39c4ba873ecf"},{"name":"GET Average Every Currency","id":"ebddb87b-f44e-4896-a428-1e4c43124171","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"exchange_date","type":"text","value":"2019-04-11"},{"key":"currency_to","type":"text","value":"GBP","disabled":true}]},"url":"localhost:8000/api/list/","description":"<p>Get average of every currency that available on database in the last 7 days from desired date.</p>\n","urlObject":{"port":"8000","path":["api","list",""],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"4e218fb4-24ed-4e0a-ad29-6d065832dd84","name":"Default","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"exchange_date","type":"text","value":"2019-04-11"},{"key":"currency_to","type":"text","value":"GBP","disabled":true}]},"url":"localhost:8000/api/list/","description":"Get average of every currency that available on database in the last 7 days from desired date."},"code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":""}],"_postman_id":"ebddb87b-f44e-4896-a428-1e4c43124171"},{"name":"GET Average Every Currency Copy","id":"fceb95ef-a970-42a9-9fc8-214ada6f77b3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"currency_from","type":"text","value":"GBP"},{"key":"currency_to","type":"text","value":"USD"}]},"url":"localhost:8000/api/current/","description":"<p>Get average of every currency that available on database in the last 7 days from desired date.</p>\n","urlObject":{"port":"8000","path":["api","current",""],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"d07f64d0-7f32-44f5-9972-e3091f59170f","name":"Default","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"currency_from","type":"text","value":"GBP"},{"key":"currency_to","type":"text","value":"USD"}]},"url":"localhost:8000/api/current/","description":"Get average of every currency that available on database in the last 7 days from desired date."},"code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":""}],"_postman_id":"fceb95ef-a970-42a9-9fc8-214ada6f77b3"}]}