socialappslab / appcivist-platform

Core AppCivist Platform
http://citris-uc.org/social-apps-lab/project/appcivist-2/
Other
5 stars 0 forks source link

Super simple assembly instance #20

Closed animeshpathak closed 9 years ago

animeshpathak commented 9 years ago

Let's break this down into a much simpler example with

Let's detail this here, naming the services and the operations.

animeshpathak commented 9 years ago

Deliberation: active discussion and evaluation of proposals by the whole community

animeshpathak commented 9 years ago
orch = new AppCivistOrchestrator() ;
loomio = orch.getServiceInstance(Constants.LOOMIO_INFO) ;
agora =  orch.getServiceInstance(Constants.AGORA_INFO) ;

String title = Constants.SAMPLE_TITLE ;
String desc = Constants.SAMPLE_DESC ;

loomio.RESTCalls.createDiscussion(title, desc); //this is fake, is being used only for demo purposes

//setup complete, main job starts

AppCivistDiscussion d = loomio.RESTCalls.getDiscussions().get(0); //gets the first discussion, uses AppCivist data structure

AppCivistElectionInstance e = agora.RESTCalls.createAgora(d);

for (AppCivistDecisions disc : d.getMotions()){
 e.addVoteOption(disc.motion.title, disc.motion.url);
}

//at the end of this, our agora instance should have an election set up inside it.

Utils.printInfo(agora.RESTCalls.getElectionInstance(e.getID())); //should print all voting options

//end of demo 1 
cdparra commented 9 years ago

Just taking note: the new API of agora is this The test will continue to use the old however

animeshpathak commented 9 years ago

Sure, no worries.

cdparra commented 9 years ago

Demo done (along with the v1 of both Composition Engine and Execution Engine)

cdparra commented 9 years ago

Example of console output

DEMOv1 > #1 > Add connected services to the Assembly
DEMOv1 > #1.1 > Reading and adding service 'Loomio'{"serviceId":2,"name":"Loomio","baseUrl":"http://localhost:4001/api/v1","auth":[{"serviceAuthenticationId":2,"authType":"COOKIE","token":"MVh4dXBZamgxaGZWdHpoSUlkVWZwTjBEOWVIYmVvaTJMM0hpYXp2MDZhNHZjeW1rOVZJUFZ0MUtXZW45OXIxaElnaVd4SGFtZjR2bWZYaVFFN0ZuU0w4ZnNxMW8za2FDdFB3U20rT2NlU0RURXZ6VTlTVUF3NU9wb2ZZTDF2b0VWcTRtaTdnQU01TkRTbTRUQytEQ0IrNEJjMVVGeExnRERVVG1XWlU2TUt4UkQ5OFo5Y3gyRUloMkZqMzF6SXZGWDhLS3NNb2ZjdGV4bjdUb3AxQ1NYTWhWREJZSE1Bb2hrNVRVeXlvaGxZQUloekROS0lvano0aXE4U1lEQWs2QTRpbHcwK2hjTFdQWmM3Z0F0OG44cFp2c2ZmWDdCREJhdXI0Z1Rpa3ZmelMzTjFZQ0JwaXpjZ01JZTF1YkhIUEdCMmZsRnIvRmxTSlJteDBOa3lGRU1FejdEamV2eFZtTVpKaVpURnFrYkRRQWl6TDNzTmJNTWVmQmpvZjZHNlhVVW53U3RMb1RtdUVnSVhFeTd0UUxkUT09LS1nd0RYNWJpakJYMnZUMVlLb1R6a2hBPT0%3D--f392e285a192d44e361eebab8719dbc2cfa9f7b7","tokenInjection":"Cookie","tokenParamName":"_loomio"}],"operations":[{"serviceOperationId":8,"appCivistOperation":"createDiscussion","expectedResource":null,"definition":{"operationDefinitionId":9,"name":"discussions","type":"HTTP","method":"POST","parameters":[{"parameterDefinitionId":10,"name":"discussion","type":"BODY_PARAM","dataType":"JSON","dataModel":[{"dataModelId":8,"dataKey":"group_id","annotations":"INT, REQUIRED","defaultValue":null,"required":true,"list":false,"childDataModel":[]},{"dataModelId":7,"dataKey":"private","annotations":"STRING, REQUIRED","defaultValue":"false","required":true,"list":false,"childDataModel":[]},{"dataModelId":6,"dataKey":"description","annotations":"STRING, REQUIRED","defaultValue":"Discussion description goes here","required":false,"list":false,"childDataModel":[]},{"dataModelId":5,"dataKey":"title","annotations":"STRING, REQUIRED","defaultValue":"Title of discussion goes here","required":true,"list":false,"childDataModel":[]}],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},"parameters":[]},{"serviceOperationId":7,"appCivistOperation":"createElection","expectedResource":null,"definition":{"operationDefinitionId":6,"name":"action","type":"HTTP","method":"POST","parameters":[{"parameterDefinitionId":7,"name":"description","type":"BODY_PARAM","dataType":"JSON","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},"parameters":[]},{"serviceOperationId":6,"appCivistOperation":"createProposal","expectedResource":null,"definition":{"operationDefinitionId":2,"name":"createPad","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":3,"name":"text","type":"QUERY_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false},{"parameterDefinitionId":2,"name":"padID","type":"QUERY_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},"parameters":[]},{"serviceOperationId":5,"appCivistOperation":"readProposal","expectedResource":null,"definition":{"operationDefinitionId":1,"name":"getText","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":1,"name":"padID","type":"QUERY_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},"parameters":[]},{"serviceOperationId":4,"appCivistOperation":"readDiscussion","expectedResource":null,"definition":{"operationDefinitionId":4,"name":"discussions","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":5,"name":"key","type":"PATH_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},"parameters":[]},{"serviceOperationId":3,"appCivistOperation":"readGroup","expectedResource":null,"definition":{"operationDefinitionId":3,"name":"groups","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":4,"name":"groupId","type":"PATH_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},"parameters":[]}],"resources":[{"serviceResourceId":4,"url":"/api/v1/motion/5l1yrCV7","type":"PROPOSAL","keyValue":"5l1yrCV7","keyName":"motionId","body":null,"parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":3,"url":"/api/v1/discussions/sxiOKaJo","type":"DISCUSSION","keyValue":"sxiOKaJo","keyName":"discussionId","body":null,"parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":2,"url":"/api/v1/groups/hkP4Bvtn","type":"GROUP","keyValue":"hkP4Bvtn","keyName":"groupId","body":null,"parameters":[],"relatedResources":[],"relatedResourcesMap":{}}],"serviceDefinition":{"serviceDefinitionId":2,"name":"Loomio","operations":[{"operationDefinitionId":10,"name":"groups","type":"HTTP","method":"POST","parameters":[{"parameterDefinitionId":11,"name":"group","type":"BODY_PARAM","dataType":"JSON","dataModel":[{"dataModelId":4,"dataKey":"discussion_privacy_options","annotations":"STRING, REQUIRED","defaultValue":"public","required":true,"list":false,"childDataModel":[]},{"dataModelId":3,"dataKey":"visible_to","annotations":"STRING, REQUIRED","defaultValue":"public","required":true,"list":false,"childDataModel":[]},{"dataModelId":2,"dataKey":"description","annotations":"STRING, REQUIRED","defaultValue":"Group description goes here","required":true,"list":false,"childDataModel":[]},{"dataModelId":1,"dataKey":"name","annotations":"STRING, REQUIRED","defaultValue":"Group name goes here","required":true,"list":false,"childDataModel":[]}],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},{"operationDefinitionId":9,"name":"discussions","type":"HTTP","method":"POST","parameters":[{"parameterDefinitionId":10,"name":"discussion","type":"BODY_PARAM","dataType":"JSON","dataModel":[{"dataModelId":8,"dataKey":"group_id","annotations":"INT, REQUIRED","defaultValue":null,"required":true,"list":false,"childDataModel":[]},{"dataModelId":7,"dataKey":"private","annotations":"STRING, REQUIRED","defaultValue":"false","required":true,"list":false,"childDataModel":[]},{"dataModelId":6,"dataKey":"description","annotations":"STRING, REQUIRED","defaultValue":"Discussion description goes here","required":false,"list":false,"childDataModel":[]},{"dataModelId":5,"dataKey":"title","annotations":"STRING, REQUIRED","defaultValue":"Title of discussion goes here","required":true,"list":false,"childDataModel":[]}],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},{"operationDefinitionId":4,"name":"discussions","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":5,"name":"key","type":"PATH_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},{"operationDefinitionId":3,"name":"groups","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":4,"name":"groupId","type":"PATH_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true}]},"operationMappings":{},"trailingSlash":false}
DEMOv1 > #1.2 > Reading and adding Service 'Agora'{"serviceId":3,"name":"Agora","baseUrl":"http://localhost:8000/api/v1","auth":[{"serviceAuthenticationId":5,"authType":"COOKIE","token":"tFvhI9SFsWmH3lMmcdip9MaLfr49wVt6","tokenInjection":"Cookie","tokenParamName":"csrftoken"},{"serviceAuthenticationId":4,"authType":"TOKEN","token":"tFvhI9SFsWmH3lMmcdip9MaLfr49wVt6","tokenInjection":"HEADER","tokenParamName":"X-CSRFToken"},{"serviceAuthenticationId":3,"authType":"TOKEN","token":"ApiKey cdparra:2cea7838eaa75a61a45c96042cf4d5e8cc625e00","tokenInjection":"HEADER","tokenParamName":"Authorization"}],"operations":[],"resources":[{"serviceResourceId":6,"url":"/api/v1/action/election/4","type":"ELECTION","keyValue":"4","keyName":"electionId","body":null,"parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":5,"url":"/api/v1/action/agora/1","type":"GROUP","keyValue":"1","keyName":"groupId","body":null,"parameters":[],"relatedResources":[],"relatedResourcesMap":{}}],"serviceDefinition":{"serviceDefinitionId":3,"name":"Agora","operations":[{"operationDefinitionId":14,"name":"agora","type":"HTTP","method":"POST","parameters":[{"parameterDefinitionId":18,"name":"agora","type":"BODY_PARAM","dataType":"JSON","dataModel":[{"dataModelId":34,"dataKey":"is_vote_secret","annotations":"STRING, REQUIRED","defaultValue":"FALSE","required":true,"list":false,"childDataModel":[]},{"dataModelId":33,"dataKey":"short_description","annotations":"STRING, REQUIRED","defaultValue":"created agora description","required":true,"list":false,"childDataModel":[]},{"dataModelId":32,"dataKey":"pretty_name","annotations":"STRING, REQUIRED","defaultValue":"created-agora","required":true,"list":false,"childDataModel":[]}],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},{"operationDefinitionId":13,"name":"proposals","type":"HTTP","method":"POST","parameters":[{"parameterDefinitionId":17,"name":"proposal","type":"BODY_PARAM","dataType":"JSON","dataModel":[{"dataModelId":31,"dataKey":"closing_at","annotations":"STRING, REQUIRED","defaultValue":"Description of proposal","required":true,"list":false,"childDataModel":[]},{"dataModelId":30,"dataKey":"description","annotations":"STRING, REQUIRED","defaultValue":"Description of proposal","required":true,"list":false,"childDataModel":[]},{"dataModelId":36,"dataKey":"name","annotations":"STRING, REQUIRED","defaultValue":"Name of proposal","required":true,"list":false,"childDataModel":[]},{"dataModelId":35,"dataKey":"discussion_id","annotations":"STRING, REQUIRED","defaultValue":null,"required":true,"list":false,"childDataModel":[]}],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},{"operationDefinitionId":12,"name":"proposals","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":16,"name":"discussion_id","type":"QUERY_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},{"operationDefinitionId":11,"name":"create_election","type":"HTTP","method":"POST","parameters":[{"parameterDefinitionId":15,"name":"actionBody","type":"BODY_PARAM","dataType":"JSON","dataModel":[{"dataModelId":27,"dataKey":"to_date","annotations":"STRING, OPTIONAL, %Y-%m-%dT%H:%M:%S","defaultValue":null,"required":false,"list":false,"childDataModel":[]},{"dataModelId":15,"dataKey":"from_date","annotations":"STRING, OPTIONAL, %Y-%m-%dT%H:%M:%S","defaultValue":null,"required":false,"list":false,"childDataModel":[]},{"dataModelId":14,"dataKey":"is_vote_secret","annotations":"STRING, REQUIRED","defaultValue":"Election pretty_name","required":true,"list":false,"childDataModel":[]},{"dataModelId":13,"dataKey":"pretty_name","annotations":"STRING, REQUIRED","defaultValue":"Election pretty_name","required":true,"list":false,"childDataModel":[]},{"dataModelId":11,"dataKey":"questions","annotations":"STRING, REQUIRED","defaultValue":null,"required":true,"list":true,"childDataModel":[{"dataModelId":22,"dataKey":"answers","annotations":"LIST, REQUIRED","defaultValue":null,"required":true,"list":true,"childDataModel":[{"dataModelId":26,"dataKey":"value","annotations":"STRING, REQUIRED","defaultValue":"foo","required":true,"list":false,"childDataModel":[]},{"dataModelId":25,"dataKey":"details","annotations":"STRING, REQUIRED","defaultValue":"","required":true,"list":false,"childDataModel":[]},{"dataModelId":24,"dataKey":"url","annotations":"STRING, REQUIRED","defaultValue":"","required":true,"list":false,"childDataModel":[]},{"dataModelId":23,"dataKey":"a","annotations":"STRING, REQUIRED","defaultValue":"ballot/answer","required":true,"list":false,"childDataModel":[]}]},{"dataModelId":21,"dataKey":"randomize_answer_order","annotations":"STRING, REQUIRED","defaultValue":"True","required":true,"list":false,"childDataModel":[]},{"dataModelId":20,"dataKey":"min","annotations":"STRING, REQUIRED","defaultValue":"0","required":true,"list":false,"childDataModel":[]},{"dataModelId":19,"dataKey":"max","annotations":"STRING, REQUIRED","defaultValue":"1","required":true,"list":false,"childDataModel":[]},{"dataModelId":18,"dataKey":"tally_type","annotations":"STRING, REQUIRED","defaultValue":"ONE_CHOICE","required":true,"list":false,"childDataModel":[]},{"dataModelId":17,"dataKey":"a","annotations":"STRING, REQUIRED","defaultValue":"ballot/question","required":true,"list":false,"childDataModel":[]},{"dataModelId":16,"dataKey":"question","annotations":"STRING, REQUIRED","defaultValue":"Do you prefer foo or bar?","required":true,"list":false,"childDataModel":[]},{"dataModelId":29,"dataKey":"num_seats","annotations":"STRING, REQUIRED","defaultValue":"1","required":true,"list":false,"childDataModel":[]},{"dataModelId":28,"dataKey":"question_num","annotations":"STRING, REQUIRED","defaultValue":"1","required":true,"list":false,"childDataModel":[]}]},{"dataModelId":10,"dataKey":"description","annotations":"STRING, REQUIRED","defaultValue":"Election description goes here","required":true,"list":false,"childDataModel":[]},{"dataModelId":9,"dataKey":"action","annotations":"STRING, REQUIRED","defaultValue":"create_election","required":true,"list":false,"childDataModel":[]}],"pathOrder":0,"defaultValue":null,"required":false},{"parameterDefinitionId":14,"name":"action","type":"PATH_PARAM","dataType":"INT","dataModel":[],"pathOrder":2,"defaultValue":"action","required":false},{"parameterDefinitionId":13,"name":"agora_id","type":"PATH_PARAM","dataType":"INT","dataModel":[],"pathOrder":1,"defaultValue":null,"required":false},{"parameterDefinitionId":12,"name":"agora","type":"PATH_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":"agora","required":false}],"nameOnPath":false},{"operationDefinitionId":8,"name":"election","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":9,"name":"id","type":"PATH_PARAM","dataType":"INT","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":false},{"operationDefinitionId":7,"name":"agora","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":8,"name":"id","type":"PATH_PARAM","dataType":"INT","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},{"operationDefinitionId":6,"name":"action","type":"HTTP","method":"POST","parameters":[{"parameterDefinitionId":7,"name":"description","type":"BODY_PARAM","dataType":"JSON","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},{"operationDefinitionId":5,"name":"proposals","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":6,"name":"motionId","type":"PATH_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true}]},"operationMappings":{},"trailingSlash":true}
DEMOv1 > #2 > Create a Discussion in 'Loomio'
DEMOv1 > #3 > Create a Discussion in 'Loomio'
DEMOv1 > #[createDiscussionInLoomio].1 > Prepare parameters for instance of [Loomio].createDiscussion according to definition:[{"serviceParameterId":null,"value":"{\"private\":\"true\",\"group_id\":\"139\",\"description\":\"How might we best use the empty lot?\",\"title\":\"ISSUE:Empty lot in telegraph and channing\"}","serviceParameter":{"parameterDefinitionId":10,"name":"discussion","type":"BODY_PARAM","dataType":"JSON","dataModel":[{"dataModelId":8,"dataKey":"group_id","annotations":"INT, REQUIRED","defaultValue":null,"required":true,"list":false,"childDataModel":[]},{"dataModelId":7,"dataKey":"private","annotations":"STRING, REQUIRED","defaultValue":"false","required":true,"list":false,"childDataModel":[]},{"dataModelId":6,"dataKey":"description","annotations":"STRING, REQUIRED","defaultValue":"Discussion description goes here","required":false,"list":false,"childDataModel":[]},{"dataModelId":5,"dataKey":"title","annotations":"STRING, REQUIRED","defaultValue":"Title of discussion goes here","required":true,"list":false,"childDataModel":[]}],"pathOrder":0,"defaultValue":null,"required":false}}]
DEMOv1 > #[createDiscussionInLoomio].1 > Prepare parameters for instance of [Loomio].createDiscussion according to definition:[{"serviceParameterId":null,"value":"{\"private\":\"true\",\"group_id\":\"139\",\"description\":\"Let's make a Garden! 1\",\"title\":\"Garden Proposal 1\"}","serviceParameter":{"parameterDefinitionId":10,"name":"discussion","type":"BODY_PARAM","dataType":"JSON","dataModel":[{"dataModelId":8,"dataKey":"group_id","annotations":"INT, REQUIRED","defaultValue":null,"required":true,"list":false,"childDataModel":[]},{"dataModelId":7,"dataKey":"private","annotations":"STRING, REQUIRED","defaultValue":"false","required":true,"list":false,"childDataModel":[]},{"dataModelId":6,"dataKey":"description","annotations":"STRING, REQUIRED","defaultValue":"Discussion description goes here","required":false,"list":false,"childDataModel":[]},{"dataModelId":5,"dataKey":"title","annotations":"STRING, REQUIRED","defaultValue":"Title of discussion goes here","required":true,"list":false,"childDataModel":[]}],"pathOrder":0,"defaultValue":null,"required":false}}]
DEMOv1 > #[createDiscussionInLoomio].1 > Prepare parameters for instance of [Loomio].createDiscussion according to definition:[{"serviceParameterId":null,"value":"{\"private\":\"true\",\"group_id\":\"139\",\"description\":\"Let's make a Garden! 2\",\"title\":\"Garden Proposal 2\"}","serviceParameter":{"parameterDefinitionId":10,"name":"discussion","type":"BODY_PARAM","dataType":"JSON","dataModel":[{"dataModelId":8,"dataKey":"group_id","annotations":"INT, REQUIRED","defaultValue":null,"required":true,"list":false,"childDataModel":[]},{"dataModelId":7,"dataKey":"private","annotations":"STRING, REQUIRED","defaultValue":"false","required":true,"list":false,"childDataModel":[]},{"dataModelId":6,"dataKey":"description","annotations":"STRING, REQUIRED","defaultValue":"Discussion description goes here","required":false,"list":false,"childDataModel":[]},{"dataModelId":5,"dataKey":"title","annotations":"STRING, REQUIRED","defaultValue":"Title of discussion goes here","required":true,"list":false,"childDataModel":[]}],"pathOrder":0,"defaultValue":null,"required":false}}]
DEMOv1 > #[createDiscussionInLoomio].1 > Prepare parameters for instance of [Loomio].createDiscussion according to definition:[{"serviceParameterId":null,"value":"{\"private\":\"true\",\"group_id\":\"139\",\"description\":\"Let's make a Garden! 3\",\"title\":\"Garden Proposal 3\"}","serviceParameter":{"parameterDefinitionId":10,"name":"discussion","type":"BODY_PARAM","dataType":"JSON","dataModel":[{"dataModelId":8,"dataKey":"group_id","annotations":"INT, REQUIRED","defaultValue":null,"required":true,"list":false,"childDataModel":[]},{"dataModelId":7,"dataKey":"private","annotations":"STRING, REQUIRED","defaultValue":"false","required":true,"list":false,"childDataModel":[]},{"dataModelId":6,"dataKey":"description","annotations":"STRING, REQUIRED","defaultValue":"Discussion description goes here","required":false,"list":false,"childDataModel":[]},{"dataModelId":5,"dataKey":"title","annotations":"STRING, REQUIRED","defaultValue":"Title of discussion goes here","required":true,"list":false,"childDataModel":[]}],"pathOrder":0,"defaultValue":null,"required":false}}]
DEMOv1 > #[createAgoraElection].1 > Prepare parameters for instance of [Loomio].createDiscussion according to definition:[{"serviceParameterId":null,"value":"{\"pretty_name\":\"Voting Proposals for Issue: '395'\",\"to_date\":null,\"from_date\":null,\"is_vote_secret\":true,\"questions\":[{\"a\":\"ballot/question\",\"min\":0,\"question\":\"Which proposal is the best?\",\"max\":1,\"answers\":[{\"a\":\"ballot/answer\",\"details\":\"\",\"value\":\"FINAL PROPOSAL: Garden Proposal 1\",\"url\":\"\"},{\"a\":\"ballot/answer\",\"details\":\"\",\"value\":\"FINAL PROPOSAL: Garden Proposal 2\",\"url\":\"\"},{\"a\":\"ballot/answer\",\"details\":\"\",\"value\":\"FINAL PROPOSAL: Garden Proposal 3\",\"url\":\"\"}],\"randomize_answer_order\":true,\"tally_type\":\"ONE_CHOICE\",\"num_seats\":1,\"question_num\":\"1\"}],\"description\":\"This election is to choose the winning proposal for the issue => ISSUE:Empty lot in telegraph and channing\",\"action\":\"create_election\"}","serviceParameter":{"parameterDefinitionId":15,"name":"actionBody","type":"BODY_PARAM","dataType":"JSON","dataModel":[{"dataModelId":27,"dataKey":"to_date","annotations":"STRING, OPTIONAL, %Y-%m-%dT%H:%M:%S","defaultValue":null,"required":false,"list":false,"childDataModel":[]},{"dataModelId":15,"dataKey":"from_date","annotations":"STRING, OPTIONAL, %Y-%m-%dT%H:%M:%S","defaultValue":null,"required":false,"list":false,"childDataModel":[]},{"dataModelId":14,"dataKey":"is_vote_secret","annotations":"STRING, REQUIRED","defaultValue":"Election pretty_name","required":true,"list":false,"childDataModel":[]},{"dataModelId":13,"dataKey":"pretty_name","annotations":"STRING, REQUIRED","defaultValue":"Election pretty_name","required":true,"list":false,"childDataModel":[]},{"dataModelId":11,"dataKey":"questions","annotations":"STRING, REQUIRED","defaultValue":null,"required":true,"list":true,"childDataModel":[{"dataModelId":22,"dataKey":"answers","annotations":"LIST, REQUIRED","defaultValue":null,"required":true,"list":true,"childDataModel":[{"dataModelId":26,"dataKey":"value","annotations":"STRING, REQUIRED","defaultValue":"foo","required":true,"list":false,"childDataModel":[]},{"dataModelId":25,"dataKey":"details","annotations":"STRING, REQUIRED","defaultValue":"","required":true,"list":false,"childDataModel":[]},{"dataModelId":24,"dataKey":"url","annotations":"STRING, REQUIRED","defaultValue":"","required":true,"list":false,"childDataModel":[]},{"dataModelId":23,"dataKey":"a","annotations":"STRING, REQUIRED","defaultValue":"ballot/answer","required":true,"list":false,"childDataModel":[]}]},{"dataModelId":21,"dataKey":"randomize_answer_order","annotations":"STRING, REQUIRED","defaultValue":"True","required":true,"list":false,"childDataModel":[]},{"dataModelId":20,"dataKey":"min","annotations":"STRING, REQUIRED","defaultValue":"0","required":true,"list":false,"childDataModel":[]},{"dataModelId":19,"dataKey":"max","annotations":"STRING, REQUIRED","defaultValue":"1","required":true,"list":false,"childDataModel":[]},{"dataModelId":18,"dataKey":"tally_type","annotations":"STRING, REQUIRED","defaultValue":"ONE_CHOICE","required":true,"list":false,"childDataModel":[]},{"dataModelId":17,"dataKey":"a","annotations":"STRING, REQUIRED","defaultValue":"ballot/question","required":true,"list":false,"childDataModel":[]},{"dataModelId":16,"dataKey":"question","annotations":"STRING, REQUIRED","defaultValue":"Do you prefer foo or bar?","required":true,"list":false,"childDataModel":[]},{"dataModelId":29,"dataKey":"num_seats","annotations":"STRING, REQUIRED","defaultValue":"1","required":true,"list":false,"childDataModel":[]},{"dataModelId":28,"dataKey":"question_num","annotations":"STRING, REQUIRED","defaultValue":"1","required":true,"list":false,"childDataModel":[]}]},{"dataModelId":10,"dataKey":"description","annotations":"STRING, REQUIRED","defaultValue":"Election description goes here","required":true,"list":false,"childDataModel":[]},{"dataModelId":9,"dataKey":"action","annotations":"STRING, REQUIRED","defaultValue":"create_election","required":true,"list":false,"childDataModel":[]}],"pathOrder":0,"defaultValue":null,"required":false}},{"serviceParameterId":null,"value":"action","serviceParameter":{"parameterDefinitionId":14,"name":"action","type":"PATH_PARAM","dataType":"INT","dataModel":[],"pathOrder":2,"defaultValue":"action","required":false}},{"serviceParameterId":null,"value":"78","serviceParameter":{"parameterDefinitionId":13,"name":"agora_id","type":"PATH_PARAM","dataType":"INT","dataModel":[],"pathOrder":1,"defaultValue":null,"required":false}},{"serviceParameterId":null,"value":"agora","serviceParameter":{"parameterDefinitionId":12,"name":"agora","type":"PATH_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":"agora","required":false}}]
DEMOv1 > #4 > Created Election => {"agora":{"content_type":"agora","delegation_policy":"ALLOW_DELEGATION","full_name":"cdparra/loomio-urban-spaces-group16","id":78,"mugshot_url":"/static/img/agora_default_logo.png","name":"loomio-urban-spaces-group16","pretty_name":"[LOOMIO]: Urban Spaces Group","short_description":"Group discussing urban spaces ideas","url":"http://localhost:8000/cdparra/loomio-urban-spaces-group16"},"approved_at_date":"2015-04-11T02:42:53.758408","archived_at_date":null,"comments_policy":"ANYONE_CAN_COMMENT","created_at_date":"2015-04-11T02:42:53.749058","creator":"/api/v1/user/1/","delegated_votes_count":0,"delegated_votes_frozen_at_date":null,"description":"This election is to choose the winning proposal for the issue => ISSUE:Empty lot in telegraph and channing","direct_votes_count":0,"election_type":"ONE_CHOICE","eligibility":null,"frozen_at_date":null,"hash":null,"id":122,"is_approved":true,"is_vote_secret":true,"last_modified_at_date":"2015-04-11T02:42:53.758802","mugshot_url":"/static/img/election_new_form_info.png","name":"voting-proposals-for-issue-395","parent_election":null,"percentage_of_participation":0.0,"pretty_name":"Voting Proposals for Issue: '395'","questions":[{"a":"ballot/question","answers":[{"a":"ballot/answer","details":"","url":"","value":"FINAL PROPOSAL: Garden Proposal 1"},{"a":"ballot/answer","details":"","url":"","value":"FINAL PROPOSAL: Garden Proposal 2"},{"a":"ballot/answer","details":"","url":"","value":"FINAL PROPOSAL: Garden Proposal 3"}],"max":1,"min":0,"num_seats":1,"question":"Which proposal is the best?","question_num":"1","randomize_answer_order":true,"tally_type":"ONE_CHOICE"}],"result":null,"result_tallied_at_date":null,"short_description":"<p>This election is to choose the winning proposal for the issue =&gt; ISSUE:Empty lot in telegraph and channing</p>","tiny_hash":null,"url":"http://localhost:8000/cdparra/loomio-urban-spaces-group16/election/voting-proposals-for-issue-395","user_has_delegated":false,"user_perms":["edit_details","begin_election","freeze_election","archive_election","comment","vote_counts"],"uuid":"7e987ebf-6f40-4f4d-8967-8c6d1f437ea5","voters_frozen_at_date":null,"voting_ends_at_date":null,"voting_extended_until_date":null,"voting_starts_at_date":null}
DEMOv1 > #5 > Rendered Assembly => {"assemblyId":null,"name":"Urban Spaces Assembly","description":"An assembly that works on proposals for addressing problems in urban spaces","city":"Paris","icon":"/assets/images/justicia-140.png","url":null,"issues":[],"connectedServices":[{"serviceId":2,"name":"Loomio","baseUrl":"http://localhost:4001/api/v1","auth":[{"serviceAuthenticationId":2,"authType":"COOKIE","token":"MVh4dXBZamgxaGZWdHpoSUlkVWZwTjBEOWVIYmVvaTJMM0hpYXp2MDZhNHZjeW1rOVZJUFZ0MUtXZW45OXIxaElnaVd4SGFtZjR2bWZYaVFFN0ZuU0w4ZnNxMW8za2FDdFB3U20rT2NlU0RURXZ6VTlTVUF3NU9wb2ZZTDF2b0VWcTRtaTdnQU01TkRTbTRUQytEQ0IrNEJjMVVGeExnRERVVG1XWlU2TUt4UkQ5OFo5Y3gyRUloMkZqMzF6SXZGWDhLS3NNb2ZjdGV4bjdUb3AxQ1NYTWhWREJZSE1Bb2hrNVRVeXlvaGxZQUloekROS0lvano0aXE4U1lEQWs2QTRpbHcwK2hjTFdQWmM3Z0F0OG44cFp2c2ZmWDdCREJhdXI0Z1Rpa3ZmelMzTjFZQ0JwaXpjZ01JZTF1YkhIUEdCMmZsRnIvRmxTSlJteDBOa3lGRU1FejdEamV2eFZtTVpKaVpURnFrYkRRQWl6TDNzTmJNTWVmQmpvZjZHNlhVVW53U3RMb1RtdUVnSVhFeTd0UUxkUT09LS1nd0RYNWJpakJYMnZUMVlLb1R6a2hBPT0%3D--f392e285a192d44e361eebab8719dbc2cfa9f7b7","tokenInjection":"Cookie","tokenParamName":"_loomio"}],"operations":[{"serviceOperationId":8,"appCivistOperation":"createDiscussion","expectedResource":null,"definition":{"operationDefinitionId":9,"name":"discussions","type":"HTTP","method":"POST","parameters":[{"parameterDefinitionId":10,"name":"discussion","type":"BODY_PARAM","dataType":"JSON","dataModel":[{"dataModelId":8,"dataKey":"group_id","annotations":"INT, REQUIRED","defaultValue":null,"required":true,"list":false,"childDataModel":[]},{"dataModelId":7,"dataKey":"private","annotations":"STRING, REQUIRED","defaultValue":"false","required":true,"list":false,"childDataModel":[]},{"dataModelId":6,"dataKey":"description","annotations":"STRING, REQUIRED","defaultValue":"Discussion description goes here","required":false,"list":false,"childDataModel":[]},{"dataModelId":5,"dataKey":"title","annotations":"STRING, REQUIRED","defaultValue":"Title of discussion goes here","required":true,"list":false,"childDataModel":[]}],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},"parameters":[]},{"serviceOperationId":7,"appCivistOperation":"createElection","expectedResource":null,"definition":{"operationDefinitionId":6,"name":"action","type":"HTTP","method":"POST","parameters":[{"parameterDefinitionId":7,"name":"description","type":"BODY_PARAM","dataType":"JSON","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},"parameters":[]},{"serviceOperationId":6,"appCivistOperation":"createProposal","expectedResource":null,"definition":{"operationDefinitionId":2,"name":"createPad","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":3,"name":"text","type":"QUERY_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false},{"parameterDefinitionId":2,"name":"padID","type":"QUERY_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},"parameters":[]},{"serviceOperationId":5,"appCivistOperation":"readProposal","expectedResource":null,"definition":{"operationDefinitionId":1,"name":"getText","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":1,"name":"padID","type":"QUERY_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},"parameters":[]},{"serviceOperationId":4,"appCivistOperation":"readDiscussion","expectedResource":null,"definition":{"operationDefinitionId":4,"name":"discussions","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":5,"name":"key","type":"PATH_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},"parameters":[]},{"serviceOperationId":3,"appCivistOperation":"readGroup","expectedResource":null,"definition":{"operationDefinitionId":3,"name":"groups","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":4,"name":"groupId","type":"PATH_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},"parameters":[]}],"resources":[{"serviceResourceId":4,"url":"/api/v1/motion/5l1yrCV7","type":"PROPOSAL","keyValue":"5l1yrCV7","keyName":"motionId","body":null,"parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":3,"url":"/api/v1/discussions/sxiOKaJo","type":"DISCUSSION","keyValue":"sxiOKaJo","keyName":"discussionId","body":null,"parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":2,"url":"/api/v1/groups/hkP4Bvtn","type":"GROUP","keyValue":"hkP4Bvtn","keyName":"groupId","body":null,"parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:4001/api/v1/groups","type":"GROUP","keyValue":null,"keyName":null,"body":"{\"groups\":[{\"id\":139,\"key\":\"LtfMiFS6\",\"name\":\"[LOOMIO]: Urban Spaces Group\",\"created_at\":\"2015-04-11T00:42:52.447Z\",\"description\":\"Group discussing urban spaces ideas\",\"members_can_add_members\":false,\"members_can_create_subgroups\":true,\"members_can_start_discussions\":true,\"members_can_edit_discussions\":true,\"members_can_edit_comments\":true,\"members_can_raise_proposals\":true,\"members_can_vote\":true,\"visible_to\":\"members\",\"membership_granted_upon\":\"approval\",\"discussion_privacy_options\":\"private_only\",\"logo_url_medium\":\"default-logo-medium.png\",\"cover_url_desktop\":\"default-cover-photo.png\",\"parent_id\":null}]}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:4001/api/v1/discussions","type":"ISSUE","keyValue":null,"keyName":null,"body":"{\"users\":[{\"id\":2,\"name\":\"James Proposer\",\"username\":\"jamesproposer\",\"avatar_initials\":\"JP\",\"avatar_kind\":\"initials\",\"avatar_url\":\"/uploaded_avatars/medium/missing.png\",\"profile_url\":\"/uploaded_avatars/large/missing.png\"}],\"groups\":[{\"id\":139,\"key\":\"LtfMiFS6\",\"name\":\"[LOOMIO]: Urban Spaces Group\",\"created_at\":\"2015-04-11T00:42:52.447Z\",\"description\":\"Group discussing urban spaces ideas\",\"members_can_add_members\":false,\"members_can_create_subgroups\":true,\"members_can_start_discussions\":true,\"members_can_edit_discussions\":true,\"members_can_edit_comments\":true,\"members_can_raise_proposals\":true,\"members_can_vote\":true,\"visible_to\":\"members\",\"membership_granted_upon\":\"approval\",\"discussion_privacy_options\":\"private_only\",\"logo_url_medium\":\"default-logo-medium.png\",\"cover_url_desktop\":\"default-cover-photo.png\",\"parent_id\":null}],\"proposals\":[],\"discussions\":[{\"id\":395,\"key\":\"5tDT8i7I\",\"title\":\"ISSUE:Empty lot in telegraph and channing\",\"description\":\"How might we best use the empty lot?\",\"last_activity_at\":\"2015-04-11T00:42:52.922Z\",\"created_at\":\"2015-04-11T00:42:52.911Z\",\"updated_at\":\"2015-04-11T00:42:52.925Z\",\"items_count\":0,\"comments_count\":0,\"private\":true,\"author_id\":2,\"group_id\":139,\"active_proposal_id\":null}]}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:4001/api/v1/discussions","type":"DISCUSSION","keyValue":null,"keyName":null,"body":"{\"users\":[{\"id\":2,\"name\":\"James Proposer\",\"username\":\"jamesproposer\",\"avatar_initials\":\"JP\",\"avatar_kind\":\"initials\",\"avatar_url\":\"/uploaded_avatars/medium/missing.png\",\"profile_url\":\"/uploaded_avatars/large/missing.png\"}],\"groups\":[{\"id\":139,\"key\":\"LtfMiFS6\",\"name\":\"[LOOMIO]: Urban Spaces Group\",\"created_at\":\"2015-04-11T00:42:52.447Z\",\"description\":\"Group discussing urban spaces ideas\",\"members_can_add_members\":false,\"members_can_create_subgroups\":true,\"members_can_start_discussions\":true,\"members_can_edit_discussions\":true,\"members_can_edit_comments\":true,\"members_can_raise_proposals\":true,\"members_can_vote\":true,\"visible_to\":\"members\",\"membership_granted_upon\":\"approval\",\"discussion_privacy_options\":\"private_only\",\"logo_url_medium\":\"default-logo-medium.png\",\"cover_url_desktop\":\"default-cover-photo.png\",\"parent_id\":null}],\"proposals\":[],\"discussions\":[{\"id\":396,\"key\":\"Tm7nBWgt\",\"title\":\"Garden Proposal 1\",\"description\":\"Let's make a Garden! 1\",\"last_activity_at\":\"2015-04-11T00:42:53.034Z\",\"created_at\":\"2015-04-11T00:42:53.022Z\",\"updated_at\":\"2015-04-11T00:42:53.037Z\",\"items_count\":0,\"comments_count\":0,\"private\":true,\"author_id\":2,\"group_id\":139,\"active_proposal_id\":null}]}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:4001/api/v1/discussions","type":"DISCUSSION","keyValue":null,"keyName":null,"body":"{\"users\":[{\"id\":2,\"name\":\"James Proposer\",\"username\":\"jamesproposer\",\"avatar_initials\":\"JP\",\"avatar_kind\":\"initials\",\"avatar_url\":\"/uploaded_avatars/medium/missing.png\",\"profile_url\":\"/uploaded_avatars/large/missing.png\"}],\"groups\":[{\"id\":139,\"key\":\"LtfMiFS6\",\"name\":\"[LOOMIO]: Urban Spaces Group\",\"created_at\":\"2015-04-11T00:42:52.447Z\",\"description\":\"Group discussing urban spaces ideas\",\"members_can_add_members\":false,\"members_can_create_subgroups\":true,\"members_can_start_discussions\":true,\"members_can_edit_discussions\":true,\"members_can_edit_comments\":true,\"members_can_raise_proposals\":true,\"members_can_vote\":true,\"visible_to\":\"members\",\"membership_granted_upon\":\"approval\",\"discussion_privacy_options\":\"private_only\",\"logo_url_medium\":\"default-logo-medium.png\",\"cover_url_desktop\":\"default-cover-photo.png\",\"parent_id\":null}],\"proposals\":[],\"discussions\":[{\"id\":397,\"key\":\"jAhxwI9F\",\"title\":\"Garden Proposal 2\",\"description\":\"Let's make a Garden! 2\",\"last_activity_at\":\"2015-04-11T00:42:53.127Z\",\"created_at\":\"2015-04-11T00:42:53.119Z\",\"updated_at\":\"2015-04-11T00:42:53.130Z\",\"items_count\":0,\"comments_count\":0,\"private\":true,\"author_id\":2,\"group_id\":139,\"active_proposal_id\":null}]}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:4001/api/v1/discussions","type":"DISCUSSION","keyValue":null,"keyName":null,"body":"{\"users\":[{\"id\":2,\"name\":\"James Proposer\",\"username\":\"jamesproposer\",\"avatar_initials\":\"JP\",\"avatar_kind\":\"initials\",\"avatar_url\":\"/uploaded_avatars/medium/missing.png\",\"profile_url\":\"/uploaded_avatars/large/missing.png\"}],\"groups\":[{\"id\":139,\"key\":\"LtfMiFS6\",\"name\":\"[LOOMIO]: Urban Spaces Group\",\"created_at\":\"2015-04-11T00:42:52.447Z\",\"description\":\"Group discussing urban spaces ideas\",\"members_can_add_members\":false,\"members_can_create_subgroups\":true,\"members_can_start_discussions\":true,\"members_can_edit_discussions\":true,\"members_can_edit_comments\":true,\"members_can_raise_proposals\":true,\"members_can_vote\":true,\"visible_to\":\"members\",\"membership_granted_upon\":\"approval\",\"discussion_privacy_options\":\"private_only\",\"logo_url_medium\":\"default-logo-medium.png\",\"cover_url_desktop\":\"default-cover-photo.png\",\"parent_id\":null}],\"proposals\":[],\"discussions\":[{\"id\":398,\"key\":\"whAiVJDg\",\"title\":\"Garden Proposal 3\",\"description\":\"Let's make a Garden! 3\",\"last_activity_at\":\"2015-04-11T00:42:53.233Z\",\"created_at\":\"2015-04-11T00:42:53.219Z\",\"updated_at\":\"2015-04-11T00:42:53.235Z\",\"items_count\":0,\"comments_count\":0,\"private\":true,\"author_id\":2,\"group_id\":139,\"active_proposal_id\":null}]}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:4001/api/v1/proposals","type":"PROPOSAL","keyValue":null,"keyName":null,"body":"{\"users\":[{\"id\":2,\"name\":\"James Proposer\",\"username\":\"jamesproposer\",\"avatar_initials\":\"JP\",\"avatar_kind\":\"initials\",\"avatar_url\":\"/uploaded_avatars/medium/missing.png\",\"profile_url\":\"/uploaded_avatars/large/missing.png\"}],\"proposals\":[{\"id\":282,\"discussion_id\":396,\"name\":\"FINAL PROPOSAL: Garden Proposal 1\",\"description\":\"The proposal is: Let's make a Garden! 1\",\"outcome\":null,\"activity_count\":0,\"did_not_votes_count\":null,\"created_at\":\"2015-04-11T00:42:53.309Z\",\"updated_at\":\"2015-04-11T00:42:53.309Z\",\"closing_at\":\"2015-04-10T00:00:00.000Z\",\"closed_at\":null,\"last_vote_at\":null,\"vote_counts\":{\"yes\":0,\"abstain\":0,\"no\":0,\"block\":0},\"author_id\":2,\"outcome_author_id\":null}]}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:4001/api/v1/proposals","type":"PROPOSAL","keyValue":null,"keyName":null,"body":"{\"users\":[{\"id\":2,\"name\":\"James Proposer\",\"username\":\"jamesproposer\",\"avatar_initials\":\"JP\",\"avatar_kind\":\"initials\",\"avatar_url\":\"/uploaded_avatars/medium/missing.png\",\"profile_url\":\"/uploaded_avatars/large/missing.png\"}],\"proposals\":[{\"id\":283,\"discussion_id\":397,\"name\":\"FINAL PROPOSAL: Garden Proposal 2\",\"description\":\"The proposal is: Let's make a Garden! 2\",\"outcome\":null,\"activity_count\":0,\"did_not_votes_count\":null,\"created_at\":\"2015-04-11T00:42:53.399Z\",\"updated_at\":\"2015-04-11T00:42:53.399Z\",\"closing_at\":\"2015-04-10T00:00:00.000Z\",\"closed_at\":null,\"last_vote_at\":null,\"vote_counts\":{\"yes\":0,\"abstain\":0,\"no\":0,\"block\":0},\"author_id\":2,\"outcome_author_id\":null}]}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:4001/api/v1/proposals","type":"PROPOSAL","keyValue":null,"keyName":null,"body":"{\"users\":[{\"id\":2,\"name\":\"James Proposer\",\"username\":\"jamesproposer\",\"avatar_initials\":\"JP\",\"avatar_kind\":\"initials\",\"avatar_url\":\"/uploaded_avatars/medium/missing.png\",\"profile_url\":\"/uploaded_avatars/large/missing.png\"}],\"proposals\":[{\"id\":284,\"discussion_id\":398,\"name\":\"FINAL PROPOSAL: Garden Proposal 3\",\"description\":\"The proposal is: Let's make a Garden! 3\",\"outcome\":null,\"activity_count\":0,\"did_not_votes_count\":null,\"created_at\":\"2015-04-11T00:42:53.484Z\",\"updated_at\":\"2015-04-11T00:42:53.484Z\",\"closing_at\":\"2015-04-10T00:00:00.000Z\",\"closed_at\":null,\"last_vote_at\":null,\"vote_counts\":{\"yes\":0,\"abstain\":0,\"no\":0,\"block\":0},\"author_id\":2,\"outcome_author_id\":null}]}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}}],"serviceDefinition":{"serviceDefinitionId":2,"name":"Loomio","operations":[{"operationDefinitionId":10,"name":"groups","type":"HTTP","method":"POST","parameters":[{"parameterDefinitionId":11,"name":"group","type":"BODY_PARAM","dataType":"JSON","dataModel":[{"dataModelId":4,"dataKey":"discussion_privacy_options","annotations":"STRING, REQUIRED","defaultValue":"public","required":true,"list":false,"childDataModel":[]},{"dataModelId":3,"dataKey":"visible_to","annotations":"STRING, REQUIRED","defaultValue":"public","required":true,"list":false,"childDataModel":[]},{"dataModelId":2,"dataKey":"description","annotations":"STRING, REQUIRED","defaultValue":"Group description goes here","required":true,"list":false,"childDataModel":[]},{"dataModelId":1,"dataKey":"name","annotations":"STRING, REQUIRED","defaultValue":"Group name goes here","required":true,"list":false,"childDataModel":[]}],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},{"operationDefinitionId":9,"name":"discussions","type":"HTTP","method":"POST","parameters":[{"parameterDefinitionId":10,"name":"discussion","type":"BODY_PARAM","dataType":"JSON","dataModel":[{"dataModelId":8,"dataKey":"group_id","annotations":"INT, REQUIRED","defaultValue":null,"required":true,"list":false,"childDataModel":[]},{"dataModelId":7,"dataKey":"private","annotations":"STRING, REQUIRED","defaultValue":"false","required":true,"list":false,"childDataModel":[]},{"dataModelId":6,"dataKey":"description","annotations":"STRING, REQUIRED","defaultValue":"Discussion description goes here","required":false,"list":false,"childDataModel":[]},{"dataModelId":5,"dataKey":"title","annotations":"STRING, REQUIRED","defaultValue":"Title of discussion goes here","required":true,"list":false,"childDataModel":[]}],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},{"operationDefinitionId":4,"name":"discussions","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":5,"name":"key","type":"PATH_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},{"operationDefinitionId":3,"name":"groups","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":4,"name":"groupId","type":"PATH_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true}]},"operationMappings":{"createProposal":"13","createGroup":"10","createDiscussion":"9"},"trailingSlash":false},{"serviceId":3,"name":"Agora","baseUrl":"http://localhost:8000/api/v1","auth":[{"serviceAuthenticationId":5,"authType":"COOKIE","token":"tFvhI9SFsWmH3lMmcdip9MaLfr49wVt6","tokenInjection":"Cookie","tokenParamName":"csrftoken"},{"serviceAuthenticationId":4,"authType":"TOKEN","token":"tFvhI9SFsWmH3lMmcdip9MaLfr49wVt6","tokenInjection":"HEADER","tokenParamName":"X-CSRFToken"},{"serviceAuthenticationId":3,"authType":"TOKEN","token":"ApiKey cdparra:2cea7838eaa75a61a45c96042cf4d5e8cc625e00","tokenInjection":"HEADER","tokenParamName":"Authorization"}],"operations":[],"resources":[{"serviceResourceId":6,"url":"/api/v1/action/election/4","type":"ELECTION","keyValue":"4","keyName":"electionId","body":null,"parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":5,"url":"/api/v1/action/agora/1","type":"GROUP","keyValue":"1","keyName":"groupId","body":null,"parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:8000/api/v1/agora/","type":"GROUP","keyValue":null,"keyName":null,"body":"{\"archived_at_date\":null,\"biography\":\"\",\"comments_policy\":\"ANYONE_CAN_COMMENT\",\"created_at_date\":\"2015-04-11T02:42:53.610995\",\"creator\":{\"content_type\":\"user\",\"first_name\":\"Cristhian\",\"full_name\":\"Cristhian\",\"id\":1,\"mugshot_url\":\"http://www.gravatar.com/avatar/4f091ef04611939a6438507e10a2661c?s=50&d=https%3A%2F%2Funitials.com%2Fmugshot%2F50%2FC.png\",\"short_description\":\"Human Being\",\"url\":\"/user/cdparra\",\"username\":\"cdparra\"},\"delegation_policy\":\"ALLOW_DELEGATION\",\"election_type\":\"SIMPLE_DELEGATION\",\"eligibility\":null,\"extra_data\":null,\"full_name\":\"cdparra/loomio-urban-spaces-group16\",\"id\":78,\"image_url\":\"\",\"is_vote_secret\":false,\"members_count\":1,\"membership_policy\":\"ANYONE_CAN_JOIN\",\"mugshot_url\":\"/static/img/agora_default_logo.png\",\"name\":\"loomio-urban-spaces-group16\",\"open_elections_count\":0,\"pretty_name\":\"[LOOMIO]: Urban Spaces Group\",\"short_description\":\"Group discussing urban spaces ideas\",\"url\":\"http://localhost:8000/cdparra/loomio-urban-spaces-group16\"}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:8000/api/v1/agora/78/action/","type":"ELECTION","keyValue":null,"keyName":null,"body":"{\"agora\":{\"content_type\":\"agora\",\"delegation_policy\":\"ALLOW_DELEGATION\",\"full_name\":\"cdparra/loomio-urban-spaces-group16\",\"id\":78,\"mugshot_url\":\"/static/img/agora_default_logo.png\",\"name\":\"loomio-urban-spaces-group16\",\"pretty_name\":\"[LOOMIO]: Urban Spaces Group\",\"short_description\":\"Group discussing urban spaces ideas\",\"url\":\"http://localhost:8000/cdparra/loomio-urban-spaces-group16\"},\"approved_at_date\":\"2015-04-11T02:42:53.758408\",\"archived_at_date\":null,\"comments_policy\":\"ANYONE_CAN_COMMENT\",\"created_at_date\":\"2015-04-11T02:42:53.749058\",\"creator\":\"/api/v1/user/1/\",\"delegated_votes_count\":0,\"delegated_votes_frozen_at_date\":null,\"description\":\"This election is to choose the winning proposal for the issue => ISSUE:Empty lot in telegraph and channing\",\"direct_votes_count\":0,\"election_type\":\"ONE_CHOICE\",\"eligibility\":null,\"frozen_at_date\":null,\"hash\":null,\"id\":122,\"is_approved\":true,\"is_vote_secret\":true,\"last_modified_at_date\":\"2015-04-11T02:42:53.758802\",\"mugshot_url\":\"/static/img/election_new_form_info.png\",\"name\":\"voting-proposals-for-issue-395\",\"parent_election\":null,\"percentage_of_participation\":0.0,\"pretty_name\":\"Voting Proposals for Issue: '395'\",\"questions\":[{\"a\":\"ballot/question\",\"answers\":[{\"a\":\"ballot/answer\",\"details\":\"\",\"url\":\"\",\"value\":\"FINAL PROPOSAL: Garden Proposal 1\"},{\"a\":\"ballot/answer\",\"details\":\"\",\"url\":\"\",\"value\":\"FINAL PROPOSAL: Garden Proposal 2\"},{\"a\":\"ballot/answer\",\"details\":\"\",\"url\":\"\",\"value\":\"FINAL PROPOSAL: Garden Proposal 3\"}],\"max\":1,\"min\":0,\"num_seats\":1,\"question\":\"Which proposal is the best?\",\"question_num\":\"1\",\"randomize_answer_order\":true,\"tally_type\":\"ONE_CHOICE\"}],\"result\":null,\"result_tallied_at_date\":null,\"short_description\":\"<p>This election is to choose the winning proposal for the issue =&gt; ISSUE:Empty lot in telegraph and channing</p>\",\"tiny_hash\":null,\"url\":\"http://localhost:8000/cdparra/loomio-urban-spaces-group16/election/voting-proposals-for-issue-395\",\"user_has_delegated\":false,\"user_perms\":[\"edit_details\",\"begin_election\",\"freeze_election\",\"archive_election\",\"comment\",\"vote_counts\"],\"uuid\":\"7e987ebf-6f40-4f4d-8967-8c6d1f437ea5\",\"voters_frozen_at_date\":null,\"voting_ends_at_date\":null,\"voting_extended_until_date\":null,\"voting_starts_at_date\":null}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}}],"serviceDefinition":{"serviceDefinitionId":3,"name":"Agora","operations":[{"operationDefinitionId":14,"name":"agora","type":"HTTP","method":"POST","parameters":[{"parameterDefinitionId":18,"name":"agora","type":"BODY_PARAM","dataType":"JSON","dataModel":[{"dataModelId":34,"dataKey":"is_vote_secret","annotations":"STRING, REQUIRED","defaultValue":"FALSE","required":true,"list":false,"childDataModel":[]},{"dataModelId":33,"dataKey":"short_description","annotations":"STRING, REQUIRED","defaultValue":"created agora description","required":true,"list":false,"childDataModel":[]},{"dataModelId":32,"dataKey":"pretty_name","annotations":"STRING, REQUIRED","defaultValue":"created-agora","required":true,"list":false,"childDataModel":[]}],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},{"operationDefinitionId":13,"name":"proposals","type":"HTTP","method":"POST","parameters":[{"parameterDefinitionId":17,"name":"proposal","type":"BODY_PARAM","dataType":"JSON","dataModel":[{"dataModelId":31,"dataKey":"closing_at","annotations":"STRING, REQUIRED","defaultValue":"Description of proposal","required":true,"list":false,"childDataModel":[]},{"dataModelId":30,"dataKey":"description","annotations":"STRING, REQUIRED","defaultValue":"Description of proposal","required":true,"list":false,"childDataModel":[]},{"dataModelId":36,"dataKey":"name","annotations":"STRING, REQUIRED","defaultValue":"Name of proposal","required":true,"list":false,"childDataModel":[]},{"dataModelId":35,"dataKey":"discussion_id","annotations":"STRING, REQUIRED","defaultValue":null,"required":true,"list":false,"childDataModel":[]}],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},{"operationDefinitionId":12,"name":"proposals","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":16,"name":"discussion_id","type":"QUERY_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},{"operationDefinitionId":11,"name":"create_election","type":"HTTP","method":"POST","parameters":[{"parameterDefinitionId":15,"name":"actionBody","type":"BODY_PARAM","dataType":"JSON","dataModel":[{"dataModelId":27,"dataKey":"to_date","annotations":"STRING, OPTIONAL, %Y-%m-%dT%H:%M:%S","defaultValue":null,"required":false,"list":false,"childDataModel":[]},{"dataModelId":15,"dataKey":"from_date","annotations":"STRING, OPTIONAL, %Y-%m-%dT%H:%M:%S","defaultValue":null,"required":false,"list":false,"childDataModel":[]},{"dataModelId":14,"dataKey":"is_vote_secret","annotations":"STRING, REQUIRED","defaultValue":"Election pretty_name","required":true,"list":false,"childDataModel":[]},{"dataModelId":13,"dataKey":"pretty_name","annotations":"STRING, REQUIRED","defaultValue":"Election pretty_name","required":true,"list":false,"childDataModel":[]},{"dataModelId":11,"dataKey":"questions","annotations":"STRING, REQUIRED","defaultValue":null,"required":true,"list":true,"childDataModel":[{"dataModelId":22,"dataKey":"answers","annotations":"LIST, REQUIRED","defaultValue":null,"required":true,"list":true,"childDataModel":[{"dataModelId":26,"dataKey":"value","annotations":"STRING, REQUIRED","defaultValue":"foo","required":true,"list":false,"childDataModel":[]},{"dataModelId":25,"dataKey":"details","annotations":"STRING, REQUIRED","defaultValue":"","required":true,"list":false,"childDataModel":[]},{"dataModelId":24,"dataKey":"url","annotations":"STRING, REQUIRED","defaultValue":"","required":true,"list":false,"childDataModel":[]},{"dataModelId":23,"dataKey":"a","annotations":"STRING, REQUIRED","defaultValue":"ballot/answer","required":true,"list":false,"childDataModel":[]}]},{"dataModelId":21,"dataKey":"randomize_answer_order","annotations":"STRING, REQUIRED","defaultValue":"True","required":true,"list":false,"childDataModel":[]},{"dataModelId":20,"dataKey":"min","annotations":"STRING, REQUIRED","defaultValue":"0","required":true,"list":false,"childDataModel":[]},{"dataModelId":19,"dataKey":"max","annotations":"STRING, REQUIRED","defaultValue":"1","required":true,"list":false,"childDataModel":[]},{"dataModelId":18,"dataKey":"tally_type","annotations":"STRING, REQUIRED","defaultValue":"ONE_CHOICE","required":true,"list":false,"childDataModel":[]},{"dataModelId":17,"dataKey":"a","annotations":"STRING, REQUIRED","defaultValue":"ballot/question","required":true,"list":false,"childDataModel":[]},{"dataModelId":16,"dataKey":"question","annotations":"STRING, REQUIRED","defaultValue":"Do you prefer foo or bar?","required":true,"list":false,"childDataModel":[]},{"dataModelId":29,"dataKey":"num_seats","annotations":"STRING, REQUIRED","defaultValue":"1","required":true,"list":false,"childDataModel":[]},{"dataModelId":28,"dataKey":"question_num","annotations":"STRING, REQUIRED","defaultValue":"1","required":true,"list":false,"childDataModel":[]}]},{"dataModelId":10,"dataKey":"description","annotations":"STRING, REQUIRED","defaultValue":"Election description goes here","required":true,"list":false,"childDataModel":[]},{"dataModelId":9,"dataKey":"action","annotations":"STRING, REQUIRED","defaultValue":"create_election","required":true,"list":false,"childDataModel":[]}],"pathOrder":0,"defaultValue":null,"required":false},{"parameterDefinitionId":14,"name":"action","type":"PATH_PARAM","dataType":"INT","dataModel":[],"pathOrder":2,"defaultValue":"action","required":false},{"parameterDefinitionId":13,"name":"agora_id","type":"PATH_PARAM","dataType":"INT","dataModel":[],"pathOrder":1,"defaultValue":null,"required":false},{"parameterDefinitionId":12,"name":"agora","type":"PATH_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":"agora","required":false}],"nameOnPath":false},{"operationDefinitionId":8,"name":"election","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":9,"name":"id","type":"PATH_PARAM","dataType":"INT","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":false},{"operationDefinitionId":7,"name":"agora","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":8,"name":"id","type":"PATH_PARAM","dataType":"INT","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},{"operationDefinitionId":6,"name":"action","type":"HTTP","method":"POST","parameters":[{"parameterDefinitionId":7,"name":"description","type":"BODY_PARAM","dataType":"JSON","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},{"operationDefinitionId":5,"name":"proposals","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":6,"name":"motionId","type":"PATH_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true}]},"operationMappings":{"createElection":"11","createGroup":"14","readElection":"8"},"trailingSlash":true}],"resourceMappings":{},"operationServiceMappings":{"createProposal":{"serviceId":2,"name":"Loomio","baseUrl":"http://localhost:4001/api/v1","auth":[{"serviceAuthenticationId":2,"authType":"COOKIE","token":"MVh4dXBZamgxaGZWdHpoSUlkVWZwTjBEOWVIYmVvaTJMM0hpYXp2MDZhNHZjeW1rOVZJUFZ0MUtXZW45OXIxaElnaVd4SGFtZjR2bWZYaVFFN0ZuU0w4ZnNxMW8za2FDdFB3U20rT2NlU0RURXZ6VTlTVUF3NU9wb2ZZTDF2b0VWcTRtaTdnQU01TkRTbTRUQytEQ0IrNEJjMVVGeExnRERVVG1XWlU2TUt4UkQ5OFo5Y3gyRUloMkZqMzF6SXZGWDhLS3NNb2ZjdGV4bjdUb3AxQ1NYTWhWREJZSE1Bb2hrNVRVeXlvaGxZQUloekROS0lvano0aXE4U1lEQWs2QTRpbHcwK2hjTFdQWmM3Z0F0OG44cFp2c2ZmWDdCREJhdXI0Z1Rpa3ZmelMzTjFZQ0JwaXpjZ01JZTF1YkhIUEdCMmZsRnIvRmxTSlJteDBOa3lGRU1FejdEamV2eFZtTVpKaVpURnFrYkRRQWl6TDNzTmJNTWVmQmpvZjZHNlhVVW53U3RMb1RtdUVnSVhFeTd0UUxkUT09LS1nd0RYNWJpakJYMnZUMVlLb1R6a2hBPT0%3D--f392e285a192d44e361eebab8719dbc2cfa9f7b7","tokenInjection":"Cookie","tokenParamName":"_loomio"}],"operations":[{"serviceOperationId":8,"appCivistOperation":"createDiscussion","expectedResource":null,"definition":{"operationDefinitionId":9,"name":"discussions","type":"HTTP","method":"POST","parameters":[{"parameterDefinitionId":10,"name":"discussion","type":"BODY_PARAM","dataType":"JSON","dataModel":[{"dataModelId":8,"dataKey":"group_id","annotations":"INT, REQUIRED","defaultValue":null,"required":true,"list":false,"childDataModel":[]},{"dataModelId":7,"dataKey":"private","annotations":"STRING, REQUIRED","defaultValue":"false","required":true,"list":false,"childDataModel":[]},{"dataModelId":6,"dataKey":"description","annotations":"STRING, REQUIRED","defaultValue":"Discussion description goes here","required":false,"list":false,"childDataModel":[]},{"dataModelId":5,"dataKey":"title","annotations":"STRING, REQUIRED","defaultValue":"Title of discussion goes here","required":true,"list":false,"childDataModel":[]}],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},"parameters":[]},{"serviceOperationId":7,"appCivistOperation":"createElection","expectedResource":null,"definition":{"operationDefinitionId":6,"name":"action","type":"HTTP","method":"POST","parameters":[{"parameterDefinitionId":7,"name":"description","type":"BODY_PARAM","dataType":"JSON","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},"parameters":[]},{"serviceOperationId":6,"appCivistOperation":"createProposal","expectedResource":null,"definition":{"operationDefinitionId":2,"name":"createPad","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":3,"name":"text","type":"QUERY_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false},{"parameterDefinitionId":2,"name":"padID","type":"QUERY_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},"parameters":[]},{"serviceOperationId":5,"appCivistOperation":"readProposal","expectedResource":null,"definition":{"operationDefinitionId":1,"name":"getText","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":1,"name":"padID","type":"QUERY_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},"parameters":[]},{"serviceOperationId":4,"appCivistOperation":"readDiscussion","expectedResource":null,"definition":{"operationDefinitionId":4,"name":"discussions","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":5,"name":"key","type":"PATH_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},"parameters":[]},{"serviceOperationId":3,"appCivistOperation":"readGroup","expectedResource":null,"definition":{"operationDefinitionId":3,"name":"groups","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":4,"name":"groupId","type":"PATH_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},"parameters":[]}],"resources":[{"serviceResourceId":4,"url":"/api/v1/motion/5l1yrCV7","type":"PROPOSAL","keyValue":"5l1yrCV7","keyName":"motionId","body":null,"parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":3,"url":"/api/v1/discussions/sxiOKaJo","type":"DISCUSSION","keyValue":"sxiOKaJo","keyName":"discussionId","body":null,"parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":2,"url":"/api/v1/groups/hkP4Bvtn","type":"GROUP","keyValue":"hkP4Bvtn","keyName":"groupId","body":null,"parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:4001/api/v1/groups","type":"GROUP","keyValue":null,"keyName":null,"body":"{\"groups\":[{\"id\":139,\"key\":\"LtfMiFS6\",\"name\":\"[LOOMIO]: Urban Spaces Group\",\"created_at\":\"2015-04-11T00:42:52.447Z\",\"description\":\"Group discussing urban spaces ideas\",\"members_can_add_members\":false,\"members_can_create_subgroups\":true,\"members_can_start_discussions\":true,\"members_can_edit_discussions\":true,\"members_can_edit_comments\":true,\"members_can_raise_proposals\":true,\"members_can_vote\":true,\"visible_to\":\"members\",\"membership_granted_upon\":\"approval\",\"discussion_privacy_options\":\"private_only\",\"logo_url_medium\":\"default-logo-medium.png\",\"cover_url_desktop\":\"default-cover-photo.png\",\"parent_id\":null}]}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:4001/api/v1/discussions","type":"ISSUE","keyValue":null,"keyName":null,"body":"{\"users\":[{\"id\":2,\"name\":\"James Proposer\",\"username\":\"jamesproposer\",\"avatar_initials\":\"JP\",\"avatar_kind\":\"initials\",\"avatar_url\":\"/uploaded_avatars/medium/missing.png\",\"profile_url\":\"/uploaded_avatars/large/missing.png\"}],\"groups\":[{\"id\":139,\"key\":\"LtfMiFS6\",\"name\":\"[LOOMIO]: Urban Spaces Group\",\"created_at\":\"2015-04-11T00:42:52.447Z\",\"description\":\"Group discussing urban spaces ideas\",\"members_can_add_members\":false,\"members_can_create_subgroups\":true,\"members_can_start_discussions\":true,\"members_can_edit_discussions\":true,\"members_can_edit_comments\":true,\"members_can_raise_proposals\":true,\"members_can_vote\":true,\"visible_to\":\"members\",\"membership_granted_upon\":\"approval\",\"discussion_privacy_options\":\"private_only\",\"logo_url_medium\":\"default-logo-medium.png\",\"cover_url_desktop\":\"default-cover-photo.png\",\"parent_id\":null}],\"proposals\":[],\"discussions\":[{\"id\":395,\"key\":\"5tDT8i7I\",\"title\":\"ISSUE:Empty lot in telegraph and channing\",\"description\":\"How might we best use the empty lot?\",\"last_activity_at\":\"2015-04-11T00:42:52.922Z\",\"created_at\":\"2015-04-11T00:42:52.911Z\",\"updated_at\":\"2015-04-11T00:42:52.925Z\",\"items_count\":0,\"comments_count\":0,\"private\":true,\"author_id\":2,\"group_id\":139,\"active_proposal_id\":null}]}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:4001/api/v1/discussions","type":"DISCUSSION","keyValue":null,"keyName":null,"body":"{\"users\":[{\"id\":2,\"name\":\"James Proposer\",\"username\":\"jamesproposer\",\"avatar_initials\":\"JP\",\"avatar_kind\":\"initials\",\"avatar_url\":\"/uploaded_avatars/medium/missing.png\",\"profile_url\":\"/uploaded_avatars/large/missing.png\"}],\"groups\":[{\"id\":139,\"key\":\"LtfMiFS6\",\"name\":\"[LOOMIO]: Urban Spaces Group\",\"created_at\":\"2015-04-11T00:42:52.447Z\",\"description\":\"Group discussing urban spaces ideas\",\"members_can_add_members\":false,\"members_can_create_subgroups\":true,\"members_can_start_discussions\":true,\"members_can_edit_discussions\":true,\"members_can_edit_comments\":true,\"members_can_raise_proposals\":true,\"members_can_vote\":true,\"visible_to\":\"members\",\"membership_granted_upon\":\"approval\",\"discussion_privacy_options\":\"private_only\",\"logo_url_medium\":\"default-logo-medium.png\",\"cover_url_desktop\":\"default-cover-photo.png\",\"parent_id\":null}],\"proposals\":[],\"discussions\":[{\"id\":396,\"key\":\"Tm7nBWgt\",\"title\":\"Garden Proposal 1\",\"description\":\"Let's make a Garden! 1\",\"last_activity_at\":\"2015-04-11T00:42:53.034Z\",\"created_at\":\"2015-04-11T00:42:53.022Z\",\"updated_at\":\"2015-04-11T00:42:53.037Z\",\"items_count\":0,\"comments_count\":0,\"private\":true,\"author_id\":2,\"group_id\":139,\"active_proposal_id\":null}]}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:4001/api/v1/discussions","type":"DISCUSSION","keyValue":null,"keyName":null,"body":"{\"users\":[{\"id\":2,\"name\":\"James Proposer\",\"username\":\"jamesproposer\",\"avatar_initials\":\"JP\",\"avatar_kind\":\"initials\",\"avatar_url\":\"/uploaded_avatars/medium/missing.png\",\"profile_url\":\"/uploaded_avatars/large/missing.png\"}],\"groups\":[{\"id\":139,\"key\":\"LtfMiFS6\",\"name\":\"[LOOMIO]: Urban Spaces Group\",\"created_at\":\"2015-04-11T00:42:52.447Z\",\"description\":\"Group discussing urban spaces ideas\",\"members_can_add_members\":false,\"members_can_create_subgroups\":true,\"members_can_start_discussions\":true,\"members_can_edit_discussions\":true,\"members_can_edit_comments\":true,\"members_can_raise_proposals\":true,\"members_can_vote\":true,\"visible_to\":\"members\",\"membership_granted_upon\":\"approval\",\"discussion_privacy_options\":\"private_only\",\"logo_url_medium\":\"default-logo-medium.png\",\"cover_url_desktop\":\"default-cover-photo.png\",\"parent_id\":null}],\"proposals\":[],\"discussions\":[{\"id\":397,\"key\":\"jAhxwI9F\",\"title\":\"Garden Proposal 2\",\"description\":\"Let's make a Garden! 2\",\"last_activity_at\":\"2015-04-11T00:42:53.127Z\",\"created_at\":\"2015-04-11T00:42:53.119Z\",\"updated_at\":\"2015-04-11T00:42:53.130Z\",\"items_count\":0,\"comments_count\":0,\"private\":true,\"author_id\":2,\"group_id\":139,\"active_proposal_id\":null}]}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:4001/api/v1/discussions","type":"DISCUSSION","keyValue":null,"keyName":null,"body":"{\"users\":[{\"id\":2,\"name\":\"James Proposer\",\"username\":\"jamesproposer\",\"avatar_initials\":\"JP\",\"avatar_kind\":\"initials\",\"avatar_url\":\"/uploaded_avatars/medium/missing.png\",\"profile_url\":\"/uploaded_avatars/large/missing.png\"}],\"groups\":[{\"id\":139,\"key\":\"LtfMiFS6\",\"name\":\"[LOOMIO]: Urban Spaces Group\",\"created_at\":\"2015-04-11T00:42:52.447Z\",\"description\":\"Group discussing urban spaces ideas\",\"members_can_add_members\":false,\"members_can_create_subgroups\":true,\"members_can_start_discussions\":true,\"members_can_edit_discussions\":true,\"members_can_edit_comments\":true,\"members_can_raise_proposals\":true,\"members_can_vote\":true,\"visible_to\":\"members\",\"membership_granted_upon\":\"approval\",\"discussion_privacy_options\":\"private_only\",\"logo_url_medium\":\"default-logo-medium.png\",\"cover_url_desktop\":\"default-cover-photo.png\",\"parent_id\":null}],\"proposals\":[],\"discussions\":[{\"id\":398,\"key\":\"whAiVJDg\",\"title\":\"Garden Proposal 3\",\"description\":\"Let's make a Garden! 3\",\"last_activity_at\":\"2015-04-11T00:42:53.233Z\",\"created_at\":\"2015-04-11T00:42:53.219Z\",\"updated_at\":\"2015-04-11T00:42:53.235Z\",\"items_count\":0,\"comments_count\":0,\"private\":true,\"author_id\":2,\"group_id\":139,\"active_proposal_id\":null}]}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:4001/api/v1/proposals","type":"PROPOSAL","keyValue":null,"keyName":null,"body":"{\"users\":[{\"id\":2,\"name\":\"James Proposer\",\"username\":\"jamesproposer\",\"avatar_initials\":\"JP\",\"avatar_kind\":\"initials\",\"avatar_url\":\"/uploaded_avatars/medium/missing.png\",\"profile_url\":\"/uploaded_avatars/large/missing.png\"}],\"proposals\":[{\"id\":282,\"discussion_id\":396,\"name\":\"FINAL PROPOSAL: Garden Proposal 1\",\"description\":\"The proposal is: Let's make a Garden! 1\",\"outcome\":null,\"activity_count\":0,\"did_not_votes_count\":null,\"created_at\":\"2015-04-11T00:42:53.309Z\",\"updated_at\":\"2015-04-11T00:42:53.309Z\",\"closing_at\":\"2015-04-10T00:00:00.000Z\",\"closed_at\":null,\"last_vote_at\":null,\"vote_counts\":{\"yes\":0,\"abstain\":0,\"no\":0,\"block\":0},\"author_id\":2,\"outcome_author_id\":null}]}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:4001/api/v1/proposals","type":"PROPOSAL","keyValue":null,"keyName":null,"body":"{\"users\":[{\"id\":2,\"name\":\"James Proposer\",\"username\":\"jamesproposer\",\"avatar_initials\":\"JP\",\"avatar_kind\":\"initials\",\"avatar_url\":\"/uploaded_avatars/medium/missing.png\",\"profile_url\":\"/uploaded_avatars/large/missing.png\"}],\"proposals\":[{\"id\":283,\"discussion_id\":397,\"name\":\"FINAL PROPOSAL: Garden Proposal 2\",\"description\":\"The proposal is: Let's make a Garden! 2\",\"outcome\":null,\"activity_count\":0,\"did_not_votes_count\":null,\"created_at\":\"2015-04-11T00:42:53.399Z\",\"updated_at\":\"2015-04-11T00:42:53.399Z\",\"closing_at\":\"2015-04-10T00:00:00.000Z\",\"closed_at\":null,\"last_vote_at\":null,\"vote_counts\":{\"yes\":0,\"abstain\":0,\"no\":0,\"block\":0},\"author_id\":2,\"outcome_author_id\":null}]}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:4001/api/v1/proposals","type":"PROPOSAL","keyValue":null,"keyName":null,"body":"{\"users\":[{\"id\":2,\"name\":\"James Proposer\",\"username\":\"jamesproposer\",\"avatar_initials\":\"JP\",\"avatar_kind\":\"initials\",\"avatar_url\":\"/uploaded_avatars/medium/missing.png\",\"profile_url\":\"/uploaded_avatars/large/missing.png\"}],\"proposals\":[{\"id\":284,\"discussion_id\":398,\"name\":\"FINAL PROPOSAL: Garden Proposal 3\",\"description\":\"The proposal is: Let's make a Garden! 3\",\"outcome\":null,\"activity_count\":0,\"did_not_votes_count\":null,\"created_at\":\"2015-04-11T00:42:53.484Z\",\"updated_at\":\"2015-04-11T00:42:53.484Z\",\"closing_at\":\"2015-04-10T00:00:00.000Z\",\"closed_at\":null,\"last_vote_at\":null,\"vote_counts\":{\"yes\":0,\"abstain\":0,\"no\":0,\"block\":0},\"author_id\":2,\"outcome_author_id\":null}]}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}}],"serviceDefinition":{"serviceDefinitionId":2,"name":"Loomio","operations":[{"operationDefinitionId":10,"name":"groups","type":"HTTP","method":"POST","parameters":[{"parameterDefinitionId":11,"name":"group","type":"BODY_PARAM","dataType":"JSON","dataModel":[{"dataModelId":4,"dataKey":"discussion_privacy_options","annotations":"STRING, REQUIRED","defaultValue":"public","required":true,"list":false,"childDataModel":[]},{"dataModelId":3,"dataKey":"visible_to","annotations":"STRING, REQUIRED","defaultValue":"public","required":true,"list":false,"childDataModel":[]},{"dataModelId":2,"dataKey":"description","annotations":"STRING, REQUIRED","defaultValue":"Group description goes here","required":true,"list":false,"childDataModel":[]},{"dataModelId":1,"dataKey":"name","annotations":"STRING, REQUIRED","defaultValue":"Group name goes here","required":true,"list":false,"childDataModel":[]}],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},{"operationDefinitionId":9,"name":"discussions","type":"HTTP","method":"POST","parameters":[{"parameterDefinitionId":10,"name":"discussion","type":"BODY_PARAM","dataType":"JSON","dataModel":[{"dataModelId":8,"dataKey":"group_id","annotations":"INT, REQUIRED","defaultValue":null,"required":true,"list":false,"childDataModel":[]},{"dataModelId":7,"dataKey":"private","annotations":"STRING, REQUIRED","defaultValue":"false","required":true,"list":false,"childDataModel":[]},{"dataModelId":6,"dataKey":"description","annotations":"STRING, REQUIRED","defaultValue":"Discussion description goes here","required":false,"list":false,"childDataModel":[]},{"dataModelId":5,"dataKey":"title","annotations":"STRING, REQUIRED","defaultValue":"Title of discussion goes here","required":true,"list":false,"childDataModel":[]}],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},{"operationDefinitionId":4,"name":"discussions","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":5,"name":"key","type":"PATH_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},{"operationDefinitionId":3,"name":"groups","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":4,"name":"groupId","type":"PATH_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true}]},"operationMappings":{"createProposal":"13","createGroup":"10","createDiscussion":"9"},"trailingSlash":false},"createElection":{"serviceId":3,"name":"Agora","baseUrl":"http://localhost:8000/api/v1","auth":[{"serviceAuthenticationId":5,"authType":"COOKIE","token":"tFvhI9SFsWmH3lMmcdip9MaLfr49wVt6","tokenInjection":"Cookie","tokenParamName":"csrftoken"},{"serviceAuthenticationId":4,"authType":"TOKEN","token":"tFvhI9SFsWmH3lMmcdip9MaLfr49wVt6","tokenInjection":"HEADER","tokenParamName":"X-CSRFToken"},{"serviceAuthenticationId":3,"authType":"TOKEN","token":"ApiKey cdparra:2cea7838eaa75a61a45c96042cf4d5e8cc625e00","tokenInjection":"HEADER","tokenParamName":"Authorization"}],"operations":[],"resources":[{"serviceResourceId":6,"url":"/api/v1/action/election/4","type":"ELECTION","keyValue":"4","keyName":"electionId","body":null,"parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":5,"url":"/api/v1/action/agora/1","type":"GROUP","keyValue":"1","keyName":"groupId","body":null,"parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:8000/api/v1/agora/","type":"GROUP","keyValue":null,"keyName":null,"body":"{\"archived_at_date\":null,\"biography\":\"\",\"comments_policy\":\"ANYONE_CAN_COMMENT\",\"created_at_date\":\"2015-04-11T02:42:53.610995\",\"creator\":{\"content_type\":\"user\",\"first_name\":\"Cristhian\",\"full_name\":\"Cristhian\",\"id\":1,\"mugshot_url\":\"http://www.gravatar.com/avatar/4f091ef04611939a6438507e10a2661c?s=50&d=https%3A%2F%2Funitials.com%2Fmugshot%2F50%2FC.png\",\"short_description\":\"Human Being\",\"url\":\"/user/cdparra\",\"username\":\"cdparra\"},\"delegation_policy\":\"ALLOW_DELEGATION\",\"election_type\":\"SIMPLE_DELEGATION\",\"eligibility\":null,\"extra_data\":null,\"full_name\":\"cdparra/loomio-urban-spaces-group16\",\"id\":78,\"image_url\":\"\",\"is_vote_secret\":false,\"members_count\":1,\"membership_policy\":\"ANYONE_CAN_JOIN\",\"mugshot_url\":\"/static/img/agora_default_logo.png\",\"name\":\"loomio-urban-spaces-group16\",\"open_elections_count\":0,\"pretty_name\":\"[LOOMIO]: Urban Spaces Group\",\"short_description\":\"Group discussing urban spaces ideas\",\"url\":\"http://localhost:8000/cdparra/loomio-urban-spaces-group16\"}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:8000/api/v1/agora/78/action/","type":"ELECTION","keyValue":null,"keyName":null,"body":"{\"agora\":{\"content_type\":\"agora\",\"delegation_policy\":\"ALLOW_DELEGATION\",\"full_name\":\"cdparra/loomio-urban-spaces-group16\",\"id\":78,\"mugshot_url\":\"/static/img/agora_default_logo.png\",\"name\":\"loomio-urban-spaces-group16\",\"pretty_name\":\"[LOOMIO]: Urban Spaces Group\",\"short_description\":\"Group discussing urban spaces ideas\",\"url\":\"http://localhost:8000/cdparra/loomio-urban-spaces-group16\"},\"approved_at_date\":\"2015-04-11T02:42:53.758408\",\"archived_at_date\":null,\"comments_policy\":\"ANYONE_CAN_COMMENT\",\"created_at_date\":\"2015-04-11T02:42:53.749058\",\"creator\":\"/api/v1/user/1/\",\"delegated_votes_count\":0,\"delegated_votes_frozen_at_date\":null,\"description\":\"This election is to choose the winning proposal for the issue => ISSUE:Empty lot in telegraph and channing\",\"direct_votes_count\":0,\"election_type\":\"ONE_CHOICE\",\"eligibility\":null,\"frozen_at_date\":null,\"hash\":null,\"id\":122,\"is_approved\":true,\"is_vote_secret\":true,\"last_modified_at_date\":\"2015-04-11T02:42:53.758802\",\"mugshot_url\":\"/static/img/election_new_form_info.png\",\"name\":\"voting-proposals-for-issue-395\",\"parent_election\":null,\"percentage_of_participation\":0.0,\"pretty_name\":\"Voting Proposals for Issue: '395'\",\"questions\":[{\"a\":\"ballot/question\",\"answers\":[{\"a\":\"ballot/answer\",\"details\":\"\",\"url\":\"\",\"value\":\"FINAL PROPOSAL: Garden Proposal 1\"},{\"a\":\"ballot/answer\",\"details\":\"\",\"url\":\"\",\"value\":\"FINAL PROPOSAL: Garden Proposal 2\"},{\"a\":\"ballot/answer\",\"details\":\"\",\"url\":\"\",\"value\":\"FINAL PROPOSAL: Garden Proposal 3\"}],\"max\":1,\"min\":0,\"num_seats\":1,\"question\":\"Which proposal is the best?\",\"question_num\":\"1\",\"randomize_answer_order\":true,\"tally_type\":\"ONE_CHOICE\"}],\"result\":null,\"result_tallied_at_date\":null,\"short_description\":\"<p>This election is to choose the winning proposal for the issue =&gt; ISSUE:Empty lot in telegraph and channing</p>\",\"tiny_hash\":null,\"url\":\"http://localhost:8000/cdparra/loomio-urban-spaces-group16/election/voting-proposals-for-issue-395\",\"user_has_delegated\":false,\"user_perms\":[\"edit_details\",\"begin_election\",\"freeze_election\",\"archive_election\",\"comment\",\"vote_counts\"],\"uuid\":\"7e987ebf-6f40-4f4d-8967-8c6d1f437ea5\",\"voters_frozen_at_date\":null,\"voting_ends_at_date\":null,\"voting_extended_until_date\":null,\"voting_starts_at_date\":null}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}}],"serviceDefinition":{"serviceDefinitionId":3,"name":"Agora","operations":[{"operationDefinitionId":14,"name":"agora","type":"HTTP","method":"POST","parameters":[{"parameterDefinitionId":18,"name":"agora","type":"BODY_PARAM","dataType":"JSON","dataModel":[{"dataModelId":34,"dataKey":"is_vote_secret","annotations":"STRING, REQUIRED","defaultValue":"FALSE","required":true,"list":false,"childDataModel":[]},{"dataModelId":33,"dataKey":"short_description","annotations":"STRING, REQUIRED","defaultValue":"created agora description","required":true,"list":false,"childDataModel":[]},{"dataModelId":32,"dataKey":"pretty_name","annotations":"STRING, REQUIRED","defaultValue":"created-agora","required":true,"list":false,"childDataModel":[]}],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},{"operationDefinitionId":13,"name":"proposals","type":"HTTP","method":"POST","parameters":[{"parameterDefinitionId":17,"name":"proposal","type":"BODY_PARAM","dataType":"JSON","dataModel":[{"dataModelId":31,"dataKey":"closing_at","annotations":"STRING, REQUIRED","defaultValue":"Description of proposal","required":true,"list":false,"childDataModel":[]},{"dataModelId":30,"dataKey":"description","annotations":"STRING, REQUIRED","defaultValue":"Description of proposal","required":true,"list":false,"childDataModel":[]},{"dataModelId":36,"dataKey":"name","annotations":"STRING, REQUIRED","defaultValue":"Name of proposal","required":true,"list":false,"childDataModel":[]},{"dataModelId":35,"dataKey":"discussion_id","annotations":"STRING, REQUIRED","defaultValue":null,"required":true,"list":false,"childDataModel":[]}],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},{"operationDefinitionId":12,"name":"proposals","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":16,"name":"discussion_id","type":"QUERY_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},{"operationDefinitionId":11,"name":"create_election","type":"HTTP","method":"POST","parameters":[{"parameterDefinitionId":15,"name":"actionBody","type":"BODY_PARAM","dataType":"JSON","dataModel":[{"dataModelId":27,"dataKey":"to_date","annotations":"STRING, OPTIONAL, %Y-%m-%dT%H:%M:%S","defaultValue":null,"required":false,"list":false,"childDataModel":[]},{"dataModelId":15,"dataKey":"from_date","annotations":"STRING, OPTIONAL, %Y-%m-%dT%H:%M:%S","defaultValue":null,"required":false,"list":false,"childDataModel":[]},{"dataModelId":14,"dataKey":"is_vote_secret","annotations":"STRING, REQUIRED","defaultValue":"Election pretty_name","required":true,"list":false,"childDataModel":[]},{"dataModelId":13,"dataKey":"pretty_name","annotations":"STRING, REQUIRED","defaultValue":"Election pretty_name","required":true,"list":false,"childDataModel":[]},{"dataModelId":11,"dataKey":"questions","annotations":"STRING, REQUIRED","defaultValue":null,"required":true,"list":true,"childDataModel":[{"dataModelId":22,"dataKey":"answers","annotations":"LIST, REQUIRED","defaultValue":null,"required":true,"list":true,"childDataModel":[{"dataModelId":26,"dataKey":"value","annotations":"STRING, REQUIRED","defaultValue":"foo","required":true,"list":false,"childDataModel":[]},{"dataModelId":25,"dataKey":"details","annotations":"STRING, REQUIRED","defaultValue":"","required":true,"list":false,"childDataModel":[]},{"dataModelId":24,"dataKey":"url","annotations":"STRING, REQUIRED","defaultValue":"","required":true,"list":false,"childDataModel":[]},{"dataModelId":23,"dataKey":"a","annotations":"STRING, REQUIRED","defaultValue":"ballot/answer","required":true,"list":false,"childDataModel":[]}]},{"dataModelId":21,"dataKey":"randomize_answer_order","annotations":"STRING, REQUIRED","defaultValue":"True","required":true,"list":false,"childDataModel":[]},{"dataModelId":20,"dataKey":"min","annotations":"STRING, REQUIRED","defaultValue":"0","required":true,"list":false,"childDataModel":[]},{"dataModelId":19,"dataKey":"max","annotations":"STRING, REQUIRED","defaultValue":"1","required":true,"list":false,"childDataModel":[]},{"dataModelId":18,"dataKey":"tally_type","annotations":"STRING, REQUIRED","defaultValue":"ONE_CHOICE","required":true,"list":false,"childDataModel":[]},{"dataModelId":17,"dataKey":"a","annotations":"STRING, REQUIRED","defaultValue":"ballot/question","required":true,"list":false,"childDataModel":[]},{"dataModelId":16,"dataKey":"question","annotations":"STRING, REQUIRED","defaultValue":"Do you prefer foo or bar?","required":true,"list":false,"childDataModel":[]},{"dataModelId":29,"dataKey":"num_seats","annotations":"STRING, REQUIRED","defaultValue":"1","required":true,"list":false,"childDataModel":[]},{"dataModelId":28,"dataKey":"question_num","annotations":"STRING, REQUIRED","defaultValue":"1","required":true,"list":false,"childDataModel":[]}]},{"dataModelId":10,"dataKey":"description","annotations":"STRING, REQUIRED","defaultValue":"Election description goes here","required":true,"list":false,"childDataModel":[]},{"dataModelId":9,"dataKey":"action","annotations":"STRING, REQUIRED","defaultValue":"create_election","required":true,"list":false,"childDataModel":[]}],"pathOrder":0,"defaultValue":null,"required":false},{"parameterDefinitionId":14,"name":"action","type":"PATH_PARAM","dataType":"INT","dataModel":[],"pathOrder":2,"defaultValue":"action","required":false},{"parameterDefinitionId":13,"name":"agora_id","type":"PATH_PARAM","dataType":"INT","dataModel":[],"pathOrder":1,"defaultValue":null,"required":false},{"parameterDefinitionId":12,"name":"agora","type":"PATH_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":"agora","required":false}],"nameOnPath":false},{"operationDefinitionId":8,"name":"election","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":9,"name":"id","type":"PATH_PARAM","dataType":"INT","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":false},{"operationDefinitionId":7,"name":"agora","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":8,"name":"id","type":"PATH_PARAM","dataType":"INT","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},{"operationDefinitionId":6,"name":"action","type":"HTTP","method":"POST","parameters":[{"parameterDefinitionId":7,"name":"description","type":"BODY_PARAM","dataType":"JSON","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},{"operationDefinitionId":5,"name":"proposals","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":6,"name":"motionId","type":"PATH_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true}]},"operationMappings":{"createElection":"11","createGroup":"14","readElection":"8"},"trailingSlash":true},"createGroup":{"serviceId":3,"name":"Agora","baseUrl":"http://localhost:8000/api/v1","auth":[{"serviceAuthenticationId":5,"authType":"COOKIE","token":"tFvhI9SFsWmH3lMmcdip9MaLfr49wVt6","tokenInjection":"Cookie","tokenParamName":"csrftoken"},{"serviceAuthenticationId":4,"authType":"TOKEN","token":"tFvhI9SFsWmH3lMmcdip9MaLfr49wVt6","tokenInjection":"HEADER","tokenParamName":"X-CSRFToken"},{"serviceAuthenticationId":3,"authType":"TOKEN","token":"ApiKey cdparra:2cea7838eaa75a61a45c96042cf4d5e8cc625e00","tokenInjection":"HEADER","tokenParamName":"Authorization"}],"operations":[],"resources":[{"serviceResourceId":6,"url":"/api/v1/action/election/4","type":"ELECTION","keyValue":"4","keyName":"electionId","body":null,"parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":5,"url":"/api/v1/action/agora/1","type":"GROUP","keyValue":"1","keyName":"groupId","body":null,"parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:8000/api/v1/agora/","type":"GROUP","keyValue":null,"keyName":null,"body":"{\"archived_at_date\":null,\"biography\":\"\",\"comments_policy\":\"ANYONE_CAN_COMMENT\",\"created_at_date\":\"2015-04-11T02:42:53.610995\",\"creator\":{\"content_type\":\"user\",\"first_name\":\"Cristhian\",\"full_name\":\"Cristhian\",\"id\":1,\"mugshot_url\":\"http://www.gravatar.com/avatar/4f091ef04611939a6438507e10a2661c?s=50&d=https%3A%2F%2Funitials.com%2Fmugshot%2F50%2FC.png\",\"short_description\":\"Human Being\",\"url\":\"/user/cdparra\",\"username\":\"cdparra\"},\"delegation_policy\":\"ALLOW_DELEGATION\",\"election_type\":\"SIMPLE_DELEGATION\",\"eligibility\":null,\"extra_data\":null,\"full_name\":\"cdparra/loomio-urban-spaces-group16\",\"id\":78,\"image_url\":\"\",\"is_vote_secret\":false,\"members_count\":1,\"membership_policy\":\"ANYONE_CAN_JOIN\",\"mugshot_url\":\"/static/img/agora_default_logo.png\",\"name\":\"loomio-urban-spaces-group16\",\"open_elections_count\":0,\"pretty_name\":\"[LOOMIO]: Urban Spaces Group\",\"short_description\":\"Group discussing urban spaces ideas\",\"url\":\"http://localhost:8000/cdparra/loomio-urban-spaces-group16\"}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:8000/api/v1/agora/78/action/","type":"ELECTION","keyValue":null,"keyName":null,"body":"{\"agora\":{\"content_type\":\"agora\",\"delegation_policy\":\"ALLOW_DELEGATION\",\"full_name\":\"cdparra/loomio-urban-spaces-group16\",\"id\":78,\"mugshot_url\":\"/static/img/agora_default_logo.png\",\"name\":\"loomio-urban-spaces-group16\",\"pretty_name\":\"[LOOMIO]: Urban Spaces Group\",\"short_description\":\"Group discussing urban spaces ideas\",\"url\":\"http://localhost:8000/cdparra/loomio-urban-spaces-group16\"},\"approved_at_date\":\"2015-04-11T02:42:53.758408\",\"archived_at_date\":null,\"comments_policy\":\"ANYONE_CAN_COMMENT\",\"created_at_date\":\"2015-04-11T02:42:53.749058\",\"creator\":\"/api/v1/user/1/\",\"delegated_votes_count\":0,\"delegated_votes_frozen_at_date\":null,\"description\":\"This election is to choose the winning proposal for the issue => ISSUE:Empty lot in telegraph and channing\",\"direct_votes_count\":0,\"election_type\":\"ONE_CHOICE\",\"eligibility\":null,\"frozen_at_date\":null,\"hash\":null,\"id\":122,\"is_approved\":true,\"is_vote_secret\":true,\"last_modified_at_date\":\"2015-04-11T02:42:53.758802\",\"mugshot_url\":\"/static/img/election_new_form_info.png\",\"name\":\"voting-proposals-for-issue-395\",\"parent_election\":null,\"percentage_of_participation\":0.0,\"pretty_name\":\"Voting Proposals for Issue: '395'\",\"questions\":[{\"a\":\"ballot/question\",\"answers\":[{\"a\":\"ballot/answer\",\"details\":\"\",\"url\":\"\",\"value\":\"FINAL PROPOSAL: Garden Proposal 1\"},{\"a\":\"ballot/answer\",\"details\":\"\",\"url\":\"\",\"value\":\"FINAL PROPOSAL: Garden Proposal 2\"},{\"a\":\"ballot/answer\",\"details\":\"\",\"url\":\"\",\"value\":\"FINAL PROPOSAL: Garden Proposal 3\"}],\"max\":1,\"min\":0,\"num_seats\":1,\"question\":\"Which proposal is the best?\",\"question_num\":\"1\",\"randomize_answer_order\":true,\"tally_type\":\"ONE_CHOICE\"}],\"result\":null,\"result_tallied_at_date\":null,\"short_description\":\"<p>This election is to choose the winning proposal for the issue =&gt; ISSUE:Empty lot in telegraph and channing</p>\",\"tiny_hash\":null,\"url\":\"http://localhost:8000/cdparra/loomio-urban-spaces-group16/election/voting-proposals-for-issue-395\",\"user_has_delegated\":false,\"user_perms\":[\"edit_details\",\"begin_election\",\"freeze_election\",\"archive_election\",\"comment\",\"vote_counts\"],\"uuid\":\"7e987ebf-6f40-4f4d-8967-8c6d1f437ea5\",\"voters_frozen_at_date\":null,\"voting_ends_at_date\":null,\"voting_extended_until_date\":null,\"voting_starts_at_date\":null}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}}],"serviceDefinition":{"serviceDefinitionId":3,"name":"Agora","operations":[{"operationDefinitionId":14,"name":"agora","type":"HTTP","method":"POST","parameters":[{"parameterDefinitionId":18,"name":"agora","type":"BODY_PARAM","dataType":"JSON","dataModel":[{"dataModelId":34,"dataKey":"is_vote_secret","annotations":"STRING, REQUIRED","defaultValue":"FALSE","required":true,"list":false,"childDataModel":[]},{"dataModelId":33,"dataKey":"short_description","annotations":"STRING, REQUIRED","defaultValue":"created agora description","required":true,"list":false,"childDataModel":[]},{"dataModelId":32,"dataKey":"pretty_name","annotations":"STRING, REQUIRED","defaultValue":"created-agora","required":true,"list":false,"childDataModel":[]}],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},{"operationDefinitionId":13,"name":"proposals","type":"HTTP","method":"POST","parameters":[{"parameterDefinitionId":17,"name":"proposal","type":"BODY_PARAM","dataType":"JSON","dataModel":[{"dataModelId":31,"dataKey":"closing_at","annotations":"STRING, REQUIRED","defaultValue":"Description of proposal","required":true,"list":false,"childDataModel":[]},{"dataModelId":30,"dataKey":"description","annotations":"STRING, REQUIRED","defaultValue":"Description of proposal","required":true,"list":false,"childDataModel":[]},{"dataModelId":36,"dataKey":"name","annotations":"STRING, REQUIRED","defaultValue":"Name of proposal","required":true,"list":false,"childDataModel":[]},{"dataModelId":35,"dataKey":"discussion_id","annotations":"STRING, REQUIRED","defaultValue":null,"required":true,"list":false,"childDataModel":[]}],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},{"operationDefinitionId":12,"name":"proposals","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":16,"name":"discussion_id","type":"QUERY_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},{"operationDefinitionId":11,"name":"create_election","type":"HTTP","method":"POST","parameters":[{"parameterDefinitionId":15,"name":"actionBody","type":"BODY_PARAM","dataType":"JSON","dataModel":[{"dataModelId":27,"dataKey":"to_date","annotations":"STRING, OPTIONAL, %Y-%m-%dT%H:%M:%S","defaultValue":null,"required":false,"list":false,"childDataModel":[]},{"dataModelId":15,"dataKey":"from_date","annotations":"STRING, OPTIONAL, %Y-%m-%dT%H:%M:%S","defaultValue":null,"required":false,"list":false,"childDataModel":[]},{"dataModelId":14,"dataKey":"is_vote_secret","annotations":"STRING, REQUIRED","defaultValue":"Election pretty_name","required":true,"list":false,"childDataModel":[]},{"dataModelId":13,"dataKey":"pretty_name","annotations":"STRING, REQUIRED","defaultValue":"Election pretty_name","required":true,"list":false,"childDataModel":[]},{"dataModelId":11,"dataKey":"questions","annotations":"STRING, REQUIRED","defaultValue":null,"required":true,"list":true,"childDataModel":[{"dataModelId":22,"dataKey":"answers","annotations":"LIST, REQUIRED","defaultValue":null,"required":true,"list":true,"childDataModel":[{"dataModelId":26,"dataKey":"value","annotations":"STRING, REQUIRED","defaultValue":"foo","required":true,"list":false,"childDataModel":[]},{"dataModelId":25,"dataKey":"details","annotations":"STRING, REQUIRED","defaultValue":"","required":true,"list":false,"childDataModel":[]},{"dataModelId":24,"dataKey":"url","annotations":"STRING, REQUIRED","defaultValue":"","required":true,"list":false,"childDataModel":[]},{"dataModelId":23,"dataKey":"a","annotations":"STRING, REQUIRED","defaultValue":"ballot/answer","required":true,"list":false,"childDataModel":[]}]},{"dataModelId":21,"dataKey":"randomize_answer_order","annotations":"STRING, REQUIRED","defaultValue":"True","required":true,"list":false,"childDataModel":[]},{"dataModelId":20,"dataKey":"min","annotations":"STRING, REQUIRED","defaultValue":"0","required":true,"list":false,"childDataModel":[]},{"dataModelId":19,"dataKey":"max","annotations":"STRING, REQUIRED","defaultValue":"1","required":true,"list":false,"childDataModel":[]},{"dataModelId":18,"dataKey":"tally_type","annotations":"STRING, REQUIRED","defaultValue":"ONE_CHOICE","required":true,"list":false,"childDataModel":[]},{"dataModelId":17,"dataKey":"a","annotations":"STRING, REQUIRED","defaultValue":"ballot/question","required":true,"list":false,"childDataModel":[]},{"dataModelId":16,"dataKey":"question","annotations":"STRING, REQUIRED","defaultValue":"Do you prefer foo or bar?","required":true,"list":false,"childDataModel":[]},{"dataModelId":29,"dataKey":"num_seats","annotations":"STRING, REQUIRED","defaultValue":"1","required":true,"list":false,"childDataModel":[]},{"dataModelId":28,"dataKey":"question_num","annotations":"STRING, REQUIRED","defaultValue":"1","required":true,"list":false,"childDataModel":[]}]},{"dataModelId":10,"dataKey":"description","annotations":"STRING, REQUIRED","defaultValue":"Election description goes here","required":true,"list":false,"childDataModel":[]},{"dataModelId":9,"dataKey":"action","annotations":"STRING, REQUIRED","defaultValue":"create_election","required":true,"list":false,"childDataModel":[]}],"pathOrder":0,"defaultValue":null,"required":false},{"parameterDefinitionId":14,"name":"action","type":"PATH_PARAM","dataType":"INT","dataModel":[],"pathOrder":2,"defaultValue":"action","required":false},{"parameterDefinitionId":13,"name":"agora_id","type":"PATH_PARAM","dataType":"INT","dataModel":[],"pathOrder":1,"defaultValue":null,"required":false},{"parameterDefinitionId":12,"name":"agora","type":"PATH_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":"agora","required":false}],"nameOnPath":false},{"operationDefinitionId":8,"name":"election","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":9,"name":"id","type":"PATH_PARAM","dataType":"INT","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":false},{"operationDefinitionId":7,"name":"agora","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":8,"name":"id","type":"PATH_PARAM","dataType":"INT","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},{"operationDefinitionId":6,"name":"action","type":"HTTP","method":"POST","parameters":[{"parameterDefinitionId":7,"name":"description","type":"BODY_PARAM","dataType":"JSON","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},{"operationDefinitionId":5,"name":"proposals","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":6,"name":"motionId","type":"PATH_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true}]},"operationMappings":{"createElection":"11","createGroup":"14","readElection":"8"},"trailingSlash":true},"createIssue":{"serviceId":2,"name":"Loomio","baseUrl":"http://localhost:4001/api/v1","auth":[{"serviceAuthenticationId":2,"authType":"COOKIE","token":"MVh4dXBZamgxaGZWdHpoSUlkVWZwTjBEOWVIYmVvaTJMM0hpYXp2MDZhNHZjeW1rOVZJUFZ0MUtXZW45OXIxaElnaVd4SGFtZjR2bWZYaVFFN0ZuU0w4ZnNxMW8za2FDdFB3U20rT2NlU0RURXZ6VTlTVUF3NU9wb2ZZTDF2b0VWcTRtaTdnQU01TkRTbTRUQytEQ0IrNEJjMVVGeExnRERVVG1XWlU2TUt4UkQ5OFo5Y3gyRUloMkZqMzF6SXZGWDhLS3NNb2ZjdGV4bjdUb3AxQ1NYTWhWREJZSE1Bb2hrNVRVeXlvaGxZQUloekROS0lvano0aXE4U1lEQWs2QTRpbHcwK2hjTFdQWmM3Z0F0OG44cFp2c2ZmWDdCREJhdXI0Z1Rpa3ZmelMzTjFZQ0JwaXpjZ01JZTF1YkhIUEdCMmZsRnIvRmxTSlJteDBOa3lGRU1FejdEamV2eFZtTVpKaVpURnFrYkRRQWl6TDNzTmJNTWVmQmpvZjZHNlhVVW53U3RMb1RtdUVnSVhFeTd0UUxkUT09LS1nd0RYNWJpakJYMnZUMVlLb1R6a2hBPT0%3D--f392e285a192d44e361eebab8719dbc2cfa9f7b7","tokenInjection":"Cookie","tokenParamName":"_loomio"}],"operations":[{"serviceOperationId":8,"appCivistOperation":"createDiscussion","expectedResource":null,"definition":{"operationDefinitionId":9,"name":"discussions","type":"HTTP","method":"POST","parameters":[{"parameterDefinitionId":10,"name":"discussion","type":"BODY_PARAM","dataType":"JSON","dataModel":[{"dataModelId":8,"dataKey":"group_id","annotations":"INT, REQUIRED","defaultValue":null,"required":true,"list":false,"childDataModel":[]},{"dataModelId":7,"dataKey":"private","annotations":"STRING, REQUIRED","defaultValue":"false","required":true,"list":false,"childDataModel":[]},{"dataModelId":6,"dataKey":"description","annotations":"STRING, REQUIRED","defaultValue":"Discussion description goes here","required":false,"list":false,"childDataModel":[]},{"dataModelId":5,"dataKey":"title","annotations":"STRING, REQUIRED","defaultValue":"Title of discussion goes here","required":true,"list":false,"childDataModel":[]}],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},"parameters":[]},{"serviceOperationId":7,"appCivistOperation":"createElection","expectedResource":null,"definition":{"operationDefinitionId":6,"name":"action","type":"HTTP","method":"POST","parameters":[{"parameterDefinitionId":7,"name":"description","type":"BODY_PARAM","dataType":"JSON","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},"parameters":[]},{"serviceOperationId":6,"appCivistOperation":"createProposal","expectedResource":null,"definition":{"operationDefinitionId":2,"name":"createPad","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":3,"name":"text","type":"QUERY_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false},{"parameterDefinitionId":2,"name":"padID","type":"QUERY_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},"parameters":[]},{"serviceOperationId":5,"appCivistOperation":"readProposal","expectedResource":null,"definition":{"operationDefinitionId":1,"name":"getText","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":1,"name":"padID","type":"QUERY_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},"parameters":[]},{"serviceOperationId":4,"appCivistOperation":"readDiscussion","expectedResource":null,"definition":{"operationDefinitionId":4,"name":"discussions","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":5,"name":"key","type":"PATH_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},"parameters":[]},{"serviceOperationId":3,"appCivistOperation":"readGroup","expectedResource":null,"definition":{"operationDefinitionId":3,"name":"groups","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":4,"name":"groupId","type":"PATH_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},"parameters":[]}],"resources":[{"serviceResourceId":4,"url":"/api/v1/motion/5l1yrCV7","type":"PROPOSAL","keyValue":"5l1yrCV7","keyName":"motionId","body":null,"parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":3,"url":"/api/v1/discussions/sxiOKaJo","type":"DISCUSSION","keyValue":"sxiOKaJo","keyName":"discussionId","body":null,"parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":2,"url":"/api/v1/groups/hkP4Bvtn","type":"GROUP","keyValue":"hkP4Bvtn","keyName":"groupId","body":null,"parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:4001/api/v1/groups","type":"GROUP","keyValue":null,"keyName":null,"body":"{\"groups\":[{\"id\":139,\"key\":\"LtfMiFS6\",\"name\":\"[LOOMIO]: Urban Spaces Group\",\"created_at\":\"2015-04-11T00:42:52.447Z\",\"description\":\"Group discussing urban spaces ideas\",\"members_can_add_members\":false,\"members_can_create_subgroups\":true,\"members_can_start_discussions\":true,\"members_can_edit_discussions\":true,\"members_can_edit_comments\":true,\"members_can_raise_proposals\":true,\"members_can_vote\":true,\"visible_to\":\"members\",\"membership_granted_upon\":\"approval\",\"discussion_privacy_options\":\"private_only\",\"logo_url_medium\":\"default-logo-medium.png\",\"cover_url_desktop\":\"default-cover-photo.png\",\"parent_id\":null}]}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:4001/api/v1/discussions","type":"ISSUE","keyValue":null,"keyName":null,"body":"{\"users\":[{\"id\":2,\"name\":\"James Proposer\",\"username\":\"jamesproposer\",\"avatar_initials\":\"JP\",\"avatar_kind\":\"initials\",\"avatar_url\":\"/uploaded_avatars/medium/missing.png\",\"profile_url\":\"/uploaded_avatars/large/missing.png\"}],\"groups\":[{\"id\":139,\"key\":\"LtfMiFS6\",\"name\":\"[LOOMIO]: Urban Spaces Group\",\"created_at\":\"2015-04-11T00:42:52.447Z\",\"description\":\"Group discussing urban spaces ideas\",\"members_can_add_members\":false,\"members_can_create_subgroups\":true,\"members_can_start_discussions\":true,\"members_can_edit_discussions\":true,\"members_can_edit_comments\":true,\"members_can_raise_proposals\":true,\"members_can_vote\":true,\"visible_to\":\"members\",\"membership_granted_upon\":\"approval\",\"discussion_privacy_options\":\"private_only\",\"logo_url_medium\":\"default-logo-medium.png\",\"cover_url_desktop\":\"default-cover-photo.png\",\"parent_id\":null}],\"proposals\":[],\"discussions\":[{\"id\":395,\"key\":\"5tDT8i7I\",\"title\":\"ISSUE:Empty lot in telegraph and channing\",\"description\":\"How might we best use the empty lot?\",\"last_activity_at\":\"2015-04-11T00:42:52.922Z\",\"created_at\":\"2015-04-11T00:42:52.911Z\",\"updated_at\":\"2015-04-11T00:42:52.925Z\",\"items_count\":0,\"comments_count\":0,\"private\":true,\"author_id\":2,\"group_id\":139,\"active_proposal_id\":null}]}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:4001/api/v1/discussions","type":"DISCUSSION","keyValue":null,"keyName":null,"body":"{\"users\":[{\"id\":2,\"name\":\"James Proposer\",\"username\":\"jamesproposer\",\"avatar_initials\":\"JP\",\"avatar_kind\":\"initials\",\"avatar_url\":\"/uploaded_avatars/medium/missing.png\",\"profile_url\":\"/uploaded_avatars/large/missing.png\"}],\"groups\":[{\"id\":139,\"key\":\"LtfMiFS6\",\"name\":\"[LOOMIO]: Urban Spaces Group\",\"created_at\":\"2015-04-11T00:42:52.447Z\",\"description\":\"Group discussing urban spaces ideas\",\"members_can_add_members\":false,\"members_can_create_subgroups\":true,\"members_can_start_discussions\":true,\"members_can_edit_discussions\":true,\"members_can_edit_comments\":true,\"members_can_raise_proposals\":true,\"members_can_vote\":true,\"visible_to\":\"members\",\"membership_granted_upon\":\"approval\",\"discussion_privacy_options\":\"private_only\",\"logo_url_medium\":\"default-logo-medium.png\",\"cover_url_desktop\":\"default-cover-photo.png\",\"parent_id\":null}],\"proposals\":[],\"discussions\":[{\"id\":396,\"key\":\"Tm7nBWgt\",\"title\":\"Garden Proposal 1\",\"description\":\"Let's make a Garden! 1\",\"last_activity_at\":\"2015-04-11T00:42:53.034Z\",\"created_at\":\"2015-04-11T00:42:53.022Z\",\"updated_at\":\"2015-04-11T00:42:53.037Z\",\"items_count\":0,\"comments_count\":0,\"private\":true,\"author_id\":2,\"group_id\":139,\"active_proposal_id\":null}]}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:4001/api/v1/discussions","type":"DISCUSSION","keyValue":null,"keyName":null,"body":"{\"users\":[{\"id\":2,\"name\":\"James Proposer\",\"username\":\"jamesproposer\",\"avatar_initials\":\"JP\",\"avatar_kind\":\"initials\",\"avatar_url\":\"/uploaded_avatars/medium/missing.png\",\"profile_url\":\"/uploaded_avatars/large/missing.png\"}],\"groups\":[{\"id\":139,\"key\":\"LtfMiFS6\",\"name\":\"[LOOMIO]: Urban Spaces Group\",\"created_at\":\"2015-04-11T00:42:52.447Z\",\"description\":\"Group discussing urban spaces ideas\",\"members_can_add_members\":false,\"members_can_create_subgroups\":true,\"members_can_start_discussions\":true,\"members_can_edit_discussions\":true,\"members_can_edit_comments\":true,\"members_can_raise_proposals\":true,\"members_can_vote\":true,\"visible_to\":\"members\",\"membership_granted_upon\":\"approval\",\"discussion_privacy_options\":\"private_only\",\"logo_url_medium\":\"default-logo-medium.png\",\"cover_url_desktop\":\"default-cover-photo.png\",\"parent_id\":null}],\"proposals\":[],\"discussions\":[{\"id\":397,\"key\":\"jAhxwI9F\",\"title\":\"Garden Proposal 2\",\"description\":\"Let's make a Garden! 2\",\"last_activity_at\":\"2015-04-11T00:42:53.127Z\",\"created_at\":\"2015-04-11T00:42:53.119Z\",\"updated_at\":\"2015-04-11T00:42:53.130Z\",\"items_count\":0,\"comments_count\":0,\"private\":true,\"author_id\":2,\"group_id\":139,\"active_proposal_id\":null}]}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:4001/api/v1/discussions","type":"DISCUSSION","keyValue":null,"keyName":null,"body":"{\"users\":[{\"id\":2,\"name\":\"James Proposer\",\"username\":\"jamesproposer\",\"avatar_initials\":\"JP\",\"avatar_kind\":\"initials\",\"avatar_url\":\"/uploaded_avatars/medium/missing.png\",\"profile_url\":\"/uploaded_avatars/large/missing.png\"}],\"groups\":[{\"id\":139,\"key\":\"LtfMiFS6\",\"name\":\"[LOOMIO]: Urban Spaces Group\",\"created_at\":\"2015-04-11T00:42:52.447Z\",\"description\":\"Group discussing urban spaces ideas\",\"members_can_add_members\":false,\"members_can_create_subgroups\":true,\"members_can_start_discussions\":true,\"members_can_edit_discussions\":true,\"members_can_edit_comments\":true,\"members_can_raise_proposals\":true,\"members_can_vote\":true,\"visible_to\":\"members\",\"membership_granted_upon\":\"approval\",\"discussion_privacy_options\":\"private_only\",\"logo_url_medium\":\"default-logo-medium.png\",\"cover_url_desktop\":\"default-cover-photo.png\",\"parent_id\":null}],\"proposals\":[],\"discussions\":[{\"id\":398,\"key\":\"whAiVJDg\",\"title\":\"Garden Proposal 3\",\"description\":\"Let's make a Garden! 3\",\"last_activity_at\":\"2015-04-11T00:42:53.233Z\",\"created_at\":\"2015-04-11T00:42:53.219Z\",\"updated_at\":\"2015-04-11T00:42:53.235Z\",\"items_count\":0,\"comments_count\":0,\"private\":true,\"author_id\":2,\"group_id\":139,\"active_proposal_id\":null}]}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:4001/api/v1/proposals","type":"PROPOSAL","keyValue":null,"keyName":null,"body":"{\"users\":[{\"id\":2,\"name\":\"James Proposer\",\"username\":\"jamesproposer\",\"avatar_initials\":\"JP\",\"avatar_kind\":\"initials\",\"avatar_url\":\"/uploaded_avatars/medium/missing.png\",\"profile_url\":\"/uploaded_avatars/large/missing.png\"}],\"proposals\":[{\"id\":282,\"discussion_id\":396,\"name\":\"FINAL PROPOSAL: Garden Proposal 1\",\"description\":\"The proposal is: Let's make a Garden! 1\",\"outcome\":null,\"activity_count\":0,\"did_not_votes_count\":null,\"created_at\":\"2015-04-11T00:42:53.309Z\",\"updated_at\":\"2015-04-11T00:42:53.309Z\",\"closing_at\":\"2015-04-10T00:00:00.000Z\",\"closed_at\":null,\"last_vote_at\":null,\"vote_counts\":{\"yes\":0,\"abstain\":0,\"no\":0,\"block\":0},\"author_id\":2,\"outcome_author_id\":null}]}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:4001/api/v1/proposals","type":"PROPOSAL","keyValue":null,"keyName":null,"body":"{\"users\":[{\"id\":2,\"name\":\"James Proposer\",\"username\":\"jamesproposer\",\"avatar_initials\":\"JP\",\"avatar_kind\":\"initials\",\"avatar_url\":\"/uploaded_avatars/medium/missing.png\",\"profile_url\":\"/uploaded_avatars/large/missing.png\"}],\"proposals\":[{\"id\":283,\"discussion_id\":397,\"name\":\"FINAL PROPOSAL: Garden Proposal 2\",\"description\":\"The proposal is: Let's make a Garden! 2\",\"outcome\":null,\"activity_count\":0,\"did_not_votes_count\":null,\"created_at\":\"2015-04-11T00:42:53.399Z\",\"updated_at\":\"2015-04-11T00:42:53.399Z\",\"closing_at\":\"2015-04-10T00:00:00.000Z\",\"closed_at\":null,\"last_vote_at\":null,\"vote_counts\":{\"yes\":0,\"abstain\":0,\"no\":0,\"block\":0},\"author_id\":2,\"outcome_author_id\":null}]}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:4001/api/v1/proposals","type":"PROPOSAL","keyValue":null,"keyName":null,"body":"{\"users\":[{\"id\":2,\"name\":\"James Proposer\",\"username\":\"jamesproposer\",\"avatar_initials\":\"JP\",\"avatar_kind\":\"initials\",\"avatar_url\":\"/uploaded_avatars/medium/missing.png\",\"profile_url\":\"/uploaded_avatars/large/missing.png\"}],\"proposals\":[{\"id\":284,\"discussion_id\":398,\"name\":\"FINAL PROPOSAL: Garden Proposal 3\",\"description\":\"The proposal is: Let's make a Garden! 3\",\"outcome\":null,\"activity_count\":0,\"did_not_votes_count\":null,\"created_at\":\"2015-04-11T00:42:53.484Z\",\"updated_at\":\"2015-04-11T00:42:53.484Z\",\"closing_at\":\"2015-04-10T00:00:00.000Z\",\"closed_at\":null,\"last_vote_at\":null,\"vote_counts\":{\"yes\":0,\"abstain\":0,\"no\":0,\"block\":0},\"author_id\":2,\"outcome_author_id\":null}]}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}}],"serviceDefinition":{"serviceDefinitionId":2,"name":"Loomio","operations":[{"operationDefinitionId":10,"name":"groups","type":"HTTP","method":"POST","parameters":[{"parameterDefinitionId":11,"name":"group","type":"BODY_PARAM","dataType":"JSON","dataModel":[{"dataModelId":4,"dataKey":"discussion_privacy_options","annotations":"STRING, REQUIRED","defaultValue":"public","required":true,"list":false,"childDataModel":[]},{"dataModelId":3,"dataKey":"visible_to","annotations":"STRING, REQUIRED","defaultValue":"public","required":true,"list":false,"childDataModel":[]},{"dataModelId":2,"dataKey":"description","annotations":"STRING, REQUIRED","defaultValue":"Group description goes here","required":true,"list":false,"childDataModel":[]},{"dataModelId":1,"dataKey":"name","annotations":"STRING, REQUIRED","defaultValue":"Group name goes here","required":true,"list":false,"childDataModel":[]}],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},{"operationDefinitionId":9,"name":"discussions","type":"HTTP","method":"POST","parameters":[{"parameterDefinitionId":10,"name":"discussion","type":"BODY_PARAM","dataType":"JSON","dataModel":[{"dataModelId":8,"dataKey":"group_id","annotations":"INT, REQUIRED","defaultValue":null,"required":true,"list":false,"childDataModel":[]},{"dataModelId":7,"dataKey":"private","annotations":"STRING, REQUIRED","defaultValue":"false","required":true,"list":false,"childDataModel":[]},{"dataModelId":6,"dataKey":"description","annotations":"STRING, REQUIRED","defaultValue":"Discussion description goes here","required":false,"list":false,"childDataModel":[]},{"dataModelId":5,"dataKey":"title","annotations":"STRING, REQUIRED","defaultValue":"Title of discussion goes here","required":true,"list":false,"childDataModel":[]}],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},{"operationDefinitionId":4,"name":"discussions","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":5,"name":"key","type":"PATH_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},{"operationDefinitionId":3,"name":"groups","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":4,"name":"groupId","type":"PATH_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true}]},"operationMappings":{"createProposal":"13","createGroup":"10","createDiscussion":"9"},"trailingSlash":false},"readElection":{"serviceId":3,"name":"Agora","baseUrl":"http://localhost:8000/api/v1","auth":[{"serviceAuthenticationId":5,"authType":"COOKIE","token":"tFvhI9SFsWmH3lMmcdip9MaLfr49wVt6","tokenInjection":"Cookie","tokenParamName":"csrftoken"},{"serviceAuthenticationId":4,"authType":"TOKEN","token":"tFvhI9SFsWmH3lMmcdip9MaLfr49wVt6","tokenInjection":"HEADER","tokenParamName":"X-CSRFToken"},{"serviceAuthenticationId":3,"authType":"TOKEN","token":"ApiKey cdparra:2cea7838eaa75a61a45c96042cf4d5e8cc625e00","tokenInjection":"HEADER","tokenParamName":"Authorization"}],"operations":[],"resources":[{"serviceResourceId":6,"url":"/api/v1/action/election/4","type":"ELECTION","keyValue":"4","keyName":"electionId","body":null,"parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":5,"url":"/api/v1/action/agora/1","type":"GROUP","keyValue":"1","keyName":"groupId","body":null,"parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:8000/api/v1/agora/","type":"GROUP","keyValue":null,"keyName":null,"body":"{\"archived_at_date\":null,\"biography\":\"\",\"comments_policy\":\"ANYONE_CAN_COMMENT\",\"created_at_date\":\"2015-04-11T02:42:53.610995\",\"creator\":{\"content_type\":\"user\",\"first_name\":\"Cristhian\",\"full_name\":\"Cristhian\",\"id\":1,\"mugshot_url\":\"http://www.gravatar.com/avatar/4f091ef04611939a6438507e10a2661c?s=50&d=https%3A%2F%2Funitials.com%2Fmugshot%2F50%2FC.png\",\"short_description\":\"Human Being\",\"url\":\"/user/cdparra\",\"username\":\"cdparra\"},\"delegation_policy\":\"ALLOW_DELEGATION\",\"election_type\":\"SIMPLE_DELEGATION\",\"eligibility\":null,\"extra_data\":null,\"full_name\":\"cdparra/loomio-urban-spaces-group16\",\"id\":78,\"image_url\":\"\",\"is_vote_secret\":false,\"members_count\":1,\"membership_policy\":\"ANYONE_CAN_JOIN\",\"mugshot_url\":\"/static/img/agora_default_logo.png\",\"name\":\"loomio-urban-spaces-group16\",\"open_elections_count\":0,\"pretty_name\":\"[LOOMIO]: Urban Spaces Group\",\"short_description\":\"Group discussing urban spaces ideas\",\"url\":\"http://localhost:8000/cdparra/loomio-urban-spaces-group16\"}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:8000/api/v1/agora/78/action/","type":"ELECTION","keyValue":null,"keyName":null,"body":"{\"agora\":{\"content_type\":\"agora\",\"delegation_policy\":\"ALLOW_DELEGATION\",\"full_name\":\"cdparra/loomio-urban-spaces-group16\",\"id\":78,\"mugshot_url\":\"/static/img/agora_default_logo.png\",\"name\":\"loomio-urban-spaces-group16\",\"pretty_name\":\"[LOOMIO]: Urban Spaces Group\",\"short_description\":\"Group discussing urban spaces ideas\",\"url\":\"http://localhost:8000/cdparra/loomio-urban-spaces-group16\"},\"approved_at_date\":\"2015-04-11T02:42:53.758408\",\"archived_at_date\":null,\"comments_policy\":\"ANYONE_CAN_COMMENT\",\"created_at_date\":\"2015-04-11T02:42:53.749058\",\"creator\":\"/api/v1/user/1/\",\"delegated_votes_count\":0,\"delegated_votes_frozen_at_date\":null,\"description\":\"This election is to choose the winning proposal for the issue => ISSUE:Empty lot in telegraph and channing\",\"direct_votes_count\":0,\"election_type\":\"ONE_CHOICE\",\"eligibility\":null,\"frozen_at_date\":null,\"hash\":null,\"id\":122,\"is_approved\":true,\"is_vote_secret\":true,\"last_modified_at_date\":\"2015-04-11T02:42:53.758802\",\"mugshot_url\":\"/static/img/election_new_form_info.png\",\"name\":\"voting-proposals-for-issue-395\",\"parent_election\":null,\"percentage_of_participation\":0.0,\"pretty_name\":\"Voting Proposals for Issue: '395'\",\"questions\":[{\"a\":\"ballot/question\",\"answers\":[{\"a\":\"ballot/answer\",\"details\":\"\",\"url\":\"\",\"value\":\"FINAL PROPOSAL: Garden Proposal 1\"},{\"a\":\"ballot/answer\",\"details\":\"\",\"url\":\"\",\"value\":\"FINAL PROPOSAL: Garden Proposal 2\"},{\"a\":\"ballot/answer\",\"details\":\"\",\"url\":\"\",\"value\":\"FINAL PROPOSAL: Garden Proposal 3\"}],\"max\":1,\"min\":0,\"num_seats\":1,\"question\":\"Which proposal is the best?\",\"question_num\":\"1\",\"randomize_answer_order\":true,\"tally_type\":\"ONE_CHOICE\"}],\"result\":null,\"result_tallied_at_date\":null,\"short_description\":\"<p>This election is to choose the winning proposal for the issue =&gt; ISSUE:Empty lot in telegraph and channing</p>\",\"tiny_hash\":null,\"url\":\"http://localhost:8000/cdparra/loomio-urban-spaces-group16/election/voting-proposals-for-issue-395\",\"user_has_delegated\":false,\"user_perms\":[\"edit_details\",\"begin_election\",\"freeze_election\",\"archive_election\",\"comment\",\"vote_counts\"],\"uuid\":\"7e987ebf-6f40-4f4d-8967-8c6d1f437ea5\",\"voters_frozen_at_date\":null,\"voting_ends_at_date\":null,\"voting_extended_until_date\":null,\"voting_starts_at_date\":null}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}}],"serviceDefinition":{"serviceDefinitionId":3,"name":"Agora","operations":[{"operationDefinitionId":14,"name":"agora","type":"HTTP","method":"POST","parameters":[{"parameterDefinitionId":18,"name":"agora","type":"BODY_PARAM","dataType":"JSON","dataModel":[{"dataModelId":34,"dataKey":"is_vote_secret","annotations":"STRING, REQUIRED","defaultValue":"FALSE","required":true,"list":false,"childDataModel":[]},{"dataModelId":33,"dataKey":"short_description","annotations":"STRING, REQUIRED","defaultValue":"created agora description","required":true,"list":false,"childDataModel":[]},{"dataModelId":32,"dataKey":"pretty_name","annotations":"STRING, REQUIRED","defaultValue":"created-agora","required":true,"list":false,"childDataModel":[]}],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},{"operationDefinitionId":13,"name":"proposals","type":"HTTP","method":"POST","parameters":[{"parameterDefinitionId":17,"name":"proposal","type":"BODY_PARAM","dataType":"JSON","dataModel":[{"dataModelId":31,"dataKey":"closing_at","annotations":"STRING, REQUIRED","defaultValue":"Description of proposal","required":true,"list":false,"childDataModel":[]},{"dataModelId":30,"dataKey":"description","annotations":"STRING, REQUIRED","defaultValue":"Description of proposal","required":true,"list":false,"childDataModel":[]},{"dataModelId":36,"dataKey":"name","annotations":"STRING, REQUIRED","defaultValue":"Name of proposal","required":true,"list":false,"childDataModel":[]},{"dataModelId":35,"dataKey":"discussion_id","annotations":"STRING, REQUIRED","defaultValue":null,"required":true,"list":false,"childDataModel":[]}],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},{"operationDefinitionId":12,"name":"proposals","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":16,"name":"discussion_id","type":"QUERY_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},{"operationDefinitionId":11,"name":"create_election","type":"HTTP","method":"POST","parameters":[{"parameterDefinitionId":15,"name":"actionBody","type":"BODY_PARAM","dataType":"JSON","dataModel":[{"dataModelId":27,"dataKey":"to_date","annotations":"STRING, OPTIONAL, %Y-%m-%dT%H:%M:%S","defaultValue":null,"required":false,"list":false,"childDataModel":[]},{"dataModelId":15,"dataKey":"from_date","annotations":"STRING, OPTIONAL, %Y-%m-%dT%H:%M:%S","defaultValue":null,"required":false,"list":false,"childDataModel":[]},{"dataModelId":14,"dataKey":"is_vote_secret","annotations":"STRING, REQUIRED","defaultValue":"Election pretty_name","required":true,"list":false,"childDataModel":[]},{"dataModelId":13,"dataKey":"pretty_name","annotations":"STRING, REQUIRED","defaultValue":"Election pretty_name","required":true,"list":false,"childDataModel":[]},{"dataModelId":11,"dataKey":"questions","annotations":"STRING, REQUIRED","defaultValue":null,"required":true,"list":true,"childDataModel":[{"dataModelId":22,"dataKey":"answers","annotations":"LIST, REQUIRED","defaultValue":null,"required":true,"list":true,"childDataModel":[{"dataModelId":26,"dataKey":"value","annotations":"STRING, REQUIRED","defaultValue":"foo","required":true,"list":false,"childDataModel":[]},{"dataModelId":25,"dataKey":"details","annotations":"STRING, REQUIRED","defaultValue":"","required":true,"list":false,"childDataModel":[]},{"dataModelId":24,"dataKey":"url","annotations":"STRING, REQUIRED","defaultValue":"","required":true,"list":false,"childDataModel":[]},{"dataModelId":23,"dataKey":"a","annotations":"STRING, REQUIRED","defaultValue":"ballot/answer","required":true,"list":false,"childDataModel":[]}]},{"dataModelId":21,"dataKey":"randomize_answer_order","annotations":"STRING, REQUIRED","defaultValue":"True","required":true,"list":false,"childDataModel":[]},{"dataModelId":20,"dataKey":"min","annotations":"STRING, REQUIRED","defaultValue":"0","required":true,"list":false,"childDataModel":[]},{"dataModelId":19,"dataKey":"max","annotations":"STRING, REQUIRED","defaultValue":"1","required":true,"list":false,"childDataModel":[]},{"dataModelId":18,"dataKey":"tally_type","annotations":"STRING, REQUIRED","defaultValue":"ONE_CHOICE","required":true,"list":false,"childDataModel":[]},{"dataModelId":17,"dataKey":"a","annotations":"STRING, REQUIRED","defaultValue":"ballot/question","required":true,"list":false,"childDataModel":[]},{"dataModelId":16,"dataKey":"question","annotations":"STRING, REQUIRED","defaultValue":"Do you prefer foo or bar?","required":true,"list":false,"childDataModel":[]},{"dataModelId":29,"dataKey":"num_seats","annotations":"STRING, REQUIRED","defaultValue":"1","required":true,"list":false,"childDataModel":[]},{"dataModelId":28,"dataKey":"question_num","annotations":"STRING, REQUIRED","defaultValue":"1","required":true,"list":false,"childDataModel":[]}]},{"dataModelId":10,"dataKey":"description","annotations":"STRING, REQUIRED","defaultValue":"Election description goes here","required":true,"list":false,"childDataModel":[]},{"dataModelId":9,"dataKey":"action","annotations":"STRING, REQUIRED","defaultValue":"create_election","required":true,"list":false,"childDataModel":[]}],"pathOrder":0,"defaultValue":null,"required":false},{"parameterDefinitionId":14,"name":"action","type":"PATH_PARAM","dataType":"INT","dataModel":[],"pathOrder":2,"defaultValue":"action","required":false},{"parameterDefinitionId":13,"name":"agora_id","type":"PATH_PARAM","dataType":"INT","dataModel":[],"pathOrder":1,"defaultValue":null,"required":false},{"parameterDefinitionId":12,"name":"agora","type":"PATH_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":"agora","required":false}],"nameOnPath":false},{"operationDefinitionId":8,"name":"election","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":9,"name":"id","type":"PATH_PARAM","dataType":"INT","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":false},{"operationDefinitionId":7,"name":"agora","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":8,"name":"id","type":"PATH_PARAM","dataType":"INT","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},{"operationDefinitionId":6,"name":"action","type":"HTTP","method":"POST","parameters":[{"parameterDefinitionId":7,"name":"description","type":"BODY_PARAM","dataType":"JSON","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},{"operationDefinitionId":5,"name":"proposals","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":6,"name":"motionId","type":"PATH_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true}]},"operationMappings":{"createElection":"11","createGroup":"14","readElection":"8"},"trailingSlash":true},"createDiscussion":{"serviceId":2,"name":"Loomio","baseUrl":"http://localhost:4001/api/v1","auth":[{"serviceAuthenticationId":2,"authType":"COOKIE","token":"MVh4dXBZamgxaGZWdHpoSUlkVWZwTjBEOWVIYmVvaTJMM0hpYXp2MDZhNHZjeW1rOVZJUFZ0MUtXZW45OXIxaElnaVd4SGFtZjR2bWZYaVFFN0ZuU0w4ZnNxMW8za2FDdFB3U20rT2NlU0RURXZ6VTlTVUF3NU9wb2ZZTDF2b0VWcTRtaTdnQU01TkRTbTRUQytEQ0IrNEJjMVVGeExnRERVVG1XWlU2TUt4UkQ5OFo5Y3gyRUloMkZqMzF6SXZGWDhLS3NNb2ZjdGV4bjdUb3AxQ1NYTWhWREJZSE1Bb2hrNVRVeXlvaGxZQUloekROS0lvano0aXE4U1lEQWs2QTRpbHcwK2hjTFdQWmM3Z0F0OG44cFp2c2ZmWDdCREJhdXI0Z1Rpa3ZmelMzTjFZQ0JwaXpjZ01JZTF1YkhIUEdCMmZsRnIvRmxTSlJteDBOa3lGRU1FejdEamV2eFZtTVpKaVpURnFrYkRRQWl6TDNzTmJNTWVmQmpvZjZHNlhVVW53U3RMb1RtdUVnSVhFeTd0UUxkUT09LS1nd0RYNWJpakJYMnZUMVlLb1R6a2hBPT0%3D--f392e285a192d44e361eebab8719dbc2cfa9f7b7","tokenInjection":"Cookie","tokenParamName":"_loomio"}],"operations":[{"serviceOperationId":8,"appCivistOperation":"createDiscussion","expectedResource":null,"definition":{"operationDefinitionId":9,"name":"discussions","type":"HTTP","method":"POST","parameters":[{"parameterDefinitionId":10,"name":"discussion","type":"BODY_PARAM","dataType":"JSON","dataModel":[{"dataModelId":8,"dataKey":"group_id","annotations":"INT, REQUIRED","defaultValue":null,"required":true,"list":false,"childDataModel":[]},{"dataModelId":7,"dataKey":"private","annotations":"STRING, REQUIRED","defaultValue":"false","required":true,"list":false,"childDataModel":[]},{"dataModelId":6,"dataKey":"description","annotations":"STRING, REQUIRED","defaultValue":"Discussion description goes here","required":false,"list":false,"childDataModel":[]},{"dataModelId":5,"dataKey":"title","annotations":"STRING, REQUIRED","defaultValue":"Title of discussion goes here","required":true,"list":false,"childDataModel":[]}],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},"parameters":[]},{"serviceOperationId":7,"appCivistOperation":"createElection","expectedResource":null,"definition":{"operationDefinitionId":6,"name":"action","type":"HTTP","method":"POST","parameters":[{"parameterDefinitionId":7,"name":"description","type":"BODY_PARAM","dataType":"JSON","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},"parameters":[]},{"serviceOperationId":6,"appCivistOperation":"createProposal","expectedResource":null,"definition":{"operationDefinitionId":2,"name":"createPad","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":3,"name":"text","type":"QUERY_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false},{"parameterDefinitionId":2,"name":"padID","type":"QUERY_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},"parameters":[]},{"serviceOperationId":5,"appCivistOperation":"readProposal","expectedResource":null,"definition":{"operationDefinitionId":1,"name":"getText","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":1,"name":"padID","type":"QUERY_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},"parameters":[]},{"serviceOperationId":4,"appCivistOperation":"readDiscussion","expectedResource":null,"definition":{"operationDefinitionId":4,"name":"discussions","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":5,"name":"key","type":"PATH_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},"parameters":[]},{"serviceOperationId":3,"appCivistOperation":"readGroup","expectedResource":null,"definition":{"operationDefinitionId":3,"name":"groups","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":4,"name":"groupId","type":"PATH_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},"parameters":[]}],"resources":[{"serviceResourceId":4,"url":"/api/v1/motion/5l1yrCV7","type":"PROPOSAL","keyValue":"5l1yrCV7","keyName":"motionId","body":null,"parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":3,"url":"/api/v1/discussions/sxiOKaJo","type":"DISCUSSION","keyValue":"sxiOKaJo","keyName":"discussionId","body":null,"parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":2,"url":"/api/v1/groups/hkP4Bvtn","type":"GROUP","keyValue":"hkP4Bvtn","keyName":"groupId","body":null,"parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:4001/api/v1/groups","type":"GROUP","keyValue":null,"keyName":null,"body":"{\"groups\":[{\"id\":139,\"key\":\"LtfMiFS6\",\"name\":\"[LOOMIO]: Urban Spaces Group\",\"created_at\":\"2015-04-11T00:42:52.447Z\",\"description\":\"Group discussing urban spaces ideas\",\"members_can_add_members\":false,\"members_can_create_subgroups\":true,\"members_can_start_discussions\":true,\"members_can_edit_discussions\":true,\"members_can_edit_comments\":true,\"members_can_raise_proposals\":true,\"members_can_vote\":true,\"visible_to\":\"members\",\"membership_granted_upon\":\"approval\",\"discussion_privacy_options\":\"private_only\",\"logo_url_medium\":\"default-logo-medium.png\",\"cover_url_desktop\":\"default-cover-photo.png\",\"parent_id\":null}]}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:4001/api/v1/discussions","type":"ISSUE","keyValue":null,"keyName":null,"body":"{\"users\":[{\"id\":2,\"name\":\"James Proposer\",\"username\":\"jamesproposer\",\"avatar_initials\":\"JP\",\"avatar_kind\":\"initials\",\"avatar_url\":\"/uploaded_avatars/medium/missing.png\",\"profile_url\":\"/uploaded_avatars/large/missing.png\"}],\"groups\":[{\"id\":139,\"key\":\"LtfMiFS6\",\"name\":\"[LOOMIO]: Urban Spaces Group\",\"created_at\":\"2015-04-11T00:42:52.447Z\",\"description\":\"Group discussing urban spaces ideas\",\"members_can_add_members\":false,\"members_can_create_subgroups\":true,\"members_can_start_discussions\":true,\"members_can_edit_discussions\":true,\"members_can_edit_comments\":true,\"members_can_raise_proposals\":true,\"members_can_vote\":true,\"visible_to\":\"members\",\"membership_granted_upon\":\"approval\",\"discussion_privacy_options\":\"private_only\",\"logo_url_medium\":\"default-logo-medium.png\",\"cover_url_desktop\":\"default-cover-photo.png\",\"parent_id\":null}],\"proposals\":[],\"discussions\":[{\"id\":395,\"key\":\"5tDT8i7I\",\"title\":\"ISSUE:Empty lot in telegraph and channing\",\"description\":\"How might we best use the empty lot?\",\"last_activity_at\":\"2015-04-11T00:42:52.922Z\",\"created_at\":\"2015-04-11T00:42:52.911Z\",\"updated_at\":\"2015-04-11T00:42:52.925Z\",\"items_count\":0,\"comments_count\":0,\"private\":true,\"author_id\":2,\"group_id\":139,\"active_proposal_id\":null}]}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:4001/api/v1/discussions","type":"DISCUSSION","keyValue":null,"keyName":null,"body":"{\"users\":[{\"id\":2,\"name\":\"James Proposer\",\"username\":\"jamesproposer\",\"avatar_initials\":\"JP\",\"avatar_kind\":\"initials\",\"avatar_url\":\"/uploaded_avatars/medium/missing.png\",\"profile_url\":\"/uploaded_avatars/large/missing.png\"}],\"groups\":[{\"id\":139,\"key\":\"LtfMiFS6\",\"name\":\"[LOOMIO]: Urban Spaces Group\",\"created_at\":\"2015-04-11T00:42:52.447Z\",\"description\":\"Group discussing urban spaces ideas\",\"members_can_add_members\":false,\"members_can_create_subgroups\":true,\"members_can_start_discussions\":true,\"members_can_edit_discussions\":true,\"members_can_edit_comments\":true,\"members_can_raise_proposals\":true,\"members_can_vote\":true,\"visible_to\":\"members\",\"membership_granted_upon\":\"approval\",\"discussion_privacy_options\":\"private_only\",\"logo_url_medium\":\"default-logo-medium.png\",\"cover_url_desktop\":\"default-cover-photo.png\",\"parent_id\":null}],\"proposals\":[],\"discussions\":[{\"id\":396,\"key\":\"Tm7nBWgt\",\"title\":\"Garden Proposal 1\",\"description\":\"Let's make a Garden! 1\",\"last_activity_at\":\"2015-04-11T00:42:53.034Z\",\"created_at\":\"2015-04-11T00:42:53.022Z\",\"updated_at\":\"2015-04-11T00:42:53.037Z\",\"items_count\":0,\"comments_count\":0,\"private\":true,\"author_id\":2,\"group_id\":139,\"active_proposal_id\":null}]}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:4001/api/v1/discussions","type":"DISCUSSION","keyValue":null,"keyName":null,"body":"{\"users\":[{\"id\":2,\"name\":\"James Proposer\",\"username\":\"jamesproposer\",\"avatar_initials\":\"JP\",\"avatar_kind\":\"initials\",\"avatar_url\":\"/uploaded_avatars/medium/missing.png\",\"profile_url\":\"/uploaded_avatars/large/missing.png\"}],\"groups\":[{\"id\":139,\"key\":\"LtfMiFS6\",\"name\":\"[LOOMIO]: Urban Spaces Group\",\"created_at\":\"2015-04-11T00:42:52.447Z\",\"description\":\"Group discussing urban spaces ideas\",\"members_can_add_members\":false,\"members_can_create_subgroups\":true,\"members_can_start_discussions\":true,\"members_can_edit_discussions\":true,\"members_can_edit_comments\":true,\"members_can_raise_proposals\":true,\"members_can_vote\":true,\"visible_to\":\"members\",\"membership_granted_upon\":\"approval\",\"discussion_privacy_options\":\"private_only\",\"logo_url_medium\":\"default-logo-medium.png\",\"cover_url_desktop\":\"default-cover-photo.png\",\"parent_id\":null}],\"proposals\":[],\"discussions\":[{\"id\":397,\"key\":\"jAhxwI9F\",\"title\":\"Garden Proposal 2\",\"description\":\"Let's make a Garden! 2\",\"last_activity_at\":\"2015-04-11T00:42:53.127Z\",\"created_at\":\"2015-04-11T00:42:53.119Z\",\"updated_at\":\"2015-04-11T00:42:53.130Z\",\"items_count\":0,\"comments_count\":0,\"private\":true,\"author_id\":2,\"group_id\":139,\"active_proposal_id\":null}]}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:4001/api/v1/discussions","type":"DISCUSSION","keyValue":null,"keyName":null,"body":"{\"users\":[{\"id\":2,\"name\":\"James Proposer\",\"username\":\"jamesproposer\",\"avatar_initials\":\"JP\",\"avatar_kind\":\"initials\",\"avatar_url\":\"/uploaded_avatars/medium/missing.png\",\"profile_url\":\"/uploaded_avatars/large/missing.png\"}],\"groups\":[{\"id\":139,\"key\":\"LtfMiFS6\",\"name\":\"[LOOMIO]: Urban Spaces Group\",\"created_at\":\"2015-04-11T00:42:52.447Z\",\"description\":\"Group discussing urban spaces ideas\",\"members_can_add_members\":false,\"members_can_create_subgroups\":true,\"members_can_start_discussions\":true,\"members_can_edit_discussions\":true,\"members_can_edit_comments\":true,\"members_can_raise_proposals\":true,\"members_can_vote\":true,\"visible_to\":\"members\",\"membership_granted_upon\":\"approval\",\"discussion_privacy_options\":\"private_only\",\"logo_url_medium\":\"default-logo-medium.png\",\"cover_url_desktop\":\"default-cover-photo.png\",\"parent_id\":null}],\"proposals\":[],\"discussions\":[{\"id\":398,\"key\":\"whAiVJDg\",\"title\":\"Garden Proposal 3\",\"description\":\"Let's make a Garden! 3\",\"last_activity_at\":\"2015-04-11T00:42:53.233Z\",\"created_at\":\"2015-04-11T00:42:53.219Z\",\"updated_at\":\"2015-04-11T00:42:53.235Z\",\"items_count\":0,\"comments_count\":0,\"private\":true,\"author_id\":2,\"group_id\":139,\"active_proposal_id\":null}]}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:4001/api/v1/proposals","type":"PROPOSAL","keyValue":null,"keyName":null,"body":"{\"users\":[{\"id\":2,\"name\":\"James Proposer\",\"username\":\"jamesproposer\",\"avatar_initials\":\"JP\",\"avatar_kind\":\"initials\",\"avatar_url\":\"/uploaded_avatars/medium/missing.png\",\"profile_url\":\"/uploaded_avatars/large/missing.png\"}],\"proposals\":[{\"id\":282,\"discussion_id\":396,\"name\":\"FINAL PROPOSAL: Garden Proposal 1\",\"description\":\"The proposal is: Let's make a Garden! 1\",\"outcome\":null,\"activity_count\":0,\"did_not_votes_count\":null,\"created_at\":\"2015-04-11T00:42:53.309Z\",\"updated_at\":\"2015-04-11T00:42:53.309Z\",\"closing_at\":\"2015-04-10T00:00:00.000Z\",\"closed_at\":null,\"last_vote_at\":null,\"vote_counts\":{\"yes\":0,\"abstain\":0,\"no\":0,\"block\":0},\"author_id\":2,\"outcome_author_id\":null}]}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:4001/api/v1/proposals","type":"PROPOSAL","keyValue":null,"keyName":null,"body":"{\"users\":[{\"id\":2,\"name\":\"James Proposer\",\"username\":\"jamesproposer\",\"avatar_initials\":\"JP\",\"avatar_kind\":\"initials\",\"avatar_url\":\"/uploaded_avatars/medium/missing.png\",\"profile_url\":\"/uploaded_avatars/large/missing.png\"}],\"proposals\":[{\"id\":283,\"discussion_id\":397,\"name\":\"FINAL PROPOSAL: Garden Proposal 2\",\"description\":\"The proposal is: Let's make a Garden! 2\",\"outcome\":null,\"activity_count\":0,\"did_not_votes_count\":null,\"created_at\":\"2015-04-11T00:42:53.399Z\",\"updated_at\":\"2015-04-11T00:42:53.399Z\",\"closing_at\":\"2015-04-10T00:00:00.000Z\",\"closed_at\":null,\"last_vote_at\":null,\"vote_counts\":{\"yes\":0,\"abstain\":0,\"no\":0,\"block\":0},\"author_id\":2,\"outcome_author_id\":null}]}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:4001/api/v1/proposals","type":"PROPOSAL","keyValue":null,"keyName":null,"body":"{\"users\":[{\"id\":2,\"name\":\"James Proposer\",\"username\":\"jamesproposer\",\"avatar_initials\":\"JP\",\"avatar_kind\":\"initials\",\"avatar_url\":\"/uploaded_avatars/medium/missing.png\",\"profile_url\":\"/uploaded_avatars/large/missing.png\"}],\"proposals\":[{\"id\":284,\"discussion_id\":398,\"name\":\"FINAL PROPOSAL: Garden Proposal 3\",\"description\":\"The proposal is: Let's make a Garden! 3\",\"outcome\":null,\"activity_count\":0,\"did_not_votes_count\":null,\"created_at\":\"2015-04-11T00:42:53.484Z\",\"updated_at\":\"2015-04-11T00:42:53.484Z\",\"closing_at\":\"2015-04-10T00:00:00.000Z\",\"closed_at\":null,\"last_vote_at\":null,\"vote_counts\":{\"yes\":0,\"abstain\":0,\"no\":0,\"block\":0},\"author_id\":2,\"outcome_author_id\":null}]}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}}],"serviceDefinition":{"serviceDefinitionId":2,"name":"Loomio","operations":[{"operationDefinitionId":10,"name":"groups","type":"HTTP","method":"POST","parameters":[{"parameterDefinitionId":11,"name":"group","type":"BODY_PARAM","dataType":"JSON","dataModel":[{"dataModelId":4,"dataKey":"discussion_privacy_options","annotations":"STRING, REQUIRED","defaultValue":"public","required":true,"list":false,"childDataModel":[]},{"dataModelId":3,"dataKey":"visible_to","annotations":"STRING, REQUIRED","defaultValue":"public","required":true,"list":false,"childDataModel":[]},{"dataModelId":2,"dataKey":"description","annotations":"STRING, REQUIRED","defaultValue":"Group description goes here","required":true,"list":false,"childDataModel":[]},{"dataModelId":1,"dataKey":"name","annotations":"STRING, REQUIRED","defaultValue":"Group name goes here","required":true,"list":false,"childDataModel":[]}],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},{"operationDefinitionId":9,"name":"discussions","type":"HTTP","method":"POST","parameters":[{"parameterDefinitionId":10,"name":"discussion","type":"BODY_PARAM","dataType":"JSON","dataModel":[{"dataModelId":8,"dataKey":"group_id","annotations":"INT, REQUIRED","defaultValue":null,"required":true,"list":false,"childDataModel":[]},{"dataModelId":7,"dataKey":"private","annotations":"STRING, REQUIRED","defaultValue":"false","required":true,"list":false,"childDataModel":[]},{"dataModelId":6,"dataKey":"description","annotations":"STRING, REQUIRED","defaultValue":"Discussion description goes here","required":false,"list":false,"childDataModel":[]},{"dataModelId":5,"dataKey":"title","annotations":"STRING, REQUIRED","defaultValue":"Title of discussion goes here","required":true,"list":false,"childDataModel":[]}],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},{"operationDefinitionId":4,"name":"discussions","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":5,"name":"key","type":"PATH_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},{"operationDefinitionId":3,"name":"groups","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":4,"name":"groupId","type":"PATH_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true}]},"operationMappings":{"createProposal":"13","createGroup":"10","createDiscussion":"9"},"trailingSlash":false},"readProposal":{"serviceId":2,"name":"Loomio","baseUrl":"http://localhost:4001/api/v1","auth":[{"serviceAuthenticationId":2,"authType":"COOKIE","token":"MVh4dXBZamgxaGZWdHpoSUlkVWZwTjBEOWVIYmVvaTJMM0hpYXp2MDZhNHZjeW1rOVZJUFZ0MUtXZW45OXIxaElnaVd4SGFtZjR2bWZYaVFFN0ZuU0w4ZnNxMW8za2FDdFB3U20rT2NlU0RURXZ6VTlTVUF3NU9wb2ZZTDF2b0VWcTRtaTdnQU01TkRTbTRUQytEQ0IrNEJjMVVGeExnRERVVG1XWlU2TUt4UkQ5OFo5Y3gyRUloMkZqMzF6SXZGWDhLS3NNb2ZjdGV4bjdUb3AxQ1NYTWhWREJZSE1Bb2hrNVRVeXlvaGxZQUloekROS0lvano0aXE4U1lEQWs2QTRpbHcwK2hjTFdQWmM3Z0F0OG44cFp2c2ZmWDdCREJhdXI0Z1Rpa3ZmelMzTjFZQ0JwaXpjZ01JZTF1YkhIUEdCMmZsRnIvRmxTSlJteDBOa3lGRU1FejdEamV2eFZtTVpKaVpURnFrYkRRQWl6TDNzTmJNTWVmQmpvZjZHNlhVVW53U3RMb1RtdUVnSVhFeTd0UUxkUT09LS1nd0RYNWJpakJYMnZUMVlLb1R6a2hBPT0%3D--f392e285a192d44e361eebab8719dbc2cfa9f7b7","tokenInjection":"Cookie","tokenParamName":"_loomio"}],"operations":[{"serviceOperationId":8,"appCivistOperation":"createDiscussion","expectedResource":null,"definition":{"operationDefinitionId":9,"name":"discussions","type":"HTTP","method":"POST","parameters":[{"parameterDefinitionId":10,"name":"discussion","type":"BODY_PARAM","dataType":"JSON","dataModel":[{"dataModelId":8,"dataKey":"group_id","annotations":"INT, REQUIRED","defaultValue":null,"required":true,"list":false,"childDataModel":[]},{"dataModelId":7,"dataKey":"private","annotations":"STRING, REQUIRED","defaultValue":"false","required":true,"list":false,"childDataModel":[]},{"dataModelId":6,"dataKey":"description","annotations":"STRING, REQUIRED","defaultValue":"Discussion description goes here","required":false,"list":false,"childDataModel":[]},{"dataModelId":5,"dataKey":"title","annotations":"STRING, REQUIRED","defaultValue":"Title of discussion goes here","required":true,"list":false,"childDataModel":[]}],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},"parameters":[]},{"serviceOperationId":7,"appCivistOperation":"createElection","expectedResource":null,"definition":{"operationDefinitionId":6,"name":"action","type":"HTTP","method":"POST","parameters":[{"parameterDefinitionId":7,"name":"description","type":"BODY_PARAM","dataType":"JSON","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},"parameters":[]},{"serviceOperationId":6,"appCivistOperation":"createProposal","expectedResource":null,"definition":{"operationDefinitionId":2,"name":"createPad","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":3,"name":"text","type":"QUERY_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false},{"parameterDefinitionId":2,"name":"padID","type":"QUERY_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},"parameters":[]},{"serviceOperationId":5,"appCivistOperation":"readProposal","expectedResource":null,"definition":{"operationDefinitionId":1,"name":"getText","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":1,"name":"padID","type":"QUERY_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},"parameters":[]},{"serviceOperationId":4,"appCivistOperation":"readDiscussion","expectedResource":null,"definition":{"operationDefinitionId":4,"name":"discussions","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":5,"name":"key","type":"PATH_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},"parameters":[]},{"serviceOperationId":3,"appCivistOperation":"readGroup","expectedResource":null,"definition":{"operationDefinitionId":3,"name":"groups","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":4,"name":"groupId","type":"PATH_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},"parameters":[]}],"resources":[{"serviceResourceId":4,"url":"/api/v1/motion/5l1yrCV7","type":"PROPOSAL","keyValue":"5l1yrCV7","keyName":"motionId","body":null,"parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":3,"url":"/api/v1/discussions/sxiOKaJo","type":"DISCUSSION","keyValue":"sxiOKaJo","keyName":"discussionId","body":null,"parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":2,"url":"/api/v1/groups/hkP4Bvtn","type":"GROUP","keyValue":"hkP4Bvtn","keyName":"groupId","body":null,"parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:4001/api/v1/groups","type":"GROUP","keyValue":null,"keyName":null,"body":"{\"groups\":[{\"id\":139,\"key\":\"LtfMiFS6\",\"name\":\"[LOOMIO]: Urban Spaces Group\",\"created_at\":\"2015-04-11T00:42:52.447Z\",\"description\":\"Group discussing urban spaces ideas\",\"members_can_add_members\":false,\"members_can_create_subgroups\":true,\"members_can_start_discussions\":true,\"members_can_edit_discussions\":true,\"members_can_edit_comments\":true,\"members_can_raise_proposals\":true,\"members_can_vote\":true,\"visible_to\":\"members\",\"membership_granted_upon\":\"approval\",\"discussion_privacy_options\":\"private_only\",\"logo_url_medium\":\"default-logo-medium.png\",\"cover_url_desktop\":\"default-cover-photo.png\",\"parent_id\":null}]}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:4001/api/v1/discussions","type":"ISSUE","keyValue":null,"keyName":null,"body":"{\"users\":[{\"id\":2,\"name\":\"James Proposer\",\"username\":\"jamesproposer\",\"avatar_initials\":\"JP\",\"avatar_kind\":\"initials\",\"avatar_url\":\"/uploaded_avatars/medium/missing.png\",\"profile_url\":\"/uploaded_avatars/large/missing.png\"}],\"groups\":[{\"id\":139,\"key\":\"LtfMiFS6\",\"name\":\"[LOOMIO]: Urban Spaces Group\",\"created_at\":\"2015-04-11T00:42:52.447Z\",\"description\":\"Group discussing urban spaces ideas\",\"members_can_add_members\":false,\"members_can_create_subgroups\":true,\"members_can_start_discussions\":true,\"members_can_edit_discussions\":true,\"members_can_edit_comments\":true,\"members_can_raise_proposals\":true,\"members_can_vote\":true,\"visible_to\":\"members\",\"membership_granted_upon\":\"approval\",\"discussion_privacy_options\":\"private_only\",\"logo_url_medium\":\"default-logo-medium.png\",\"cover_url_desktop\":\"default-cover-photo.png\",\"parent_id\":null}],\"proposals\":[],\"discussions\":[{\"id\":395,\"key\":\"5tDT8i7I\",\"title\":\"ISSUE:Empty lot in telegraph and channing\",\"description\":\"How might we best use the empty lot?\",\"last_activity_at\":\"2015-04-11T00:42:52.922Z\",\"created_at\":\"2015-04-11T00:42:52.911Z\",\"updated_at\":\"2015-04-11T00:42:52.925Z\",\"items_count\":0,\"comments_count\":0,\"private\":true,\"author_id\":2,\"group_id\":139,\"active_proposal_id\":null}]}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:4001/api/v1/discussions","type":"DISCUSSION","keyValue":null,"keyName":null,"body":"{\"users\":[{\"id\":2,\"name\":\"James Proposer\",\"username\":\"jamesproposer\",\"avatar_initials\":\"JP\",\"avatar_kind\":\"initials\",\"avatar_url\":\"/uploaded_avatars/medium/missing.png\",\"profile_url\":\"/uploaded_avatars/large/missing.png\"}],\"groups\":[{\"id\":139,\"key\":\"LtfMiFS6\",\"name\":\"[LOOMIO]: Urban Spaces Group\",\"created_at\":\"2015-04-11T00:42:52.447Z\",\"description\":\"Group discussing urban spaces ideas\",\"members_can_add_members\":false,\"members_can_create_subgroups\":true,\"members_can_start_discussions\":true,\"members_can_edit_discussions\":true,\"members_can_edit_comments\":true,\"members_can_raise_proposals\":true,\"members_can_vote\":true,\"visible_to\":\"members\",\"membership_granted_upon\":\"approval\",\"discussion_privacy_options\":\"private_only\",\"logo_url_medium\":\"default-logo-medium.png\",\"cover_url_desktop\":\"default-cover-photo.png\",\"parent_id\":null}],\"proposals\":[],\"discussions\":[{\"id\":396,\"key\":\"Tm7nBWgt\",\"title\":\"Garden Proposal 1\",\"description\":\"Let's make a Garden! 1\",\"last_activity_at\":\"2015-04-11T00:42:53.034Z\",\"created_at\":\"2015-04-11T00:42:53.022Z\",\"updated_at\":\"2015-04-11T00:42:53.037Z\",\"items_count\":0,\"comments_count\":0,\"private\":true,\"author_id\":2,\"group_id\":139,\"active_proposal_id\":null}]}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:4001/api/v1/discussions","type":"DISCUSSION","keyValue":null,"keyName":null,"body":"{\"users\":[{\"id\":2,\"name\":\"James Proposer\",\"username\":\"jamesproposer\",\"avatar_initials\":\"JP\",\"avatar_kind\":\"initials\",\"avatar_url\":\"/uploaded_avatars/medium/missing.png\",\"profile_url\":\"/uploaded_avatars/large/missing.png\"}],\"groups\":[{\"id\":139,\"key\":\"LtfMiFS6\",\"name\":\"[LOOMIO]: Urban Spaces Group\",\"created_at\":\"2015-04-11T00:42:52.447Z\",\"description\":\"Group discussing urban spaces ideas\",\"members_can_add_members\":false,\"members_can_create_subgroups\":true,\"members_can_start_discussions\":true,\"members_can_edit_discussions\":true,\"members_can_edit_comments\":true,\"members_can_raise_proposals\":true,\"members_can_vote\":true,\"visible_to\":\"members\",\"membership_granted_upon\":\"approval\",\"discussion_privacy_options\":\"private_only\",\"logo_url_medium\":\"default-logo-medium.png\",\"cover_url_desktop\":\"default-cover-photo.png\",\"parent_id\":null}],\"proposals\":[],\"discussions\":[{\"id\":397,\"key\":\"jAhxwI9F\",\"title\":\"Garden Proposal 2\",\"description\":\"Let's make a Garden! 2\",\"last_activity_at\":\"2015-04-11T00:42:53.127Z\",\"created_at\":\"2015-04-11T00:42:53.119Z\",\"updated_at\":\"2015-04-11T00:42:53.130Z\",\"items_count\":0,\"comments_count\":0,\"private\":true,\"author_id\":2,\"group_id\":139,\"active_proposal_id\":null}]}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:4001/api/v1/discussions","type":"DISCUSSION","keyValue":null,"keyName":null,"body":"{\"users\":[{\"id\":2,\"name\":\"James Proposer\",\"username\":\"jamesproposer\",\"avatar_initials\":\"JP\",\"avatar_kind\":\"initials\",\"avatar_url\":\"/uploaded_avatars/medium/missing.png\",\"profile_url\":\"/uploaded_avatars/large/missing.png\"}],\"groups\":[{\"id\":139,\"key\":\"LtfMiFS6\",\"name\":\"[LOOMIO]: Urban Spaces Group\",\"created_at\":\"2015-04-11T00:42:52.447Z\",\"description\":\"Group discussing urban spaces ideas\",\"members_can_add_members\":false,\"members_can_create_subgroups\":true,\"members_can_start_discussions\":true,\"members_can_edit_discussions\":true,\"members_can_edit_comments\":true,\"members_can_raise_proposals\":true,\"members_can_vote\":true,\"visible_to\":\"members\",\"membership_granted_upon\":\"approval\",\"discussion_privacy_options\":\"private_only\",\"logo_url_medium\":\"default-logo-medium.png\",\"cover_url_desktop\":\"default-cover-photo.png\",\"parent_id\":null}],\"proposals\":[],\"discussions\":[{\"id\":398,\"key\":\"whAiVJDg\",\"title\":\"Garden Proposal 3\",\"description\":\"Let's make a Garden! 3\",\"last_activity_at\":\"2015-04-11T00:42:53.233Z\",\"created_at\":\"2015-04-11T00:42:53.219Z\",\"updated_at\":\"2015-04-11T00:42:53.235Z\",\"items_count\":0,\"comments_count\":0,\"private\":true,\"author_id\":2,\"group_id\":139,\"active_proposal_id\":null}]}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:4001/api/v1/proposals","type":"PROPOSAL","keyValue":null,"keyName":null,"body":"{\"users\":[{\"id\":2,\"name\":\"James Proposer\",\"username\":\"jamesproposer\",\"avatar_initials\":\"JP\",\"avatar_kind\":\"initials\",\"avatar_url\":\"/uploaded_avatars/medium/missing.png\",\"profile_url\":\"/uploaded_avatars/large/missing.png\"}],\"proposals\":[{\"id\":282,\"discussion_id\":396,\"name\":\"FINAL PROPOSAL: Garden Proposal 1\",\"description\":\"The proposal is: Let's make a Garden! 1\",\"outcome\":null,\"activity_count\":0,\"did_not_votes_count\":null,\"created_at\":\"2015-04-11T00:42:53.309Z\",\"updated_at\":\"2015-04-11T00:42:53.309Z\",\"closing_at\":\"2015-04-10T00:00:00.000Z\",\"closed_at\":null,\"last_vote_at\":null,\"vote_counts\":{\"yes\":0,\"abstain\":0,\"no\":0,\"block\":0},\"author_id\":2,\"outcome_author_id\":null}]}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:4001/api/v1/proposals","type":"PROPOSAL","keyValue":null,"keyName":null,"body":"{\"users\":[{\"id\":2,\"name\":\"James Proposer\",\"username\":\"jamesproposer\",\"avatar_initials\":\"JP\",\"avatar_kind\":\"initials\",\"avatar_url\":\"/uploaded_avatars/medium/missing.png\",\"profile_url\":\"/uploaded_avatars/large/missing.png\"}],\"proposals\":[{\"id\":283,\"discussion_id\":397,\"name\":\"FINAL PROPOSAL: Garden Proposal 2\",\"description\":\"The proposal is: Let's make a Garden! 2\",\"outcome\":null,\"activity_count\":0,\"did_not_votes_count\":null,\"created_at\":\"2015-04-11T00:42:53.399Z\",\"updated_at\":\"2015-04-11T00:42:53.399Z\",\"closing_at\":\"2015-04-10T00:00:00.000Z\",\"closed_at\":null,\"last_vote_at\":null,\"vote_counts\":{\"yes\":0,\"abstain\":0,\"no\":0,\"block\":0},\"author_id\":2,\"outcome_author_id\":null}]}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:4001/api/v1/proposals","type":"PROPOSAL","keyValue":null,"keyName":null,"body":"{\"users\":[{\"id\":2,\"name\":\"James Proposer\",\"username\":\"jamesproposer\",\"avatar_initials\":\"JP\",\"avatar_kind\":\"initials\",\"avatar_url\":\"/uploaded_avatars/medium/missing.png\",\"profile_url\":\"/uploaded_avatars/large/missing.png\"}],\"proposals\":[{\"id\":284,\"discussion_id\":398,\"name\":\"FINAL PROPOSAL: Garden Proposal 3\",\"description\":\"The proposal is: Let's make a Garden! 3\",\"outcome\":null,\"activity_count\":0,\"did_not_votes_count\":null,\"created_at\":\"2015-04-11T00:42:53.484Z\",\"updated_at\":\"2015-04-11T00:42:53.484Z\",\"closing_at\":\"2015-04-10T00:00:00.000Z\",\"closed_at\":null,\"last_vote_at\":null,\"vote_counts\":{\"yes\":0,\"abstain\":0,\"no\":0,\"block\":0},\"author_id\":2,\"outcome_author_id\":null}]}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}}],"serviceDefinition":{"serviceDefinitionId":2,"name":"Loomio","operations":[{"operationDefinitionId":10,"name":"groups","type":"HTTP","method":"POST","parameters":[{"parameterDefinitionId":11,"name":"group","type":"BODY_PARAM","dataType":"JSON","dataModel":[{"dataModelId":4,"dataKey":"discussion_privacy_options","annotations":"STRING, REQUIRED","defaultValue":"public","required":true,"list":false,"childDataModel":[]},{"dataModelId":3,"dataKey":"visible_to","annotations":"STRING, REQUIRED","defaultValue":"public","required":true,"list":false,"childDataModel":[]},{"dataModelId":2,"dataKey":"description","annotations":"STRING, REQUIRED","defaultValue":"Group description goes here","required":true,"list":false,"childDataModel":[]},{"dataModelId":1,"dataKey":"name","annotations":"STRING, REQUIRED","defaultValue":"Group name goes here","required":true,"list":false,"childDataModel":[]}],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},{"operationDefinitionId":9,"name":"discussions","type":"HTTP","method":"POST","parameters":[{"parameterDefinitionId":10,"name":"discussion","type":"BODY_PARAM","dataType":"JSON","dataModel":[{"dataModelId":8,"dataKey":"group_id","annotations":"INT, REQUIRED","defaultValue":null,"required":true,"list":false,"childDataModel":[]},{"dataModelId":7,"dataKey":"private","annotations":"STRING, REQUIRED","defaultValue":"false","required":true,"list":false,"childDataModel":[]},{"dataModelId":6,"dataKey":"description","annotations":"STRING, REQUIRED","defaultValue":"Discussion description goes here","required":false,"list":false,"childDataModel":[]},{"dataModelId":5,"dataKey":"title","annotations":"STRING, REQUIRED","defaultValue":"Title of discussion goes here","required":true,"list":false,"childDataModel":[]}],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},{"operationDefinitionId":4,"name":"discussions","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":5,"name":"key","type":"PATH_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},{"operationDefinitionId":3,"name":"groups","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":4,"name":"groupId","type":"PATH_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true}]},"operationMappings":{"createProposal":"13","createGroup":"10","createDiscussion":"9"},"trailingSlash":false},"readProposalFromGroup":{"serviceId":2,"name":"Loomio","baseUrl":"http://localhost:4001/api/v1","auth":[{"serviceAuthenticationId":2,"authType":"COOKIE","token":"MVh4dXBZamgxaGZWdHpoSUlkVWZwTjBEOWVIYmVvaTJMM0hpYXp2MDZhNHZjeW1rOVZJUFZ0MUtXZW45OXIxaElnaVd4SGFtZjR2bWZYaVFFN0ZuU0w4ZnNxMW8za2FDdFB3U20rT2NlU0RURXZ6VTlTVUF3NU9wb2ZZTDF2b0VWcTRtaTdnQU01TkRTbTRUQytEQ0IrNEJjMVVGeExnRERVVG1XWlU2TUt4UkQ5OFo5Y3gyRUloMkZqMzF6SXZGWDhLS3NNb2ZjdGV4bjdUb3AxQ1NYTWhWREJZSE1Bb2hrNVRVeXlvaGxZQUloekROS0lvano0aXE4U1lEQWs2QTRpbHcwK2hjTFdQWmM3Z0F0OG44cFp2c2ZmWDdCREJhdXI0Z1Rpa3ZmelMzTjFZQ0JwaXpjZ01JZTF1YkhIUEdCMmZsRnIvRmxTSlJteDBOa3lGRU1FejdEamV2eFZtTVpKaVpURnFrYkRRQWl6TDNzTmJNTWVmQmpvZjZHNlhVVW53U3RMb1RtdUVnSVhFeTd0UUxkUT09LS1nd0RYNWJpakJYMnZUMVlLb1R6a2hBPT0%3D--f392e285a192d44e361eebab8719dbc2cfa9f7b7","tokenInjection":"Cookie","tokenParamName":"_loomio"}],"operations":[{"serviceOperationId":8,"appCivistOperation":"createDiscussion","expectedResource":null,"definition":{"operationDefinitionId":9,"name":"discussions","type":"HTTP","method":"POST","parameters":[{"parameterDefinitionId":10,"name":"discussion","type":"BODY_PARAM","dataType":"JSON","dataModel":[{"dataModelId":8,"dataKey":"group_id","annotations":"INT, REQUIRED","defaultValue":null,"required":true,"list":false,"childDataModel":[]},{"dataModelId":7,"dataKey":"private","annotations":"STRING, REQUIRED","defaultValue":"false","required":true,"list":false,"childDataModel":[]},{"dataModelId":6,"dataKey":"description","annotations":"STRING, REQUIRED","defaultValue":"Discussion description goes here","required":false,"list":false,"childDataModel":[]},{"dataModelId":5,"dataKey":"title","annotations":"STRING, REQUIRED","defaultValue":"Title of discussion goes here","required":true,"list":false,"childDataModel":[]}],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},"parameters":[]},{"serviceOperationId":7,"appCivistOperation":"createElection","expectedResource":null,"definition":{"operationDefinitionId":6,"name":"action","type":"HTTP","method":"POST","parameters":[{"parameterDefinitionId":7,"name":"description","type":"BODY_PARAM","dataType":"JSON","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},"parameters":[]},{"serviceOperationId":6,"appCivistOperation":"createProposal","expectedResource":null,"definition":{"operationDefinitionId":2,"name":"createPad","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":3,"name":"text","type":"QUERY_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false},{"parameterDefinitionId":2,"name":"padID","type":"QUERY_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},"parameters":[]},{"serviceOperationId":5,"appCivistOperation":"readProposal","expectedResource":null,"definition":{"operationDefinitionId":1,"name":"getText","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":1,"name":"padID","type":"QUERY_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},"parameters":[]},{"serviceOperationId":4,"appCivistOperation":"readDiscussion","expectedResource":null,"definition":{"operationDefinitionId":4,"name":"discussions","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":5,"name":"key","type":"PATH_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},"parameters":[]},{"serviceOperationId":3,"appCivistOperation":"readGroup","expectedResource":null,"definition":{"operationDefinitionId":3,"name":"groups","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":4,"name":"groupId","type":"PATH_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},"parameters":[]}],"resources":[{"serviceResourceId":4,"url":"/api/v1/motion/5l1yrCV7","type":"PROPOSAL","keyValue":"5l1yrCV7","keyName":"motionId","body":null,"parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":3,"url":"/api/v1/discussions/sxiOKaJo","type":"DISCUSSION","keyValue":"sxiOKaJo","keyName":"discussionId","body":null,"parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":2,"url":"/api/v1/groups/hkP4Bvtn","type":"GROUP","keyValue":"hkP4Bvtn","keyName":"groupId","body":null,"parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:4001/api/v1/groups","type":"GROUP","keyValue":null,"keyName":null,"body":"{\"groups\":[{\"id\":139,\"key\":\"LtfMiFS6\",\"name\":\"[LOOMIO]: Urban Spaces Group\",\"created_at\":\"2015-04-11T00:42:52.447Z\",\"description\":\"Group discussing urban spaces ideas\",\"members_can_add_members\":false,\"members_can_create_subgroups\":true,\"members_can_start_discussions\":true,\"members_can_edit_discussions\":true,\"members_can_edit_comments\":true,\"members_can_raise_proposals\":true,\"members_can_vote\":true,\"visible_to\":\"members\",\"membership_granted_upon\":\"approval\",\"discussion_privacy_options\":\"private_only\",\"logo_url_medium\":\"default-logo-medium.png\",\"cover_url_desktop\":\"default-cover-photo.png\",\"parent_id\":null}]}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:4001/api/v1/discussions","type":"ISSUE","keyValue":null,"keyName":null,"body":"{\"users\":[{\"id\":2,\"name\":\"James Proposer\",\"username\":\"jamesproposer\",\"avatar_initials\":\"JP\",\"avatar_kind\":\"initials\",\"avatar_url\":\"/uploaded_avatars/medium/missing.png\",\"profile_url\":\"/uploaded_avatars/large/missing.png\"}],\"groups\":[{\"id\":139,\"key\":\"LtfMiFS6\",\"name\":\"[LOOMIO]: Urban Spaces Group\",\"created_at\":\"2015-04-11T00:42:52.447Z\",\"description\":\"Group discussing urban spaces ideas\",\"members_can_add_members\":false,\"members_can_create_subgroups\":true,\"members_can_start_discussions\":true,\"members_can_edit_discussions\":true,\"members_can_edit_comments\":true,\"members_can_raise_proposals\":true,\"members_can_vote\":true,\"visible_to\":\"members\",\"membership_granted_upon\":\"approval\",\"discussion_privacy_options\":\"private_only\",\"logo_url_medium\":\"default-logo-medium.png\",\"cover_url_desktop\":\"default-cover-photo.png\",\"parent_id\":null}],\"proposals\":[],\"discussions\":[{\"id\":395,\"key\":\"5tDT8i7I\",\"title\":\"ISSUE:Empty lot in telegraph and channing\",\"description\":\"How might we best use the empty lot?\",\"last_activity_at\":\"2015-04-11T00:42:52.922Z\",\"created_at\":\"2015-04-11T00:42:52.911Z\",\"updated_at\":\"2015-04-11T00:42:52.925Z\",\"items_count\":0,\"comments_count\":0,\"private\":true,\"author_id\":2,\"group_id\":139,\"active_proposal_id\":null}]}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:4001/api/v1/discussions","type":"DISCUSSION","keyValue":null,"keyName":null,"body":"{\"users\":[{\"id\":2,\"name\":\"James Proposer\",\"username\":\"jamesproposer\",\"avatar_initials\":\"JP\",\"avatar_kind\":\"initials\",\"avatar_url\":\"/uploaded_avatars/medium/missing.png\",\"profile_url\":\"/uploaded_avatars/large/missing.png\"}],\"groups\":[{\"id\":139,\"key\":\"LtfMiFS6\",\"name\":\"[LOOMIO]: Urban Spaces Group\",\"created_at\":\"2015-04-11T00:42:52.447Z\",\"description\":\"Group discussing urban spaces ideas\",\"members_can_add_members\":false,\"members_can_create_subgroups\":true,\"members_can_start_discussions\":true,\"members_can_edit_discussions\":true,\"members_can_edit_comments\":true,\"members_can_raise_proposals\":true,\"members_can_vote\":true,\"visible_to\":\"members\",\"membership_granted_upon\":\"approval\",\"discussion_privacy_options\":\"private_only\",\"logo_url_medium\":\"default-logo-medium.png\",\"cover_url_desktop\":\"default-cover-photo.png\",\"parent_id\":null}],\"proposals\":[],\"discussions\":[{\"id\":396,\"key\":\"Tm7nBWgt\",\"title\":\"Garden Proposal 1\",\"description\":\"Let's make a Garden! 1\",\"last_activity_at\":\"2015-04-11T00:42:53.034Z\",\"created_at\":\"2015-04-11T00:42:53.022Z\",\"updated_at\":\"2015-04-11T00:42:53.037Z\",\"items_count\":0,\"comments_count\":0,\"private\":true,\"author_id\":2,\"group_id\":139,\"active_proposal_id\":null}]}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:4001/api/v1/discussions","type":"DISCUSSION","keyValue":null,"keyName":null,"body":"{\"users\":[{\"id\":2,\"name\":\"James Proposer\",\"username\":\"jamesproposer\",\"avatar_initials\":\"JP\",\"avatar_kind\":\"initials\",\"avatar_url\":\"/uploaded_avatars/medium/missing.png\",\"profile_url\":\"/uploaded_avatars/large/missing.png\"}],\"groups\":[{\"id\":139,\"key\":\"LtfMiFS6\",\"name\":\"[LOOMIO]: Urban Spaces Group\",\"created_at\":\"2015-04-11T00:42:52.447Z\",\"description\":\"Group discussing urban spaces ideas\",\"members_can_add_members\":false,\"members_can_create_subgroups\":true,\"members_can_start_discussions\":true,\"members_can_edit_discussions\":true,\"members_can_edit_comments\":true,\"members_can_raise_proposals\":true,\"members_can_vote\":true,\"visible_to\":\"members\",\"membership_granted_upon\":\"approval\",\"discussion_privacy_options\":\"private_only\",\"logo_url_medium\":\"default-logo-medium.png\",\"cover_url_desktop\":\"default-cover-photo.png\",\"parent_id\":null}],\"proposals\":[],\"discussions\":[{\"id\":397,\"key\":\"jAhxwI9F\",\"title\":\"Garden Proposal 2\",\"description\":\"Let's make a Garden! 2\",\"last_activity_at\":\"2015-04-11T00:42:53.127Z\",\"created_at\":\"2015-04-11T00:42:53.119Z\",\"updated_at\":\"2015-04-11T00:42:53.130Z\",\"items_count\":0,\"comments_count\":0,\"private\":true,\"author_id\":2,\"group_id\":139,\"active_proposal_id\":null}]}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:4001/api/v1/discussions","type":"DISCUSSION","keyValue":null,"keyName":null,"body":"{\"users\":[{\"id\":2,\"name\":\"James Proposer\",\"username\":\"jamesproposer\",\"avatar_initials\":\"JP\",\"avatar_kind\":\"initials\",\"avatar_url\":\"/uploaded_avatars/medium/missing.png\",\"profile_url\":\"/uploaded_avatars/large/missing.png\"}],\"groups\":[{\"id\":139,\"key\":\"LtfMiFS6\",\"name\":\"[LOOMIO]: Urban Spaces Group\",\"created_at\":\"2015-04-11T00:42:52.447Z\",\"description\":\"Group discussing urban spaces ideas\",\"members_can_add_members\":false,\"members_can_create_subgroups\":true,\"members_can_start_discussions\":true,\"members_can_edit_discussions\":true,\"members_can_edit_comments\":true,\"members_can_raise_proposals\":true,\"members_can_vote\":true,\"visible_to\":\"members\",\"membership_granted_upon\":\"approval\",\"discussion_privacy_options\":\"private_only\",\"logo_url_medium\":\"default-logo-medium.png\",\"cover_url_desktop\":\"default-cover-photo.png\",\"parent_id\":null}],\"proposals\":[],\"discussions\":[{\"id\":398,\"key\":\"whAiVJDg\",\"title\":\"Garden Proposal 3\",\"description\":\"Let's make a Garden! 3\",\"last_activity_at\":\"2015-04-11T00:42:53.233Z\",\"created_at\":\"2015-04-11T00:42:53.219Z\",\"updated_at\":\"2015-04-11T00:42:53.235Z\",\"items_count\":0,\"comments_count\":0,\"private\":true,\"author_id\":2,\"group_id\":139,\"active_proposal_id\":null}]}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:4001/api/v1/proposals","type":"PROPOSAL","keyValue":null,"keyName":null,"body":"{\"users\":[{\"id\":2,\"name\":\"James Proposer\",\"username\":\"jamesproposer\",\"avatar_initials\":\"JP\",\"avatar_kind\":\"initials\",\"avatar_url\":\"/uploaded_avatars/medium/missing.png\",\"profile_url\":\"/uploaded_avatars/large/missing.png\"}],\"proposals\":[{\"id\":282,\"discussion_id\":396,\"name\":\"FINAL PROPOSAL: Garden Proposal 1\",\"description\":\"The proposal is: Let's make a Garden! 1\",\"outcome\":null,\"activity_count\":0,\"did_not_votes_count\":null,\"created_at\":\"2015-04-11T00:42:53.309Z\",\"updated_at\":\"2015-04-11T00:42:53.309Z\",\"closing_at\":\"2015-04-10T00:00:00.000Z\",\"closed_at\":null,\"last_vote_at\":null,\"vote_counts\":{\"yes\":0,\"abstain\":0,\"no\":0,\"block\":0},\"author_id\":2,\"outcome_author_id\":null}]}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:4001/api/v1/proposals","type":"PROPOSAL","keyValue":null,"keyName":null,"body":"{\"users\":[{\"id\":2,\"name\":\"James Proposer\",\"username\":\"jamesproposer\",\"avatar_initials\":\"JP\",\"avatar_kind\":\"initials\",\"avatar_url\":\"/uploaded_avatars/medium/missing.png\",\"profile_url\":\"/uploaded_avatars/large/missing.png\"}],\"proposals\":[{\"id\":283,\"discussion_id\":397,\"name\":\"FINAL PROPOSAL: Garden Proposal 2\",\"description\":\"The proposal is: Let's make a Garden! 2\",\"outcome\":null,\"activity_count\":0,\"did_not_votes_count\":null,\"created_at\":\"2015-04-11T00:42:53.399Z\",\"updated_at\":\"2015-04-11T00:42:53.399Z\",\"closing_at\":\"2015-04-10T00:00:00.000Z\",\"closed_at\":null,\"last_vote_at\":null,\"vote_counts\":{\"yes\":0,\"abstain\":0,\"no\":0,\"block\":0},\"author_id\":2,\"outcome_author_id\":null}]}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}},{"serviceResourceId":null,"url":"http://localhost:4001/api/v1/proposals","type":"PROPOSAL","keyValue":null,"keyName":null,"body":"{\"users\":[{\"id\":2,\"name\":\"James Proposer\",\"username\":\"jamesproposer\",\"avatar_initials\":\"JP\",\"avatar_kind\":\"initials\",\"avatar_url\":\"/uploaded_avatars/medium/missing.png\",\"profile_url\":\"/uploaded_avatars/large/missing.png\"}],\"proposals\":[{\"id\":284,\"discussion_id\":398,\"name\":\"FINAL PROPOSAL: Garden Proposal 3\",\"description\":\"The proposal is: Let's make a Garden! 3\",\"outcome\":null,\"activity_count\":0,\"did_not_votes_count\":null,\"created_at\":\"2015-04-11T00:42:53.484Z\",\"updated_at\":\"2015-04-11T00:42:53.484Z\",\"closing_at\":\"2015-04-10T00:00:00.000Z\",\"closed_at\":null,\"last_vote_at\":null,\"vote_counts\":{\"yes\":0,\"abstain\":0,\"no\":0,\"block\":0},\"author_id\":2,\"outcome_author_id\":null}]}","parameters":[],"relatedResources":[],"relatedResourcesMap":{}}],"serviceDefinition":{"serviceDefinitionId":2,"name":"Loomio","operations":[{"operationDefinitionId":10,"name":"groups","type":"HTTP","method":"POST","parameters":[{"parameterDefinitionId":11,"name":"group","type":"BODY_PARAM","dataType":"JSON","dataModel":[{"dataModelId":4,"dataKey":"discussion_privacy_options","annotations":"STRING, REQUIRED","defaultValue":"public","required":true,"list":false,"childDataModel":[]},{"dataModelId":3,"dataKey":"visible_to","annotations":"STRING, REQUIRED","defaultValue":"public","required":true,"list":false,"childDataModel":[]},{"dataModelId":2,"dataKey":"description","annotations":"STRING, REQUIRED","defaultValue":"Group description goes here","required":true,"list":false,"childDataModel":[]},{"dataModelId":1,"dataKey":"name","annotations":"STRING, REQUIRED","defaultValue":"Group name goes here","required":true,"list":false,"childDataModel":[]}],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},{"operationDefinitionId":9,"name":"discussions","type":"HTTP","method":"POST","parameters":[{"parameterDefinitionId":10,"name":"discussion","type":"BODY_PARAM","dataType":"JSON","dataModel":[{"dataModelId":8,"dataKey":"group_id","annotations":"INT, REQUIRED","defaultValue":null,"required":true,"list":false,"childDataModel":[]},{"dataModelId":7,"dataKey":"private","annotations":"STRING, REQUIRED","defaultValue":"false","required":true,"list":false,"childDataModel":[]},{"dataModelId":6,"dataKey":"description","annotations":"STRING, REQUIRED","defaultValue":"Discussion description goes here","required":false,"list":false,"childDataModel":[]},{"dataModelId":5,"dataKey":"title","annotations":"STRING, REQUIRED","defaultValue":"Title of discussion goes here","required":true,"list":false,"childDataModel":[]}],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},{"operationDefinitionId":4,"name":"discussions","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":5,"name":"key","type":"PATH_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true},{"operationDefinitionId":3,"name":"groups","type":"HTTP","method":"GET","parameters":[{"parameterDefinitionId":4,"name":"groupId","type":"PATH_PARAM","dataType":"STRING","dataModel":[],"pathOrder":0,"defaultValue":null,"required":false}],"nameOnPath":true}]},"operationMappings":{"createProposal":"13","createGroup":"10","createDiscussion":"9"},"trailingSlash":false}}}