GET /bookskeyword: 검색 키워드category: 카테고리 필터page: 페이지 번호limit: 페이지 당 도서 수{
"total_count": 100,
"books": [
{
"id": 1,
"title": "Book Title",
"author": "Author Name",
"summary": "Short description of the book",
"price": 12000,
"like_count": 50,
"image_url": "<https://example.com/image.jpg>"
}
],
"pagination": {
"current_page": 1,
"total_pages": 10
}
}
GET /books/:id{
"id": 1,
"title": "Book Title",
"category": "Fiction",
"author": "Author Name",
"isbn": "123-456-789",
"pages": 300,
"summary": "Detailed description of the book",
"price": 12000,
"like_count": 50,
"images": ["<https://example.com/image1.jpg>", "<https://example.com/image2.jpg>"],
"is_liked": true
}
POST /auth/signup{
"email": "user@example.com",
"password": "password123"
}
POST /auth/login{
"email": "user@example.com",
"password": "password123"
}
{
"token": "access-token",
"refresh_token": "refresh-token"
}
GET /cart{
"items": [
{
"id": 1,
"title": "Book Title",
"price": 12000,
"quantity": 1
}
],
"total_price": 12000
}
POST /orders{
"cart_items": [1, 2, 3],
"shipping_address": "123 Main St",
"recipient_name": "John Doe",
"phone": "010-1234-5678",
"total_price": 36000
}
jsonwebtoken 라이브러리를 사용한 Access Token, Refresh Token 방식.dotenv를 통해 환경변수 관리(DB 정보, JWT 시크릿 등).