Legacy API
FCM 알림 API
Firebase Cloud Messaging 알림 API
FCM 알림 API
Deprecated: 이 API는 레거시입니다. Notification API를 사용해주세요.
Firebase Cloud Messaging을 사용한 알림 전송 API입니다.
엔드포인트 목록
| 메서드 | 경로 | 설명 | 인증 |
|---|---|---|---|
GET | /send | 주제 구독자 알림 전송 | 필요 |
POST | /notification/send | 알림 생성 | 불필요 |
POST | /notification/send/all | 전체 사용자 알림 | 불필요 |
API 상세
주제 구독자 알림 전송
특정 주제 구독자들에게 알림을 전송합니다.
HTTP 요청
GET /send?topic={topic}&title={title}&body={body}
Authorization: Bearer {access_token}Query Parameters
| 파라미터 | 타입 | 필수 | 설명 |
|---|---|---|---|
topic | string | 예 | 주제 이름 |
title | string | 예 | 알림 제목 |
body | string | 예 | 알림 내용 |
응답
성공 응답 (200 OK)
Message sent to topic 'news'알림 생성
알림을 생성하고 DB에 저장합니다.
HTTP 요청
POST /notification/send
Content-Type: application/jsonRequest Body
{
"userId": "user123",
"title": "새로운 알림",
"body": "알림 내용입니다.",
"type": "CAMPAIGN"
}전체 사용자 알림
모든 사용자에게 알림을 전송합니다.
HTTP 요청
POST /notification/send/all응답
성공 응답 (201 Created)
(empty body)