8000 GitHub - nuazsa/NodejsRestfulApi
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

nuazsa/NodejsRestfulApi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

API for Todo List

A simple and efficient API designed to manage your to-do list. Add, view, and organize your tasks effortlessly.

Endpoint

http://127.0.0.1:3000

Get All Todo

  • URL
    • /todos
  • Method
    • GET
  • Response
{
  "code": 200,
  "status": "OK",
  "data": {
    "id": 0,
    "todo" "cooking at 12pm"
}

Create Todo

  • URL
    • /todos
  • Method
    • POST
  • Request Body
    • todo as string
  • Response
{
  "code": 200,
  "status": "OK",
  "data": {
    "id": 0,
    "todo" "cooking at 12pm"
}

Update Todo

  • URL
    • /todos
  • Method
    • PUT
  • Request Body
    • id as int
    • todo as string
  • Response
{
  "code": 200,
  "status": "OK",
  "data": {
    "id": 0,
    "todo" "cooking at 12pm"
}

Delete Todo By Id

  • URL
    • /todos
  • Method
    • DELETE
  • Response
{
  "code": 200,
  "status": "OK",
  "data": {
    "id": 0,
    "todo" "cooking at 12pm"
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0