Code Monkey home page Code Monkey logo

todo-rest-api's Introduction

RESTful api supporting creation and management of TODO Lists.

  1. Get ALL Todo Lists -GET http://localhost:8080/api/todolists

  2. Create NEW Todo List -POST http://localhost:8080/api/todolists {title:'My New Todo List'}

  3. Get Specific Todo List -GET http://localhost:8080/api/todolists/:todoList_id, i.e. > http://localhost:8080/api/todolists/5867ba74660bc4250bb20026

  4. Delete Todo List -DELETE http://localhost:8080/api/todolists/:todoList_id, e.g. > http://localhost:8080/api/todolists/5867ba89660bc4250bb20027

  5. Add Todo to TodoList -PUT http://localhost:8080/api/todolists/:todoList_id/add {description : 'number 1 todo task'}

  6. Togggle isCompleted status for a given Todo

  7. Remove specific Todo from a given Todo List

To deploy

  • navigate to db folder where we store mongo data
  • start up mongo db using 'startmongo' (mongod --dbpath ./)
  • do 'npm start'

Notes i. Be sure to perform POST/PUT with x-www-form-urlencoded.

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.