v2_apidocs_outingwishlist_readevent - 100-hours-a-week/KTB4-8th-BE GitHub Wiki
API λͺ μΈ - μ¬ν μμ리μ€νΈμ μΆκ°ν νμ¬ μμΈ μ‘°ν API
μμ²
HTTP μμ²
GET /api/v2/member/outing-wishlist/events/{eventId}
λ§€κ°λ³μ
μ΄ λ©μλλ μμ² νλΌλ―Έν°λ₯Ό λ°λ‘ νμλ‘ νμ§ μμ΅λλ€.
κ²½λ‘ λ³μ
| νλλͺ | μ€λͺ |
|---|---|
eventId |
μ‘°νν μ΄λ²€νΈμ IDμ λλ€. |
λ³Έλ¬Έ
μ΄ λ©μλλ μμ² λ³Έλ¬Έμ λ°λ‘ νμλ‘ νμ§ μμ΅λλ€.
μλ΅
μμ²μ μ±κ³΅ν κ²½μ° μ΄ λ©μλλ λ€μκ³Ό κ°μ ꡬ쑰μ μλ΅μ λ°νν©λλ€.
HTTP/1.1 200 OK
Content-Type: application/json
{
"event_id": Integer,
"name": Integer,
"category": String,
"description": String,
"videos_featured_link": {
"https://youtube.com/watch/...",
...
},
"start_date": Date,
"end_date": Date,
"place": {
"name": String,
"address_sg": String,
"address_road": String,
"coordinate": {
"lat": Float,
"lng": Float
},
}
}
μμ±
| νλλͺ | μ€λͺ |
|---|---|
event_id |
ν΄λΉ νμ¬μ IDμ λλ€. |
name |
ν΄λΉ νμ¬μ μ΄λ¦μ λλ€. |
category |
ν΄λΉ νμ¬μ μΈλΆ λΆλ₯μ λλ€. μ) νμ μ€ν μ΄ |
description |
AIκ° μ 곡νλ ν΄λΉ νμ¬μ μμ½ μ 보μ λλ€. |
videos_featured_link |
ν΄λΉ νμ¬κ° μΆμΆλμλ μ νλΈ μμλ€μ μ£Όμ λͺ©λ‘μ λλ€. |
start_date |
'yyyy-MM-dd'μ νμμΌλ‘ μ 곡λλ ν΄λΉ νμ¬κ° μμνλ λ μ§μ
λλ€. nullμ ν΄λΉ νμ¬κ° μμ§ μ΄μ κΈ°κ°μ΄ μ ν΄μ§μ§ μμμμ λνλ
λλ€. |
end_date |
'yyyy-MM-dd'μ νμμΌλ‘ μ 곡λλ ν΄λΉ νμ¬κ° μ’
λ£νλ λ μ§μ
λλ€. nullμ ν΄λΉ νμ¬κ° μμ§ μ΄μ κΈ°κ°μ΄ μ ν΄μ§μ§ μμμμ λνλ
λλ€. |
place |
ν΄λΉ νμ¬κ° μ§νλλ μ₯μλ₯Ό λνλ΄λ νλμ λλ€. |
place.name |
ν΄λΉ μ₯μμ μ΄λ¦μ λλ€. |
place.address_sg |
μ + ꡬ ννλ‘ μ 곡λλ ν΄λΉ μ₯μμ μ£Όμμ λλ€. |
place.address_road |
λλ‘λͺ μ£Όμ ννλ‘ μ 곡λλ ν΄λΉ μ₯μμ μ£Όμμ λλ€. |
place.coordinate |
ν΄λΉ μ₯μκ° μμΉν κ³³μ μ’ν μ 보μ λλ€. |
place.coordinate.lat |
ν΄λΉ μ₯μκ° μμΉν κ³³μ μλμ λλ€. |
place.coordinate.lng |
ν΄λΉ μ₯μκ° μμΉν κ³³μ κ²½λμ λλ€. |
μ€λ₯
λ€μ νλ μ΄ λ©μλμ λν νΈμΆμ λν μλ΅μΌλ‘ APIκ° λ°νν μ μλ μ€λ₯λ€μ μ 보μ λλ€.
| μ ν | μΈλΆμ 보 | μ€λͺ |
|---|---|---|
401 |
INVALID_TOKEN |
μμ²μ Authorization ν€λμ Bearer ν ν°μ΄ μ ν¨νμ§ μμ΅λλ€. |
404 |
EVENT_NOT_FOUND |
μμ²μμ μ 곡λ νμ¬ IDκ° μ ν¨νλ νμ¬ IDκ° κ°λ¦¬ν€λ νμ¬λ₯Ό μ°Ύμ μ μμ΅λλ€. |
422 |
INVALID_EVENT_ID |
μμ²μμ μ 곡λ νμ¬ IDκ° μ ν¨νμ§ μμ΅λλ€. |