api 명세서 - danivelop/junction-edd-frontend GitHub Wiki
POST /api/auth/signup
{
id: string
password: string
}
POST /api/auth/login
{
id: string
password: string
}
POST /api/auth/isLoggedIn
GET /api/diaries
response
[
{
id: number
weather: string | null
content: string | null
emotion: 'angry' | 'sad' | 'tired' | 'flustered' | 'happy' | 'love' | 'joy' | null
image: string | null
movies: [
{
title: string
year: string
poster: string
}
]
},
...
]
GET /api/diary
response
{
id: number
weather: string | null
content: string | null
emotion: 'angry' | 'sad' | 'tired' | 'flustered' | 'happy' | 'love' | 'joy' | null
image: string | null
movies: [
{
title: string
year: string
poster: string
}
]
}
PATCH /api/diary
{
id: number
weather?: string
content?: string
emotion?: 'angry' | 'sad' | 'tired' | 'flustered' | 'happy' | 'love' | 'joy'
movies?: [
{
title: string
year: string
poster: string
}
]
}
POST /api/diary
{
id: number
image: file
}
headers: {
'Content-Type': 'multipart/form-data'
}
GET /api/rakuten/getWeather
GET /api/rakuten/getEmotion?query={content}
GET /api/rakuten/getMovies?title={title}