분류 URL 메소드 기능/구조 모델
스터디 /study GET 전체 스터디 그룹 조회 StudyGroup
스터디 /study/:studyGroupId GET 특정 스터디 조회 StudyGroup
스터디 /study POST 새로운 스터디 그룹 추가 StudyGroup
스터디 /study/:studyGroupId PATCH 특정 스터디 그룹 수정 StudyGroup
스터디 /study/:studyGroupId DELETE 특정 스터디 그룹 삭제 StudyGroup
todo /study/:id/todo GET 오늘의 습관에 저장된요소를 불러오기 TodoList
todo /study/:id/todo POST 오늘의 습관 작성 및 전송 TodoList
todo /study/:studyGroupId/todos POST 이거는 취소를 눌렀을때 기존의 데이터를 그대로 복사하기 위해서 만들었습니다. TodoList
todo /study/:studyGroupId/todo/:todoId DELETE 특정 todolist 삭제 TodoList
todo /study/:studyGroupId/todo DELETE todo 리스트 모두 삭제 TodoList
emoji /study/:id/emoticon POST 이모티콘 생성/같은 이모티콘 생성시 count만 올라감 Emoticon

엄성민 : study - delete는 제가 구현 해놓겠습니다.

1.스터디 관련 API

StudyGroup

→ 태그랑 이미지를 추가하면 좋을것 같음

→ 습관 테이블이랑 1대다 관계

1.1 스터디 목록 조회

파라미터 타입 설명 예시
page Number 페이지 번호
pageSize Number 한 페이지에 표시할 데이터 수
orderBy String 정렬 기준 recent = 최신순
keyword String 검색 키워드

응답 형식

GET http://localhost:3100/study?page=1&pageSize=2

{
  "list": [
    {
      "id": "b4e401be-4f95-4f54-8080-02e1903fe794",
      "nickname": "테스트",
      "studyname": "123",
      "description": "123",
      "password": "123",
      "img": "2",
      "point": 0,
      "createdAt": "2025-01-05T09:34:54.223Z",
      "updatedAt": "2025-01-05T09:34:54.223Z",
      "Emoticon": [
        {
          "id": "bec235f5-e2b8-4bd4-9460-e48dea4822fc",
          "emoticons": "😁",
          "count": 1,
          "studyGroupId": "b4e401be-4f95-4f54-8080-02e1903fe794"
        }
      ]
    },
    {
      "id": "bf794db0-3877-40f7-a6c9-96676380a298",
      "nickname": "테스트",
      "studyname": "테스트",
      "description": "asd",
      "password": "123",
      "img": "6",
      "point": 0,
      "createdAt": "2025-01-04T12:29:36.515Z",
      "updatedAt": "2025-01-04T12:29:36.515Z",
      "Emoticon": [
        {
          "id": "f6847230-2f6f-4de3-9b06-1953d2e701ab",
          "emoticons": "😁",
          "count": 1,
          "studyGroupId": "bf794db0-3877-40f7-a6c9-96676380a298"
        }
      ]
    }
  ],
  "totalCount": 11
}

1.2 스터디 조회