Skip to content

Techeer-Partners-3rd-Team-B/SongYuRim_TodoList_API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

서버 시작하기

$ git clone https://github.com/sangminlee98/api-practice.git
$ cd api-practice/todo-server
$ docker-compose up -d

API 명세

스크린샷 2023-07-11 오전 4 21 15

1. getTodos

Request

  • URL: api/todos
  • Method: GET

Response

{
  "todos": [
    {
      "id": 1,
      "title": "할일 1",
      "done": false,
      "thumbnail": "https:// ~"
    },
    {
      "id": 2,
      "title": "할일 2",
      "done": true,
      "thumbnail": "https:// ~"
    },
    {
      "id": 3,
      "title": "할일 3",
      "done": false,
      "thumbnail": "https:// ~"
    }
  ]
}

2. createTodo

Request

  • URL: api/todos
  • Method: POST
  • Content-Type: multipart/form-data
  • Body:
    • todoData: string
    • file?: File

Response

{
  "id": 1,
  "title": "할일 1",
  "done": false,
  "thumbnail": "https:// ~"
}

3. updateTodo

Request

  • URL: api/todos/:id
  • Method: PUT

Response

{
  "id": 1,
  "title": "할일 1",
  "done": false,
  "thumbnail": "https:// ~"
}

4. deleteTodo

Request

  • URL: api/todos/:id
  • Method: DELETE

Response

없음

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published