{"info":{"_postman_id":"d142aa86-cc3f-4db2-9ac0-2b867556e2a4","name":"Top Parser","description":"<html><head></head><body><p>Top parser project for Middle Python Dev @ CASHOFF</p>\n<p>Here you can find all APIs for the project with tests.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"2849238","collectionId":"d142aa86-cc3f-4db2-9ac0-2b867556e2a4","publishedId":"TVKEVGMV","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-09-22T19:45:27.000Z"},"item":[{"name":"TopNews","item":[{"name":"User Create","event":[{"listen":"test","script":{"id":"d33c9c1d-30ba-4aba-9e47-e027cade4782","exec":["pm.test(\"Status code is 201\", function () {\r","    pm.response.to.have.status(201);\r","});\r","\r","\r","pm.test(\"Response has a JSON body\", function () {\r","    pm.response.to.be.json;\r","});\r","\r","pm.test(\"Response has a username property\", function () {\r","    var jsonData = pm.response.json();\r","    pm.expect(jsonData.username).to.be.a('string');\r","});"],"type":"text/javascript"}}],"id":"8eae26c9-9bcb-4afe-b0fa-c2fc9706365d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"username","value":"test16","type":"text"},{"key":"password","value":"test","type":"text"}]},"url":"http://127.0.0.1:8000/api/user/create/","urlObject":{"protocol":"http","port":"8000","path":["api","user","create",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"8eae26c9-9bcb-4afe-b0fa-c2fc9706365d"},{"name":"User Update","event":[{"listen":"test","script":{"id":"f8c6125f-67f6-479a-96fa-290cff40a4f6","exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","\r","pm.test(\"Response has a JSON body\", function () {\r","    pm.response.to.be.json;\r","});\r","\r","pm.test(\"Response has a username property\", function () {\r","    var jsonData = pm.response.json();\r","    pm.expect(jsonData.username).to.be.a('string');\r","});"],"type":"text/javascript"}}],"id":"cfad9e72-be8b-4812-a44f-c15c3ff45803","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","value":"Token 4d22ec873110df2bac4dde9fb11ecebfd675f982","type":"text"}],"body":{"mode":"raw","raw":"{\"email\": \"test123123@mail.net\"}"},"url":"http://127.0.0.1:8000/api/user/update/","urlObject":{"protocol":"http","port":"8000","path":["api","user","update",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"cfad9e72-be8b-4812-a44f-c15c3ff45803"},{"name":"User Get Token","event":[{"listen":"test","script":{"id":"799d8e2f-ed35-41e3-827e-86147ce368e4","exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","\r","pm.test(\"Response has a JSON body\", function () {\r","    pm.response.to.be.json;\r","});\r","\r","pm.test(\"Response has a token property\", function () {\r","    var jsonData = pm.response.json();\r","    pm.expect(jsonData.token).to.be.a('string');\r","});"],"type":"text/javascript"}}],"id":"246d36f4-adaa-4081-aaee-81396c92e55f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"username","value":"test","type":"text"},{"key":"password","value":"test","type":"text"}]},"url":"http://127.0.0.1:8000/api/user/get-token/","urlObject":{"protocol":"http","port":"8000","path":["api","user","get-token",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"246d36f4-adaa-4081-aaee-81396c92e55f"},{"name":"Source List","event":[{"listen":"test","script":{"id":"5dffa521-d592-4473-aa12-a0a55f2fea40","exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","\r","pm.test(\"Response has a JSON body\", function () {\r","    pm.response.to.be.json;\r","});\r","\r","pm.test(\"Response has a feed_url and label properties\", function () {\r","    var jsonData = pm.response.json();\r","    pm.expect(jsonData[0].feed_url).to.be.a('string');\r","    pm.expect(jsonData[0].label).to.be.a('string');\r","});"],"type":"text/javascript"}}],"id":"a98f46db-1571-4a5f-9db5-5b1eaea6a0c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"http://127.0.0.1:8000/api/articles/sources/","urlObject":{"protocol":"http","port":"8000","path":["api","articles","sources",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"a98f46db-1571-4a5f-9db5-5b1eaea6a0c6"},{"name":"Source View Single","event":[{"listen":"test","script":{"id":"c66d9977-d7ef-4b78-ba2b-8c2feaaec833","exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","\r","pm.test(\"Response has a JSON body\", function () {\r","    pm.response.to.be.json;\r","});\r","\r","pm.test(\"Response has a feed_url and label properties\", function () {\r","    var jsonData = pm.response.json();\r","    pm.expect(jsonData.feed_url).to.be.a('string');\r","    pm.expect(jsonData.label).to.be.a('string');\r","});"],"type":"text/javascript"}}],"id":"4ba44dd8-04f8-43d0-8758-0457dde2cc37","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","value":"Token 672d5dc4825450ece61a7dce728dfaa51fc80022","type":"text"}],"body":{"mode":"raw","raw":""},"url":"http://127.0.0.1:8000/api/articles/sources/1/","urlObject":{"protocol":"http","port":"8000","path":["api","articles","sources","1",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"4ba44dd8-04f8-43d0-8758-0457dde2cc37"},{"name":"Source Create","event":[{"listen":"test","script":{"id":"f6069f4f-46a8-44fa-abbb-aa1c625fef7b","exec":["pm.test(\"Status code is 201\", function () {\r","    pm.response.to.have.status(201);\r","});\r","\r","\r","pm.test(\"Response has a JSON body\", function () {\r","    pm.response.to.be.json;\r","});\r","\r","pm.test(\"Response has a feed_url and label properties\", function () {\r","    var jsonData = pm.response.json();\r","    pm.expect(jsonData.feed_url).to.be.a('string');\r","    pm.expect(jsonData.label).to.be.a('string');\r","});"],"type":"text/javascript"}}],"id":"cafe7895-a088-438d-8c6b-5f69f36f0990","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","value":"Token 672d5dc4825450ece61a7dce728dfaa51fc80022","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"New Source 100","type":"text"},{"key":"feed_url","value":"https://site.com","type":"text"},{"key":"label","value":"NS100","type":"text"}]},"url":"http://127.0.0.1:8000/api/articles/sources/create/","urlObject":{"protocol":"http","port":"8000","path":["api","articles","sources","create",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"cafe7895-a088-438d-8c6b-5f69f36f0990"},{"name":"Source Edit","event":[{"listen":"test","script":{"id":"4cafb1c7-d670-4dad-9be9-e02e9852d843","exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","\r","pm.test(\"Response has a JSON body\", function () {\r","    pm.response.to.be.json;\r","});\r","\r","pm.test(\"Response has a feed_url and label properties\", function () {\r","    var jsonData = pm.response.json();\r","    pm.expect(jsonData.feed_url).to.be.a('string');\r","    pm.expect(jsonData.label).to.be.a('string');\r","});"],"type":"text/javascript"}}],"id":"14e71836-e6e4-4fe1-b8e3-8162b0d05578","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","value":"Token 672d5dc4825450ece61a7dce728dfaa51fc80022","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"New Source Name!","type":"text"}]},"url":"http://127.0.0.1:8000/api/articles/sources/21/","urlObject":{"protocol":"http","port":"8000","path":["api","articles","sources","21",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"14e71836-e6e4-4fe1-b8e3-8162b0d05578"},{"name":"Source Delete","event":[{"listen":"test","script":{"id":"5ce411dc-83cd-4ece-9fbf-e413f451b582","exec":["pm.test(\"Status code is 204\", function () {\r","    pm.response.to.have.status(204);\r","});"],"type":"text/javascript"}}],"id":"0e646322-1f96-4955-98a1-ef915dd6831b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","value":"Token 672d5dc4825450ece61a7dce728dfaa51fc80022","type":"text"}],"body":{"mode":"raw","raw":""},"url":"http://127.0.0.1:8000/api/articles/sources/22/","urlObject":{"protocol":"http","port":"8000","path":["api","articles","sources","22",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"0e646322-1f96-4955-98a1-ef915dd6831b"},{"name":"User Sources List","event":[{"listen":"test","script":{"id":"5474e7ed-b77c-43c3-8b53-75d66f859570","exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","\r","pm.test(\"Response has a JSON body\", function () {\r","    pm.response.to.be.json;\r","});"],"type":"text/javascript"}}],"id":"1e2a4769-0477-4f3a-be7a-5bab827cbfa3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","value":"Token d702bc0c5a6987ff6db512d032b6ee2474ccf069","type":"text"}],"body":{"mode":"raw","raw":""},"url":"http://127.0.0.1:8000/api/user/sources/","urlObject":{"protocol":"http","port":"8000","path":["api","user","sources",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"1e2a4769-0477-4f3a-be7a-5bab827cbfa3"},{"name":"User Source Create","event":[{"listen":"test","script":{"id":"12a7ea11-9f4e-46f2-881b-41e3ddf86016","exec":["pm.test(\"Status code is 201\", function () {\r","    pm.response.to.have.status(201);\r","});\r","\r","\r","pm.test(\"Response has a JSON body\", function () {\r","    pm.response.to.be.json;\r","});\r","\r","pm.test(\"Response has a login property\", function () {\r","    var jsonData = pm.response.json();\r","    pm.expect(jsonData.login).to.be.a('string');\r","});"],"type":"text/javascript"}}],"id":"75b2ef15-7713-4a7f-83cd-06d1afab5127","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Token 4d22ec873110df2bac4dde9fb11ecebfd675f982"}],"body":{"mode":"formdata","formdata":[{"key":"source_id","value":"1","description":"<p>ID of source (habr or vc or whatever)</p>\n","type":"text"},{"key":"login","value":"johndoe@gmail.com","type":"text"},{"key":"password","value":"test","type":"text"}]},"url":"http://127.0.0.1:8000/api/user/sources/","urlObject":{"protocol":"http","port":"8000","path":["api","user","sources",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"75b2ef15-7713-4a7f-83cd-06d1afab5127"},{"name":"User Source Update","event":[{"listen":"test","script":{"id":"786b41d0-e016-4626-999b-7b249426dcfc","exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","\r","pm.test(\"Response has a JSON body\", function () {\r","    pm.response.to.be.json;\r","});\r","\r","pm.test(\"Response has a login property\", function () {\r","    var jsonData = pm.response.json();\r","    pm.expect(jsonData.login).to.be.a('string');\r","});"],"type":"text/javascript"}}],"id":"abbdcd13-617d-4f7b-9f2f-bb8123fe4d65","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"warning":"This is a duplicate header and will be overridden by the Content-Type header generated by Postman.","key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Token 4d22ec873110df2bac4dde9fb11ecebfd675f982"}],"body":{"mode":"formdata","formdata":[{"key":"source_id","value":"1","type":"text"},{"key":"login","value":"new_login","type":"text"},{"key":"password","value":"new_password","type":"text"}]},"url":"http://127.0.0.1:8000/api/user/sources/21/","urlObject":{"protocol":"http","port":"8000","path":["api","user","sources","21",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"abbdcd13-617d-4f7b-9f2f-bb8123fe4d65"},{"name":"Articles List","event":[{"listen":"test","script":{"id":"03bed1df-58bc-47ef-a329-9bba5406b081","exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","\r","pm.test(\"Response has a JSON body\", function () {\r","    pm.response.to.be.json;\r","});\r","\r","pm.test(\"Response has a header and short description properties\", function () {\r","    var jsonData = pm.response.json();\r","    pm.expect(jsonData.results[0].header).to.be.a('string');\r","    pm.expect(jsonData.results[0].short_description).to.be.a('string');\r","});"],"type":"text/javascript"}}],"id":"a97a5bbc-cf2a-45fa-9989-48672d7a2190","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"description":"<p>user test token</p>\n","key":"Authorization","type":"text","value":"Token d702bc0c5a6987ff6db512d032b6ee2474ccf069"}],"body":{"mode":"raw","raw":""},"url":"http://127.0.0.1:8000/api/articles/","urlObject":{"protocol":"http","port":"8000","path":["api","articles",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"a97a5bbc-cf2a-45fa-9989-48672d7a2190"},{"name":"Articles Detailed","event":[{"listen":"test","script":{"id":"e4f739d9-fb3c-4fbb-b0ca-f153e3909883","exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","\r","pm.test(\"Response has a JSON body\", function () {\r","    pm.response.to.be.json;\r","});\r","\r","pm.test(\"Response has a header, url and text description properties\", function () {\r","    var jsonData = pm.response.json();\r","    pm.expect(jsonData.header).to.be.a('string');\r","    pm.expect(jsonData.text).to.be.a('string');\r","    pm.expect(jsonData.url).to.be.a('string');\r","});"],"type":"text/javascript"}}],"id":"27da3f1b-c880-4df4-b3c0-5e767e46458e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"description":"<p>user token</p>\n","key":"Authorization","type":"text","value":"Token d702bc0c5a6987ff6db512d032b6ee2474ccf069"}],"body":{"mode":"raw","raw":""},"url":"http://127.0.0.1:8000/api/articles/1831/","urlObject":{"protocol":"http","port":"8000","path":["api","articles","1831",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"27da3f1b-c880-4df4-b3c0-5e767e46458e"}],"id":"599c4117-651d-4d5f-ac25-63c6ae59051b","_postman_id":"599c4117-651d-4d5f-ac25-63c6ae59051b","description":""}],"event":[{"listen":"prerequest","script":{"id":"68d4fad9-a25a-47f0-8c51-54edd58dfbf6","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"751727b1-55c8-47f2-bc07-92d651e0676d","type":"text/javascript","exec":[""]}}]}