-
Notifications
You must be signed in to change notification settings - Fork 6
Comment API
youngxpepp edited this page Dec 15, 2020
·
9 revisions
{
"Authorization": "Bearer " + Access Token,
"Content-Type": "application/json",
"Accept": "application/json"
}
- μν μ½λ
status code μ€λͺ 201 μμ² μ±κ³΅ 401 JWT X 403 보λμ μνμ§ μμ λ 404 μΉ΄λ μ‘΄μ¬ X 500 μλ² μλ¬ - url
POST /api/card/{cardId}/comment
- request
{ "content": String (required) }
- response
{ "id": Number, "content": String, "createdAt": String, "user": { "id": Number, "name": String, "profileImageUrl": String, } }
- μν μ½λ
status code μ€λͺ 200 μμ² μ±κ³΅ 401 JWT X 403 λκΈ μ£ΌμΈμ΄ μλ 404 λκΈ μ‘΄μ¬ X 500 μλ² μλ¬ - url
PATCH /api/comment/{commentId}
- request
{ "content": String (required) }
- response
{ "id": Number "content": String "createdAt": String, "user": { "id": Number "name": String "profileImageUrl": String } }
- μν μ½λ
status code μ€λͺ 204 μμ² μ±κ³΅ 401 JWT λλ λ€λ₯Έ μΈμ¦ λ¬Έμ 403 λ³ΈμΈ λκΈμ΄ μλ κ²½μ° 404 λκΈ μ‘΄μ¬ X 500 μλ² μλ¬ - url
DELETE /api/comment/{commentId}
- request
none
- response
none
π©π»βπ» λ°μμ° |
π§π»βπ» μ λν |
π§π»βπ» μ΄κ±΄ν |
π§π»βπ» μλͺ
λ ¬ |
π§π»βπ» μ¬μλ―Ό |
---|---|---|---|---|
@Park-SooYeon | @dh00n | @youngxpepp | @fElix-MR | @tksrl0379 |