GithubHelp home page GithubHelp logo

canvass-coord-api's People

Contributors

amhursh avatar

Watchers

 avatar

canvass-coord-api's Issues

Index

As a user, when i visit '/',
I should see the name of the application

Answers Create

when i POST api/v1/answers with an answer, targetId, and questionId,
I should get a 201 and the object back

Targest by Campaign

when I GET api/v1/campaigns/:id/targets
I should see a list of all targets associated with that campaign

Surveys Show

when i GET api/v1/surveys with the id of a given campaign,
I should see all surveys associated with that campaign

Questions Index

When i GET api/v1/surveys/1/questions
I should see an array of all questions associated with that survey

Targets Update

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

Targets Create

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

Campaign Create

When i post to api/v1/campaigns,
and include campaign data,
I should receive a 201 response,
and a campaign should be created

Targets Show

If I visit '/api/v1/targets/:id',
I should see an individual target,
and all attributes for that target

Targets Destroy

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

Targets Index

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

Campaign Index

When I GET to api/v1/campaigns,
I should see a list of all campaigns,
and I should have data about each campaign

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.