| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- {
- "info": {
- "_postman_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
- "name": "Studio",
- "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
- "_exporter_id": "40701166"
- },
- "item": [
- {
- "name": "채널 설정",
- "item": [
- {
- "name": "채널 설정 조회",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{baseUrl}}/api/studio/settings",
- "host": ["{{baseUrl}}"],
- "path": ["api", "studio", "settings"]
- },
- "description": "YouTube 채널 연동 여부 및 채널 정보 조회 (channelName, handle, description, channelUrl, viewerLink, contactEmail, thumbnailUrl)"
- },
- "response": []
- }
- ]
- },
- {
- "name": "채널 연결",
- "item": [
- {
- "name": "연동 상태 조회",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{baseUrl}}/api/studio/channel",
- "host": ["{{baseUrl}}"],
- "path": ["api", "studio", "channel"]
- },
- "description": "YouTube 채널 연동 상태 및 채널 기본 정보 조회 (isConnected, channelName, handle, thumbnailUrl, isActive)"
- },
- "response": []
- },
- {
- "name": "YouTube OAuth URL 발급",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{baseUrl}}/api/studio/youtube-connect-url?redirectUri={{frontendUrl}}/api/auth/youtube/callback",
- "host": ["{{baseUrl}}"],
- "path": ["api", "studio", "youtube-connect-url"],
- "query": [
- {
- "key": "redirectUri",
- "value": "{{frontendUrl}}/api/auth/youtube/callback",
- "description": "OAuth 인증 후 돌아올 콜백 URL"
- }
- ]
- },
- "description": "Google OAuth Authorization URL 반환. 프론트엔드에서 해당 URL로 리다이렉트하여 YouTube 연동 시작"
- },
- "response": []
- },
- {
- "name": "YouTube 채널 연결 (코드 교환)",
- "request": {
- "method": "POST",
- "header": [],
- "body": {
- "mode": "raw",
- "raw": "{\n \"Code\": \"4/0Aci98E...\",\n \"RedirectUri\": \"{{frontendUrl}}/api/auth/youtube/callback\"\n}",
- "options": {
- "raw": {
- "language": "json"
- }
- }
- },
- "url": {
- "raw": "{{baseUrl}}/api/studio/youtube-connect",
- "host": ["{{baseUrl}}"],
- "path": ["api", "studio", "youtube-connect"]
- },
- "description": "Google OAuth 인증 코드를 교환하여 MemberOAuthToken 저장 및 Channel 엔티티 생성/업데이트. 프론트엔드 콜백 Route Handler에서 자동 호출됨"
- },
- "response": []
- }
- ]
- }
- ],
- "auth": {
- "type": "bearer",
- "bearer": [
- {
- "key": "token",
- "value": "{{accessToken}}",
- "type": "string"
- }
- ]
- },
- "variable": [
- {
- "key": "baseUrl",
- "value": "https://localhost:4000"
- },
- {
- "key": "frontendUrl",
- "value": "https://localhost:3000"
- }
- ]
- }
|