Glowb Dev Docs
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

파라미터타입필수설명
topicstring주제 이름
titlestring알림 제목
bodystring알림 내용

응답

성공 응답 (200 OK)

Message sent to topic 'news'

알림 생성

알림을 생성하고 DB에 저장합니다.

HTTP 요청

POST /notification/send
Content-Type: application/json

Request Body

{
  "userId": "user123",
  "title": "새로운 알림",
  "body": "알림 내용입니다.",
  "type": "CAMPAIGN"
}

전체 사용자 알림

모든 사용자에게 알림을 전송합니다.

HTTP 요청

POST /notification/send/all

응답

성공 응답 (201 Created)

(empty body)

API 테스트

On this page