{"action":"closed","issue":{"url":"https://api.github.com/repos/gaodp/ethics-api/issues/4","labels_url":"https://api.github.com/repos/gaodp/ethics-api/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/gaodp/ethics-api/issues/4/comments","events_url":"https://api.github.com/repos/gaodp/ethics-api/issues/4/events","html_url":"https://github.com/gaodp/ethics-api/issues/4","id":57743690,"number":4,"title":"Implement /api/v1/campaigns API endpoints","user":{"login":"farmdawgnation","id":620189,"avatar_url":"https://avatars.githubusercontent.com/u/620189?v=3","gravatar_id":"","url":"https://api.github.com/users/farmdawgnation","html_url":"https://github.com/farmdawgnation","followers_url":"https://api.github.com/users/farmdawgnation/followers","following_url":"https://api.github.com/users/farmdawgnation/following{/other_user}","gists_url":"https://api.github.com/users/farmdawgnation/gists{/gist_id}","starred_url":"https://api.github.com/users/farmdawgnation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/farmdawgnation/subscriptions","organizations_url":"https://api.github.com/users/farmdawgnation/orgs","repos_url":"https://api.github.com/users/farmdawgnation/repos","events_url":"https://api.github.com/users/farmdawgnation/events{/privacy}","received_events_url":"https://api.github.com/users/farmdawgnation/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gaodp/ethics-api/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"login":"ybh6336","id":1105167,"avatar_url":"https://avatars.githubusercontent.com/u/1105167?v=3","gravatar_id":"","url":"https://api.github.com/users/ybh6336","html_url":"https://github.com/ybh6336","followers_url":"https://api.github.com/users/ybh6336/followers","following_url":"https://api.github.com/users/ybh6336/following{/other_user}","gists_url":"https://api.github.com/users/ybh6336/gists{/gist_id}","starred_url":"https://api.github.com/users/ybh6336/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ybh6336/subscriptions","organizations_url":"https://api.github.com/users/ybh6336/orgs","repos_url":"https://api.github.com/users/ybh6336/repos","events_url":"https://api.github.com/users/ybh6336/events{/privacy}","received_events_url":"https://api.github.com/users/ybh6336/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-02-15T20:05:49Z","updated_at":"2015-02-25T00:38:16Z","closed_at":"2015-02-25T00:38:16Z","body":"We need to implement the campaigns API endpoints. These endpoints provide access to details information about particular campaigns that a person has run. For our purposes a campaign should probably consist of:\r\n\r\n- _id: Our identifier for the campaign, a Mongo ObjectID\r\n- candidate: Some information about the candidate\r\n  - lastName\r\n  - firstName\r\n  - _id: Should be the same ID as from the candidates record\r\n- office: Some information about the office sought\r\n- status: the status of the campaign\r\n- reports: Information on reports\r\n  - _id: A unique identifier of the report\r\n  - type\r\n  - year\r\n  - title\r\n  - dateReceived: a date\r\n\r\nWe need the following endpoints:\r\n\r\n### GET /api/v1/campaigns/:id\r\n\r\nRetrieves a campaign by ID as described above. Should return an object in the structure as above for the matching id.\r\n"}}