Skip to content

feat: 알림 읽음 처리 api#20

Merged
EveryPine merged 2 commits intomainfrom
feat/#19
May 16, 2025
Merged

feat: 알림 읽음 처리 api#20
EveryPine merged 2 commits intomainfrom
feat/#19

Conversation

@EveryPine
Copy link
Copy Markdown
Collaborator

@EveryPine EveryPine commented May 16, 2025

1. 알림 읽음 처리 api 추가

[PATCH] /notifications/read

알림 읽음 요청을 보냅니다.

Headers

헤더명 필수 설명
Content-Type application/json
Authorization Bearer {JWT_TOKEN}

Request Body

필드명 타입 필수 설명
notificationIds List<ObjectId (String)> 읽음 처리할 알림의 ObjectId 문자열 목록 (최대: 100개)

Request Body - Example

{
    "notificationIds": [
        "682769715ae5417895dcfe71",
        "682767150ec01374206ac2a7"
    ]
}

Response Body

필드명 타입 설명
updatedIds List<ObjectId (String)> 읽음 처리된 알림의 ObjectId 문자열 목록
alreadyReadIds List<ObjectId (String)> 이전에 이미 읽음 처리된 알림의 ObjectId 문자열 목록
notFountIds List<ObjectId (String)> DB에서 검색되지 않은 알림의 ObjectId 문자열 목록
accessDeniedIds List<ObjectId (String)> 접근이 거부된 알림의 ObjectId 문자열 목록

Response Body - Example

200 - OK

{
    "code": 200,
    "message": "알림 읽음 요청이 처리되었습니다.",
    "result": {
        "updatedIds": [],
        "alreadyReadIds": [],
        "notFoundIds": [
            "68276706ac2a7"
        ],
        "accessDeniedIds": []
    }
}

Change Logs

  • 2025-05-17: 알림 읽음 처리 API 최초 작성

@EveryPine EveryPine self-assigned this May 16, 2025
@EveryPine EveryPine added enhancement New feature or request api-spec api 명세 labels May 16, 2025
@EveryPine EveryPine merged commit 2961ccf into main May 16, 2025
2 checks passed
@EveryPine EveryPine linked an issue May 16, 2025 that may be closed by this pull request
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api-spec api 명세 enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: 알림 읽음 처리 api

1 participant