회원이 게시물을 등록할 수 있도록 합니다.
{
"success": true,
"response": null,
"error": null
}
{
"success": false,
"response": null,
"error": {
"message": "해당 요청은 잘못되었습니다.",
"status": 400
}
}
{
"success": false,
"response": null,
"error": {
"message": "인증되지 않았습니다.",
"status": 401
}
}
{
"success": false,
"response": null,
"error": {
"message": "서버의 알 수 없는 에러입니다.",
"status": 500
}
}
전체 게시물을 화면에 로딩 합니다.
{
"success": true,
"response": {
"posts": [ //게시물 리스트 시작
{
"idx": 1,
"image": "https://postfiles.pstatic.net/MjAyMDA5MDdfMjM2/MDAxNTk5NDUwMDU3MTMx.R3LJwbRiMdZcwnqlJ4nRG5EbSi8KLyYMBdbgbw95dHog.VKCpNcHkFkAGL8bGiZTAM8zWyoGJtVvVA0tz7s-y82wg.JPEG.gaonnuri51/Untitled-1.jpg?type=w966",
"title": "굽네치킨 나눠드실 분?",
"time": "17시~22시",
"place" "연산동",
"people": 2
},
{
"idx": 2,
"image": "놀자포차 가게 상표 링크"
"title": "놀자포차에서 한잔 하실 분",
"time": "17시~22시",
"place" "밀양캠퍼스 앞",
"people": 9999
},
... ] //게시물 리스트 끝
},
"error": null
}
{
"success": false,
"response": null,
"error": {
"message": "해당 요청은 잘못되었습니다.",
"status": 400
}
}
{
"success": false,
"response": null,
"error": {
"message": "서버의 알 수 없는 에러입니다.",
"status": 500
}
}
개별 게시물을 조회합니다.
{
"success": true,
"response": {
"idx": 1,
"title": "굽네치킨 나눠드실 분?",
"content": "같이 드실분 찾습니다. 자메이카 통다리 두 조각씩 먹어요.",
"author": "MinseokGo",
"address": "연산동"
"createAt": "2시간 전",
"time": "17시~22시",
"place" "연산동",
"people": 2,
"options": [
{
"idx": 1,
"optionName": "뼈치킨",
"quantity": 5
},
{
"idx": 10,
"optionName": "콜라 라지 변경",
"quantity": 5
}
]
"image": "https://postfiles.pstatic.net/MjAyMDA5MDdfMjM2/MDAxNTk5NDUwMDU3MTMx.R3LJwbRiMdZcwnqlJ4nRG5EbSi8KLyYMBdbgbw95dHog.VKCpNcHkFkAGL8bGiZTAM8zWyoGJtVvVA0tz7s-y82wg.JPEG.gaonnuri51/Untitled-1.jpg?type=w966",
"shopName": "굽네치킨 부산안락점",
"tip": 3000
},
"error": null
}
{
"success": false,
"response": null,
"error": {
"message": "해당 요청은 잘못되었습니다.",
"status": 400
}
}
{
"success": false,
"response": null,
"error": {
"message": "해당 게시물을 찾을 수 없습니다.",
"status": 404
}
}
{
"success": false,
"response": null,
"error": {
"message": "서버의 알 수 없는 에러입니다.",
"status": 500
}
}
게시물을 수정합니다.
{
"success": true,
"response": null,
"error": null
}
{
"success": false,
"response": null,
"error": {
"message": "해당 요청은 잘못되었습니다.",
"status": 400
}
}
{
"success": false,
"response": null,
"error": {
"message": "인증되지 않았습니다.",
"status": 401
}
}
{
"success": false,
"response": null,
"error": {
"message": "서버의 알 수 없는 에러입니다.",
"status": 500
}
}
게시물을 삭제합니다.
{
"success": true,
"response": null,
"error": null
}
{
"success": false,
"response": null,
"error": {
"message": "해당 요청은 잘못되었습니다.",
"status": 400
}
}
{
"success": false,
"response": null,
"error": {
"message": "인증되지 않았습니다.",
"status": 401
}
}
{
"success": false,
"response": null,
"error": {
"message": "서버의 알 수 없는 에러입니다.",
"status": 500
}
}