Skip to content

Commit

Permalink
Merge pull request #21 from freedomofpress/forproxy
Browse files Browse the repository at this point in the history
Adds APIProxy class to use securedrop-proxy
  • Loading branch information
redshiftzero authored Oct 16, 2018
2 parents 156bea4 + 6170a33 commit 71e1681
Show file tree
Hide file tree
Showing 31 changed files with 767 additions and 293 deletions.
1 change: 1 addition & 0 deletions data/setUp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"{\"body\": \"{\\\"passphrase\\\": \\\"correct horse battery staple profanity oil chewy\\\", \\\"username\\\": \\\"journalist\\\"}\", \"method\": \"POST\", \"path_query\": \"api/v1/token\"}+1": "{\"body\": \"{\\n \\\"expiration\\\": \\\"2018-10-15T18:50:30.596706Z\\\", \\n \\\"token\\\": \\\"eyJhbGciOiJIUzI1NiIsImV4cCI6MTUzOTYyOTQzMCwiaWF0IjoxNTM5NjAwNjMwfQ.eyJpZCI6MX0.DxMon85hJuDUFMJdeWdICVQ7slqQHsIx2aNC2F88Ljk\\\"\\n}\\n\", \"headers\": {\"Server\": \"Werkzeug/0.14.1 Python/2.7.6\", \"Content-Type\": \"application/json\", \"Content-Length\": \"188\", \"Set-Cookie\": \"js=eyJleHBpcmVzIjp7IiBkIjoiTW9uLCAxNSBPY3QgMjAxOCAxMjo1MDozMCBHTVQifX0.DqYCdg.JSb0AxCyX5KKX8QeFaHOM32pJvM; HttpOnly; Path=/\", \"Vary\": \"Cookie\", \"Date\": \"Mon, 15 Oct 2018 10:50:30 GMT\"}, \"version\": \"0.1.1\", \"status\": 200}"}
2 changes: 1 addition & 1 deletion data/test-get-wrong-submissions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ interactions:
Content-Type: [application/json]
User-Agent: [python-requests/2.19.1]
method: GET
uri: http://localhost:8081/api/v1/sources/rofl-missing/submissions/2334
uri: http://localhost:8081/api/v1/sources/rofl-missing/submissions
response:
body: {string: "{\n \"error\": \"Not Found\", \n \"message\": \"The requested\
\ URL was not found on the server. If you entered the URL manually please\
Expand Down
1 change: 1 addition & 0 deletions data/test_delete_reply.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"{\"body\": \"{\\\"passphrase\\\": \\\"correct horse battery staple profanity oil chewy\\\", \\\"username\\\": \\\"journalist\\\"}\", \"method\": \"POST\", \"path_query\": \"api/v1/token\"}+1": "{\"headers\": {\"Content-Type\": \"application/json\", \"Server\": \"Werkzeug/0.14.1 Python/2.7.6\", \"Content-Length\": \"73\", \"Vary\": \"Cookie\", \"Date\": \"Mon, 15 Oct 2018 10:39:04 GMT\", \"Set-Cookie\": \"js=eyJleHBpcmVzIjp7IiBkIjoiTW9uLCAxNSBPY3QgMjAxOCAxMjozOTowNCBHTVQifX0.DqX_yA.EV_fWPcFtNbKcms0sYAzPKtvPyM; HttpOnly; Path=/\"}, \"version\": \"0.1.1\", \"status\": 403, \"body\": \"{\\n \\\"error\\\": \\\"Forbidden\\\", \\n \\\"message\\\": \\\"Token authentication failed.\\\"\\n}\\n\"}", "{\"headers\": \"{\\\"Accept\\\": \\\"application/json\\\", \\\"Content-Type\\\": \\\"application/json\\\"}\", \"method\": \"GET\", \"path_query\": \"api/v1/replies\"}+1": "{\"body\": \"{\\n \\\"replies\\\": [\\n {\\n \\\"filename\\\": \\\"3-unmanly_salmonellosis-reply.gpg\\\", \\n \\\"is_deleted_by_source\\\": false, \\n \\\"journalist_username\\\": \\\"journalist\\\", \\n \\\"journalist_uuid\\\": \\\"eb4a8050-7eb7-496a-ae75-1ef66db677bc\\\", \\n \\\"reply_url\\\": \\\"/api/v1/sources/b2d7bda5-0f50-4baf-ba3b-591cf65c6a3a/replies/e76b4ac1-01a3-497c-bc0f-8ea5bbd846f1\\\", \\n \\\"size\\\": 1116, \\n \\\"source_url\\\": \\\"/api/v1/sources/b2d7bda5-0f50-4baf-ba3b-591cf65c6a3a\\\", \\n \\\"uuid\\\": \\\"e76b4ac1-01a3-497c-bc0f-8ea5bbd846f1\\\"\\n }, \\n {\\n \\\"filename\\\": \\\"4-unmanly_salmonellosis-reply.gpg\\\", \\n \\\"is_deleted_by_source\\\": false, \\n \\\"journalist_username\\\": \\\"journalist\\\", \\n \\\"journalist_uuid\\\": \\\"eb4a8050-7eb7-496a-ae75-1ef66db677bc\\\", \\n \\\"reply_url\\\": \\\"/api/v1/sources/b2d7bda5-0f50-4baf-ba3b-591cf65c6a3a/replies/98393589-7442-45b9-83b6-3cb45f3f7b2a\\\", \\n \\\"size\\\": 1116, \\n \\\"source_url\\\": \\\"/api/v1/sources/b2d7bda5-0f50-4baf-ba3b-591cf65c6a3a\\\", \\n \\\"uuid\\\": \\\"98393589-7442-45b9-83b6-3cb45f3f7b2a\\\"\\n }, \\n {\\n \\\"filename\\\": \\\"3-bulimic_redress-reply.gpg\\\", \\n \\\"is_deleted_by_source\\\": false, \\n \\\"journalist_username\\\": \\\"journalist\\\", \\n \\\"journalist_uuid\\\": \\\"eb4a8050-7eb7-496a-ae75-1ef66db677bc\\\", \\n \\\"reply_url\\\": \\\"/api/v1/sources/103be2d8-7ab8-4188-94ef-4f98e9c398fe/replies/71327942-53dd-4d03-917c-645e1f0c7ed7\\\", \\n \\\"size\\\": 1116, \\n \\\"source_url\\\": \\\"/api/v1/sources/103be2d8-7ab8-4188-94ef-4f98e9c398fe\\\", \\n \\\"uuid\\\": \\\"71327942-53dd-4d03-917c-645e1f0c7ed7\\\"\\n }, \\n {\\n \\\"filename\\\": \\\"4-bulimic_redress-reply.gpg\\\", \\n \\\"is_deleted_by_source\\\": false, \\n \\\"journalist_username\\\": \\\"journalist\\\", \\n \\\"journalist_uuid\\\": \\\"eb4a8050-7eb7-496a-ae75-1ef66db677bc\\\", \\n \\\"reply_url\\\": \\\"/api/v1/sources/103be2d8-7ab8-4188-94ef-4f98e9c398fe/replies/e2ea71b4-7403-4592-a96f-679207f17b14\\\", \\n \\\"size\\\": 1116, \\n \\\"source_url\\\": \\\"/api/v1/sources/103be2d8-7ab8-4188-94ef-4f98e9c398fe\\\", \\n \\\"uuid\\\": \\\"e2ea71b4-7403-4592-a96f-679207f17b14\\\"\\n }\\n ]\\n}\\n\", \"status\": 200, \"version\": \"0.1.1\", \"headers\": {\"Set-Cookie\": \"js=eyJleHBpcmVzIjp7IiBkIjoiTW9uLCAxNSBPY3QgMjAxOCAxMjozOTowNSBHTVQifX0.DqX_yQ.64wh2borsgv4MfYZnoBTbYNeQxY; HttpOnly; Path=/\", \"Date\": \"Mon, 15 Oct 2018 10:39:05 GMT\", \"Server\": \"Werkzeug/0.14.1 Python/2.7.6\", \"Vary\": \"Cookie\", \"Content-Length\": \"1969\", \"Content-Type\": \"application/json\"}}", "{\"headers\": \"{\\\"Accept\\\": \\\"application/json\\\", \\\"Content-Type\\\": \\\"application/json\\\"}\", \"method\": \"DELETE\", \"path_query\": \"api/v1/sources/b2d7bda5-0f50-4baf-ba3b-591cf65c6a3a/replies/e76b4ac1-01a3-497c-bc0f-8ea5bbd846f1\"}+2": "{\"status\": 200, \"body\": \"{\\n \\\"message\\\": \\\"Reply deleted\\\"\\n}\\n\", \"version\": \"0.1.1\", \"headers\": {\"Server\": \"Werkzeug/0.14.1 Python/2.7.6\", \"Vary\": \"Cookie\", \"Date\": \"Mon, 15 Oct 2018 10:39:06 GMT\", \"Content-Type\": \"application/json\", \"Set-Cookie\": \"js=eyJleHBpcmVzIjp7IiBkIjoiTW9uLCAxNSBPY3QgMjAxOCAxMjozOTowNiBHTVQifX0.DqX_yg.0uR9ucOz50EqOTDgn6AuRBKKfNg; HttpOnly; Path=/\", \"Content-Length\": \"33\"}}", "{\"headers\": \"{\\\"Accept\\\": \\\"application/json\\\", \\\"Content-Type\\\": \\\"application/json\\\"}\", \"method\": \"GET\", \"path_query\": \"api/v1/replies\"}+3": "{\"body\": \"{\\n \\\"replies\\\": [\\n {\\n \\\"filename\\\": \\\"4-unmanly_salmonellosis-reply.gpg\\\", \\n \\\"is_deleted_by_source\\\": false, \\n \\\"journalist_username\\\": \\\"journalist\\\", \\n \\\"journalist_uuid\\\": \\\"eb4a8050-7eb7-496a-ae75-1ef66db677bc\\\", \\n \\\"reply_url\\\": \\\"/api/v1/sources/b2d7bda5-0f50-4baf-ba3b-591cf65c6a3a/replies/98393589-7442-45b9-83b6-3cb45f3f7b2a\\\", \\n \\\"size\\\": 1116, \\n \\\"source_url\\\": \\\"/api/v1/sources/b2d7bda5-0f50-4baf-ba3b-591cf65c6a3a\\\", \\n \\\"uuid\\\": \\\"98393589-7442-45b9-83b6-3cb45f3f7b2a\\\"\\n }, \\n {\\n \\\"filename\\\": \\\"3-bulimic_redress-reply.gpg\\\", \\n \\\"is_deleted_by_source\\\": false, \\n \\\"journalist_username\\\": \\\"journalist\\\", \\n \\\"journalist_uuid\\\": \\\"eb4a8050-7eb7-496a-ae75-1ef66db677bc\\\", \\n \\\"reply_url\\\": \\\"/api/v1/sources/103be2d8-7ab8-4188-94ef-4f98e9c398fe/replies/71327942-53dd-4d03-917c-645e1f0c7ed7\\\", \\n \\\"size\\\": 1116, \\n \\\"source_url\\\": \\\"/api/v1/sources/103be2d8-7ab8-4188-94ef-4f98e9c398fe\\\", \\n \\\"uuid\\\": \\\"71327942-53dd-4d03-917c-645e1f0c7ed7\\\"\\n }, \\n {\\n \\\"filename\\\": \\\"4-bulimic_redress-reply.gpg\\\", \\n \\\"is_deleted_by_source\\\": false, \\n \\\"journalist_username\\\": \\\"journalist\\\", \\n \\\"journalist_uuid\\\": \\\"eb4a8050-7eb7-496a-ae75-1ef66db677bc\\\", \\n \\\"reply_url\\\": \\\"/api/v1/sources/103be2d8-7ab8-4188-94ef-4f98e9c398fe/replies/e2ea71b4-7403-4592-a96f-679207f17b14\\\", \\n \\\"size\\\": 1116, \\n \\\"source_url\\\": \\\"/api/v1/sources/103be2d8-7ab8-4188-94ef-4f98e9c398fe\\\", \\n \\\"uuid\\\": \\\"e2ea71b4-7403-4592-a96f-679207f17b14\\\"\\n }\\n ]\\n}\\n\", \"headers\": {\"Server\": \"Werkzeug/0.14.1 Python/2.7.6\", \"Vary\": \"Cookie\", \"Set-Cookie\": \"js=eyJleHBpcmVzIjp7IiBkIjoiTW9uLCAxNSBPY3QgMjAxOCAxMjozOTowNiBHTVQifX0.DqX_yw.BR8eGjBy2Nxz7Nn-EY88EpHfiGo; HttpOnly; Path=/\", \"Date\": \"Mon, 15 Oct 2018 10:39:07 GMT\", \"Content-Type\": \"application/json\", \"Content-Length\": \"1479\"}, \"status\": 200, \"version\": \"0.1.1\"}"}
1 change: 1 addition & 0 deletions data/test_delete_source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"{\"headers\": \"{\\\"Accept\\\": \\\"application/json\\\", \\\"Content-Type\\\": \\\"application/json\\\"}\", \"method\": \"GET\", \"path_query\": \"api/v1/sources\"}+1": "{\"body\": \"{\\n \\\"sources\\\": [\\n {\\n \\\"add_star_url\\\": \\\"/api/v1/sources/ec973f69-7afc-43fa-b810-dd3090fd1fba/add_star\\\", \\n \\\"interaction_count\\\": 4, \\n \\\"is_flagged\\\": false, \\n \\\"is_starred\\\": false, \\n \\\"journalist_designation\\\": \\\"receptive herald\\\", \\n \\\"key\\\": {\\n \\\"public\\\": \\\"-----BEGIN PGP PUBLIC KEY BLOCK-----\\\\n\\\\nmQINBFvEcNgBEACwzyiYcLvntPZ7fWONQBwD8IeuunhTXTsyAX0kPUVTD6tqP0cU\\\\nF2xcYACVOjglSL+dnLkAUI8aszEdI8oX74OYfLrzGnmACr7wQfwZ3Y7m3U95DsNU\\\\nOMMAjot5Y4OA9cvf7RWDYLTfT7Me5mMwadmfNmXXgLf3QDnUGldZCe15U3Q7K1pG\\\\nS7V+a2VS9leGl3vRrQosyjpaVmtQOBWEb3/Xij8ntXUQIFT4wBATth2nGQ5fYHoe\\\\nxoe5dQBpUZwsXNnGZ+emQM8EJE/Xxm0T7ZZngHsU9DsES5SUMmkPaAdivWTvPvEt\\\\nOSThzdO6qnvBwNHTCmlOkkm7NFxBt8kxiOjB+21wtVnz6noVqvht1Ca1p7W+2A4M\\\\nfo2QvTHwYeG09204lr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\nR6uOMmcvQKJ+01X5iB0JBfo0lc5mQGUJE1PVPi/nSdM0m1pXe/F+dO+E/cT3Q4Ky\\\\niXhCPzc/ZwXFEnMrDihs45fcNBosvr3wpyGPNIMSj62JZVp9bVTKsTumKQVe8A/Y\\\\n0KxacDSsxNXq9bcDZgGHoxJ2hYYdHN7iQXTHWYBkTqDqvRAAz1WKOsh1nN3i9/6Y\\\\nNB8vfRFCHXiVxtYMez9oMYK0bpe9J4QvbomxDc2nFMg=\\\\n=d4Np\\\\n-----END PGP PUBLIC KEY BLOCK-----\\\\n\\\", \\n \\\"type\\\": \\\"PGP\\\"\\n }, \\n \\\"last_updated\\\": \\\"2018-10-15T10:50:04.759461Z\\\", \\n \\\"number_of_documents\\\": 0, \\n \\\"number_of_messages\\\": 2, \\n \\\"remove_star_url\\\": \\\"/api/v1/sources/ec973f69-7afc-43fa-b810-dd3090fd1fba/remove_star\\\", \\n \\\"replies_url\\\": \\\"/api/v1/sources/ec973f69-7afc-43fa-b810-dd3090fd1fba/replies\\\", \\n \\\"submissions_url\\\": \\\"/api/v1/sources/ec973f69-7afc-43fa-b810-dd3090fd1fba/submissions\\\", \\n \\\"url\\\": \\\"/api/v1/sources/ec973f69-7afc-43fa-b810-dd3090fd1fba\\\", \\n \\\"uuid\\\": \\\"ec973f69-7afc-43fa-b810-dd3090fd1fba\\\"\\n }, \\n {\\n \\\"add_star_url\\\": \\\"/api/v1/sources/b4071b88-a05b-452f-9c6e-2aa1191c085b/add_star\\\", \\n \\\"interaction_count\\\": 4, \\n \\\"is_flagged\\\": false, \\n \\\"is_starred\\\": false, \\n \\\"journalist_designation\\\": \\\"raising electroplate\\\", \\n \\\"key\\\": {\\n \\\"public\\\": \\\"-----BEGIN PGP PUBLIC KEY BLOCK-----\\\\n\\\\nmQINBFvEcN8BEAC3pD6oGMqSN/YNvKxtxen4TYd7itO/dyN8qTGAeK/mSD7089ux\\\\nwf7mWrBPHcxbMOUj5mCfJIf1g9OGfb/Wl6W3Ndn+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nMQt5cySNyQs8Pfos9sHUwCIgGathOmvohdyaPjhN9/dTFUekQPK4wTxbtv0+mOjS\\\\n6NVWOpNdekTiLjTX6vz/pHGp2c/8sKm10XP65OA9gn/HlrtpXdPOCwAc9nr1QFxW\\\\naQnO07jPW/DORrWJACHwKl+VUlPROY6l1L5xF7n+wCynwJYgvbx3+CmDizpFsMc1\\\\nWoMKcxQsgKFMPYeoDA47cOiCGySYXRsDnN/CLLho9f/VCRA6m3uo3wUW2ZdjJUdW\\\\nx6ySidtHd9I/mV7wapIZM3g5x53vHGqFjPcqRH1Ms8fhDuK4x9suz5otKBuqxvtm\\\\nbgIT7EXMjb3evZFwLwi9rEb09an00pOV7qCha21G+TCdA9/kDtfTBYIvwaTcx1WZ\\\\nO71hayr6Qijn3pdy8j9MDT21MJGaT8oRDRq/Z2rU4ZeAYRJUP0BWJYT/WyrPiba6\\\\nnUSPOg9SX62II3K22D3vy/ftgPbUbC9n6QsYC2Dcij6AoFqVZRxM/beltg02vS4U\\\\nE3sQDNAupjiBXn34pZzjec1/PyQuIhk07UejJhgg6tQ=\\\\n=t9WV\\\\n-----END PGP PUBLIC KEY BLOCK-----\\\\n\\\", \\n \\\"type\\\": \\\"PGP\\\"\\n }, \\n \\\"last_updated\\\": \\\"2018-10-15T10:50:08.360591Z\\\", \\n \\\"number_of_documents\\\": 0, \\n \\\"number_of_messages\\\": 2, \\n \\\"remove_star_url\\\": \\\"/api/v1/sources/b4071b88-a05b-452f-9c6e-2aa1191c085b/remove_star\\\", \\n \\\"replies_url\\\": \\\"/api/v1/sources/b4071b88-a05b-452f-9c6e-2aa1191c085b/replies\\\", \\n \\\"submissions_url\\\": \\\"/api/v1/sources/b4071b88-a05b-452f-9c6e-2aa1191c085b/submissions\\\", \\n \\\"url\\\": \\\"/api/v1/sources/b4071b88-a05b-452f-9c6e-2aa1191c085b\\\", \\n \\\"uuid\\\": \\\"b4071b88-a05b-452f-9c6e-2aa1191c085b\\\"\\n }\\n ]\\n}\\n\", \"headers\": {\"Server\": \"Werkzeug/0.14.1 Python/2.7.6\", \"Set-Cookie\": \"js=eyJleHBpcmVzIjp7IiBkIjoiTW9uLCAxNSBPY3QgMjAxOCAxMjo1MzowMyBHTVQifX0.DqYDDw.RitzC--vVUjS-a5gMBXQ1EHFFVA; HttpOnly; Path=/\", \"Content-Type\": \"application/json\", \"Vary\": \"Cookie\", \"Date\": \"Mon, 15 Oct 2018 10:53:03 GMT\", \"Content-Length\": \"5239\"}, \"status\": 200, \"version\": \"0.1.1\"}", "{\"headers\": \"{\\\"Accept\\\": \\\"application/json\\\", \\\"Content-Type\\\": \\\"application/json\\\"}\", \"method\": \"DELETE\", \"path_query\": \"api/v1/sources/ec973f69-7afc-43fa-b810-dd3090fd1fba\"}+2": "{\"headers\": {\"Date\": \"Mon, 15 Oct 2018 10:53:04 GMT\", \"Server\": \"Werkzeug/0.14.1 Python/2.7.6\", \"Set-Cookie\": \"js=eyJleHBpcmVzIjp7IiBkIjoiTW9uLCAxNSBPY3QgMjAxOCAxMjo1MzowNCBHTVQifX0.DqYDEA.d60t9CZ1CIcD0bo5HHxI_l-awyQ; HttpOnly; Path=/\", \"Content-Length\": \"50\", \"Content-Type\": \"application/json\", \"Vary\": \"Cookie\"}, \"body\": \"{\\n \\\"message\\\": \\\"Source and submissions deleted\\\"\\n}\\n\", \"version\": \"0.1.1\", \"status\": 200}", "{\"headers\": \"{\\\"Accept\\\": \\\"application/json\\\", \\\"Content-Type\\\": \\\"application/json\\\"}\", \"method\": \"GET\", \"path_query\": \"api/v1/sources\"}+3": "{\"status\": 200, \"version\": \"0.1.1\", \"body\": \"{\\n \\\"sources\\\": [\\n {\\n \\\"add_star_url\\\": \\\"/api/v1/sources/b4071b88-a05b-452f-9c6e-2aa1191c085b/add_star\\\", \\n \\\"interaction_count\\\": 4, \\n \\\"is_flagged\\\": false, \\n \\\"is_starred\\\": false, \\n \\\"journalist_designation\\\": \\\"raising electroplate\\\", \\n \\\"key\\\": {\\n \\\"public\\\":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u0B2qA+pYQ/+\\\\nJuLjhArDN0ndA+viedkDr2TxzalrOWQhIdHD4AK1RQGaYZeBu6/gHGnPUpD20ja4\\\\n6mdA6shp2VW6RIXFTignClpDkfgcDfYmFGAoqbTbNwy5Vf3y5lfV/ckcIp25aaQq\\\\nMQt5cySNyQs8Pfos9sHUwCIgGathOmvohdyaPjhN9/dTFUekQPK4wTxbtv0+mOjS\\\\n6NVWOpNdekTiLjTX6vz/pHGp2c/8sKm10XP65OA9gn/HlrtpXdPOCwAc9nr1QFxW\\\\naQnO07jPW/DORrWJACHwKl+VUlPROY6l1L5xF7n+wCynwJYgvbx3+CmDizpFsMc1\\\\nWoMKcxQsgKFMPYeoDA47cOiCGySYXRsDnN/CLLho9f/VCRA6m3uo3wUW2ZdjJUdW\\\\nx6ySidtHd9I/mV7wapIZM3g5x53vHGqFjPcqRH1Ms8fhDuK4x9suz5otKBuqxvtm\\\\nbgIT7EXMjb3evZFwLwi9rEb09an00pOV7qCha21G+TCdA9/kDtfTBYIvwaTcx1WZ\\\\nO71hayr6Qijn3pdy8j9MDT21MJGaT8oRDRq/Z2rU4ZeAYRJUP0BWJYT/WyrPiba6\\\\nnUSPOg9SX62II3K22D3vy/ftgPbUbC9n6QsYC2Dcij6AoFqVZRxM/beltg02vS4U\\\\nE3sQDNAupjiBXn34pZzjec1/PyQuIhk07UejJhgg6tQ=\\\\n=t9WV\\\\n-----END PGP PUBLIC KEY BLOCK-----\\\\n\\\", \\n \\\"type\\\": \\\"PGP\\\"\\n }, \\n \\\"last_updated\\\": \\\"2018-10-15T10:50:08.360591Z\\\", \\n \\\"number_of_documents\\\": 0, \\n \\\"number_of_messages\\\": 2, \\n \\\"remove_star_url\\\": \\\"/api/v1/sources/b4071b88-a05b-452f-9c6e-2aa1191c085b/remove_star\\\", \\n \\\"replies_url\\\": \\\"/api/v1/sources/b4071b88-a05b-452f-9c6e-2aa1191c085b/replies\\\", \\n \\\"submissions_url\\\": \\\"/api/v1/sources/b4071b88-a05b-452f-9c6e-2aa1191c085b/submissions\\\", \\n \\\"url\\\": \\\"/api/v1/sources/b4071b88-a05b-452f-9c6e-2aa1191c085b\\\", \\n \\\"uuid\\\": \\\"b4071b88-a05b-452f-9c6e-2aa1191c085b\\\"\\n }\\n ]\\n}\\n\", \"headers\": {\"Date\": \"Mon, 15 Oct 2018 10:53:04 GMT\", \"Set-Cookie\": \"js=eyJleHBpcmVzIjp7IiBkIjoiTW9uLCAxNSBPY3QgMjAxOCAxMjo1MzowNCBHTVQifX0.DqYDEA.d60t9CZ1CIcD0bo5HHxI_l-awyQ; HttpOnly; Path=/\", \"Content-Type\": \"application/json\", \"Server\": \"Werkzeug/0.14.1 Python/2.7.6\", \"Vary\": \"Cookie\", \"Content-Length\": \"2632\"}}"}
Loading

0 comments on commit 71e1681

Please sign in to comment.