golang-todo-list

command module
v0.0.0-...-b68cde8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2022 License: MIT Imports: 5 Imported by: 0

README

golang-todo-list

Go언어를 이용해서 C(Create)U(Update)R(Read)D(Delete)를 할 수 있는 ToDo List를 만드는 프로젝트입니다.

Installation

$ go mod init github.com/dev-hyunsang/golang-todo-list
$ go get -u github.com/gofiber/fiber/v2
$ go get -u gorm.io/gorm
$ go get -u gorm.io/driver/sqlite

ToDos:

  • 새로운 ToDO 항목 만들기
  • 생성되어 있는 ToDo 항목들 불러오기
  • UUID를 통해서 생성되어 있는 ToDo 항목 수정하기
  • 생성되어 있는 ToDo 항목 삭제하기

Docs

POST /create
Request
{
    "content": "안녕하세요!!"
}
Response
{
    "message": "새로운 할일 항목을 만들었어요!",
    "status": 200,
    "time": "2022-06-05T16:51:32.68058+09:00"
}
POST /read
Request
Null
Response
{
    "datas": [
        {
            "todo_uuid": "bf8de572-cf5d-4f4b-8552-581015aae720",
            "content": "안녕하세요!!",
            "created_time": "2022-06-05T16:51:32.678999+09:00",
            "updated_time": "2022-06-05T16:51:32.678999+09:00"
        }
    ],
    "message": "성공적으로 생성되어 있는 항목들을 가지고 왔어요!",
    "status": 200,
    "time": "2022-06-05T16:52:45.074149+09:00"
}
POST /edit
Request
{
    "todo_uuid": "bf8de572-cf5d-4f4b-8552-581015aae720",
    "content": "반갑습니다~!"
}
Response
{
    "message": "성공적으로 수정했어요!",
    "status": 200,
    "time": "2022-06-05T16:53:04.78207+09:00"
}
Delete /delete/:UUID
Request
127.0.0.1:3000/delete/07265781-593b-4ef0-a25f-158a3460ebb7
Response
{
    "message": "성공적으로 할일 항목을 삭제했어요.",
    "status": 200,
    "time": "2022-06-05T16:49:55.773332+09:00"
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL