amhursh / canvass-coord-api Goto Github PK
View Code? Open in Web Editor NEWAPI service for CanvassCoord
API service for CanvassCoord
If i send a POST '/api/v1/targets' with JSON target data,
I should get a 201 response,
and I should see the target object
deploy app to heroku
If I visit '/api/v1/targets/:id',
I should see an individual target,
and all attributes for that target
Add migrations for:
campaigns
targets
surveys
questions
answers
when i POST api/v1/answers with an answer, targetId, and questionId,
I should get a 201 and the object back
when i GET api/v1/surveys with the id of a given campaign,
I should see all surveys associated with that campaign
When i GET api/v1/surveys/1/questions
I should see an array of all questions associated with that survey
If i send a PUT 'api/v1/targets/:id' with JSON target data,
I should get a 200 response,
and I should see the updated target data
When i post to api/v1/campaigns,
and include campaign data,
I should receive a 201 response,
and a campaign should be created
when I GET api/v1/campaigns/:id/targets
I should see a list of all targets associated with that campaign
When I GET to api/v1/campaigns,
I should see a list of all campaigns,
and I should have data about each campaign
If submit a GET '/api/v1/targets,
I should see a list of all targets,
and I should see first and last names,
and I should see address information,
and I should see party affiliation
When I send a DELETE 'api/v1/targets/:id',
I should receive a success response,
and If i send a GET 'ap1/v1/targets/:id,
I should now get a 404
As a user, when i visit '/',
I should see the name of the application
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.