{"action":"created","issue":{"url":"https://api.github.com/repos/openspending/cosmopolitan/issues/1","labels_url":"https://api.github.com/repos/openspending/cosmopolitan/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/openspending/cosmopolitan/issues/1/comments","events_url":"https://api.github.com/repos/openspending/cosmopolitan/issues/1/events","html_url":"https://github.com/openspending/cosmopolitan/issues/1","id":114646940,"number":1,"title":"Minimum viable implementation","user":{"login":"pwalsh","id":791678,"avatar_url":"https://avatars.githubusercontent.com/u/791678?v=3","gravatar_id":"","url":"https://api.github.com/users/pwalsh","html_url":"https://github.com/pwalsh","followers_url":"https://api.github.com/users/pwalsh/followers","following_url":"https://api.github.com/users/pwalsh/following{/other_user}","gists_url":"https://api.github.com/users/pwalsh/gists{/gist_id}","starred_url":"https://api.github.com/users/pwalsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwalsh/subscriptions","organizations_url":"https://api.github.com/users/pwalsh/orgs","repos_url":"https://api.github.com/users/pwalsh/repos","events_url":"https://api.github.com/users/pwalsh/events{/privacy}","received_events_url":"https://api.github.com/users/pwalsh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openspending/cosmopolitan/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"kiote","id":123637,"avatar_url":"https://avatars.githubusercontent.com/u/123637?v=3","gravatar_id":"","url":"https://api.github.com/users/kiote","html_url":"https://github.com/kiote","followers_url":"https://api.github.com/users/kiote/followers","following_url":"https://api.github.com/users/kiote/following{/other_user}","gists_url":"https://api.github.com/users/kiote/gists{/gist_id}","starred_url":"https://api.github.com/users/kiote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiote/subscriptions","organizations_url":"https://api.github.com/users/kiote/orgs","repos_url":"https://api.github.com/users/kiote/repos","events_url":"https://api.github.com/users/kiote/events{/privacy}","received_events_url":"https://api.github.com/users/kiote/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/openspending/cosmopolitan/milestones/1","html_url":"https://github.com/openspending/cosmopolitan/milestones/Current","labels_url":"https://api.github.com/repos/openspending/cosmopolitan/milestones/1/labels","id":1389494,"number":1,"title":"Current","description":"","creator":{"login":"pwalsh","id":791678,"avatar_url":"https://avatars.githubusercontent.com/u/791678?v=3","gravatar_id":"","url":"https://api.github.com/users/pwalsh","html_url":"https://github.com/pwalsh","followers_url":"https://api.github.com/users/pwalsh/followers","following_url":"https://api.github.com/users/pwalsh/following{/other_user}","gists_url":"https://api.github.com/users/pwalsh/gists{/gist_id}","starred_url":"https://api.github.com/users/pwalsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwalsh/subscriptions","organizations_url":"https://api.github.com/users/pwalsh/orgs","repos_url":"https://api.github.com/users/pwalsh/repos","events_url":"https://api.github.com/users/pwalsh/events{/privacy}","received_events_url":"https://api.github.com/users/pwalsh/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2015-11-02T17:47:29Z","updated_at":"2015-11-02T17:47:40Z","due_on":null,"closed_at":null},"comments":15,"created_at":"2015-11-02T17:47:14Z","updated_at":"2015-12-13T08:28:14Z","closed_at":null,"body":"# Description\r\n\r\nA simple API server that returns core data on the places of the world. Designed for use in OpenSpending.\r\n\r\n# Tasks\r\n\r\n* [x] Setup a Django project using Django REST Framework (http://www.django-rest-framework.org)\r\n* [x] Integrate django-cities (https://github.com/coderholic/django-cities)\r\n* [x] Create the database for Django Cities and then, when we have that ready, Ask @pwalsh to add it to a remote server for use in production\r\n* [x] Expose the following **ListView** API endpoints (using DRF browsable HTML, but JSON as only API format)\r\n  * [x] `/v1/countries`\r\n  * [x] `/v1/regions` (subregion? not sure, depends on data structure and the nesting of country, region, place, etc)\r\n  * [x] `/v1/continents`\r\n  * [x] `/v1/currencies`\r\n* [x] Each object that is represented on a list view should be able to be looked up on a **DetailView**. (Example: `/v1/countries/ru`)\r\n* [x] Any config options we need must be settable via env vars\r\n* [x] Deploy app to heroku (@pwalsh will deploy the data elsewhere, on an Amazon RDS instance)\r\n  * [x] Use django database url extension which you'll need for heroku\r\n* [x] Simple tests for each API endpoint using https://github.com/ydaniv/django-rest-assured\r\n\r\n## A detailed list of endpoints we **need** for this iteration:\r\n\r\nWe want all of the following endpoints.\r\n\r\n* Currency List `/api/v1/currencies/` (`/api/v1/currencies/?countries={code}`, `/api/v1/currencies/?countries={code},{code},{code}`)\r\n  * Can filter by country slug, or list of country codes\r\n  * Fields per object:\r\n    * `code`\r\n    * `url`\r\n    * `name`\r\n    * `countries`, being an array where each object is:\r\n      * `code`\r\n      * `url`\r\n* Currency Detail `/api/v1/currencies/{code}`\r\n  * Fields:\r\n    * `code`\r\n    * `url`\r\n    * `name`\r\n    * `countries`, being an array where each object is:\r\n      * `name`\r\n      * `code`\r\n      * `url`\r\n    * `continents`, being an array where each object is:\r\n      * `name`\r\n      * `code`\r\n      * `url`\r\n    * Let @pwalsh know what other fields we have for each currency\r\n* Continent List `/api/v1/continents/`\r\n  * Fields per object:\r\n    * `code`\r\n    * `url`\r\n    * `name`\r\n    * `countries`, being an array where each object is:\r\n      * `code`\r\n      * `url`\r\n* Continent Detail `/api/v1/continents/{code}`\r\n  * Fields:\r\n    * `code`\r\n    * `url`\r\n    * `name`\r\n    * `countries`, being an array where each object is:\r\n      * `name`\r\n      * `code`\r\n      * `url`\r\n    * `currencies`, being an array where each object is:\r\n      * `name`\r\n      * `code`\r\n      * `url`\r\n    * Let @pwalsh know what other fields we have for each continent\r\n* Country List `/api/v1/countries/` (`/api/v1/countries/?continents={code}`, `/api/v1/countries/?continents={code},{code},{code}`)\r\n  * Can filter by continent code, or list of continent codes\r\n  * Fields per object:\r\n    * `code`\r\n    * `url`\r\n    * `name`\r\n    * `continent` (an object of `code` and `url`)\r\n    * `currencies` (an array of objects of `code` and `url`)\r\n* Country Detail `/api/v1/countries/{code}`\r\n  * Fields:\r\n    * `code`\r\n    * `url`\r\n    * `name`\r\n    * `continent`, being an object with:\r\n      * `name`\r\n      * `code`\r\n      * `url`\r\n      * `related`, being an array of countries in the continent as objects with:\r\n        * `code`\r\n        * `url`\r\n    * `currencies`, being an array where each object is:\r\n      * `code`\r\n      * `name`\r\n      * `url`\r\n    * `polygon`\r\n    * Let @pwalsh know what else we have on a countries\r\n"},"comment":{"url":"https://api.github.com/repos/openspending/cosmopolitan/issues/comments/164237568","html_url":"https://github.com/openspending/cosmopolitan/issues/1#issuecomment-164237568","issue_url":"https://api.github.com/repos/openspending/cosmopolitan/issues/1","id":164237568,"user":{"login":"pwalsh","id":791678,"avatar_url":"https://avatars.githubusercontent.com/u/791678?v=3","gravatar_id":"","url":"https://api.github.com/users/pwalsh","html_url":"https://github.com/pwalsh","followers_url":"https://api.github.com/users/pwalsh/followers","following_url":"https://api.github.com/users/pwalsh/following{/other_user}","gists_url":"https://api.github.com/users/pwalsh/gists{/gist_id}","starred_url":"https://api.github.com/users/pwalsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwalsh/subscriptions","organizations_url":"https://api.github.com/users/pwalsh/orgs","repos_url":"https://api.github.com/users/pwalsh/repos","events_url":"https://api.github.com/users/pwalsh/events{/privacy}","received_events_url":"https://api.github.com/users/pwalsh/received_events","type":"User","site_admin":false},"created_at":"2015-12-13T08:28:14Z","updated_at":"2015-12-13T08:28:14Z","body":"1. Use one currency then as per django cities.\r\n2. Ignore it."}}