Skip to content

loikx/todo-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TODO

Simple json api app

  • /api/todo/create
  • /api/todo/update
  • /api/todo/find

Stack

  • docker
  • docker-compose
  • golang
  • postgresql

[POST] Create request /api/todo/create

  • request
{
  "name": "todo name",
  "body": "todo body",
  "priority": "low"
}
  • response
{
  "id": "uuid",
  "name": "todo name",
  "body": "todo body",
  "priority": "low",
  "deadline": null,
  "createdAt": "some time",
  "updatedAt": "somt time"
}

[POST] Update request /api/todo/update

  • request
{
  "id": "uuid",
  "name": "new todo name",
  "body": "new todo body",
  "priority": "high"
}

[POST] Find request /api/todo/find

  • request
{
  "id": "uuid"
}
  • response
{
  "id": "uuid",
  "name": "todo name",
  "body": "todo body",
  "priority": "low",
  "deadline": null,
  "createdAt": "some time",
  "updatedAt": "somt time"
}

About

Simple json api app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published