Skip to content

Latest commit

 

History

History
65 lines (54 loc) · 1.43 KB

File metadata and controls

65 lines (54 loc) · 1.43 KB

todo-store

This simple end-point provides you with the ability to POST, EDIT, DELETE or GET todo(s) without hustle and just focus with your front end part of either web or mobile app

End point link

https://datastore-5ecb.onrender.com

Todo Schema

  {
      "id": "todo-id",
      "title": "Todo title",
      "description": "Todo description",
      "isComplete": booleanValue,
      "createdAt": ISOString("2023-08-11T09:47:15.627Z"),
      "lastUpdate": ISOString("2023-08-11T09:47:15.627Z")
 }

Methods

GET Method

Get all todos

 {endpoint}/api/

image


Get single todo by ID

{endpoint}/api/{todo-id}

image

POST Method

 {endpoint}/api/create

  body : {
      "title": "Todo title",
      "description": "Todo description",
      "isComplete": false
    }

image

DELETE Method


 {endpoint}/api/delete/{todo-id}

image

PUT Method


 {endpoint}/api/edit/{todo-id}

image