브루노(Bruno) 열기 🖥️
새 폴더 생성 📁
새 HTTP 요청 생성 ➕
[GET] <https://11.fesp.shop/posts
요청 헤더 추가 ✏️
client-id
00-sample
요청 실행 및 응답 확인 🔍
응답 내용:
{
"ok": 1,
"item": [
{
"_id": 15,
"views": 0,
"user": {
"_id": 0,
"name": "익명"
},
"type": "post",
"createdAt": "2024.10.23 10:27:46",
"updatedAt": "2024.10.23 10:27:46",
"seller_id": null,
"bookmarks": 0,
"repliesCount": 0,
"product": {
"image": null
}
},
...
],
"pagination": {
"page": 1,
"limit": 0,
"total": 5,
"totalPages": 1
}
}
요청 헤더 삭제 🗑️
client-id
00-sample
요청 파라미터 추가 ➕
type
info
요청 실행 및 응답 확인 🔍
응답 내용:
{
"ok": 1,
"item": [
{
"_id": 15,
"views": 0,
"user": {
"_id": 0,
"name": "익명"
},
"type": "post",
"createdAt": "2024.10.23 10:27:46",
"updatedAt": "2024.10.23 10:27:46",
"seller_id": null,
"bookmarks": 0,
"repliesCount": 0,
"product": {
"image": null
}
},
...
],
"pagination": {
"page": 1,
"limit": 0,
"total": 5,
"totalPages": 1
}
}
type
파라미터 값을 변경하면 다른 유형의 데이터를 조회 가능.type=qna
로 설정하면 질문/답변 관련 데이터를 가져옴.[POST] <https://11.fesp.shop/posts
>이동 메뉴: "Body"
본문 유형: "JSON"
본문 내용:
{
"type": "community",
"title": "여행 후기 입니다.",
"content": "주말에 다녀온 여행지 입니다. 날씨가 맑아서 좋았어요.",
"image": "sample-bugatti.png",
"tag": "혼자,떠나요,제주도"
}
작업 완료 후 "Save" 클릭
type
community