-
Notifications
You must be signed in to change notification settings - Fork 3
HTTP API π΄
KOSEUNGBIN edited this page Aug 12, 2020
·
1 revision
Description
π² μ±ν
λ°© μμ±
Request Header
Content-Type: "application/json"
Request Body
{
"title": "study spring"
}
Response Status Code
π―201 => μμ± μ±κ³΅
Description
π² λͺ¨λ μ±ν
λ°© μ‘°ν
Request Header
Accept: "application/json"
Response Status Code
π―200 => OK
Response Body
{
"rooms": [
{
"id": 1,
"title": "spring"
},
{
"id": 2,
"title": "react"
}
]
}
Description
π² μ±ν
λ°© μ‘°ν
Request Header
Accept: "application/json"
Response Status Code
π―200 => OK
Response Body
{
"room": {
"id": 1,
"title": "spring"
},
"messages": [
{
"id": 1,
"contents": "hi",
"createdAt": "2019-09-12 12:12:12",
"messageType": "text"
},
{
"id": 2,
"contents": "ok",
"createdAt": "2019-09-12 12:13:40",
"messageType": "text"
}
]
}