GithubHelp home page GithubHelp logo

jintae1954 / todo-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hatem0656/todo-api

0.0 0.0 0.0 86 KB

사각 토이 프로젝트-백엔드

Home Page: https://todo-api-nodejs.cyclic.app/

JavaScript 100.00%

todo-api's Introduction

Todo API

Table of contents

Overview

I made this API for my Todo App to handle user registration, authentication, CRUD operations of todo items and saving data in MongoDB.

The Challenge

API should handle the following:

  • Create a new user and save user data in the database
  • User Sign in Process & sending authentication token
  • User Sign out Process & deleting authentication token
  • Create a new todo for a user and save it in the database
  • Get all todo items of the user
  • Delete a todo item from the database

Built with

Endpoints

Create New User

[POST] "http://localhost:4000/sign_up"
Method POST
Body {"name": "Hatem" , "email": "[email protected]" , "password": "123456"}

Sign in a user

[POST] "http://localhost:4000/sign_in"
Method POST
Body {"email": "[email protected]" , "password": "123456"}

Sign out a user

[GET] "http://localhost:4000/sign_out"
Method GET

Get a user information (name and email)

[GET] "http://localhost:4000/user"
Method GET

Get all todo items of a user

[GET] "http://localhost:4000/1"
Method GET
Parameters User Id

Create a new todo item

[POST] "http://localhost:4000/1"
Method POST
Parameters User Id
Body {"content": "learn a new language"}

Delete a todo item

[DELETE] "http://localhost:4000/1/2"
Method DELETE
Parameters User Id, Todo Id

Deployment

Author

todo-api's People

Contributors

hatem0656 avatar

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.