-
Notifications
You must be signed in to change notification settings - Fork 2
[tecobrary server api v2 library book] 기능 명세
thedevluffy edited this page Nov 27, 2019
·
1 revision
-
[get] /books?page=1&number=10 해당 page 에 해당하는 number 개의 도서 list 로 반환
-
모든 권한
-
res
[ { id: book_id, image: book_image, title: book_title // ... }, { id: book_id, image: book_image, title: book_title // ... } // ... ]
-
-
[get] /books/all 총 도서 수
-
모든 권한
-
res
{ total: total_books }
-
-
[get] /books/:id id 를 가지는 book 정보
-
모든 권한
-
res
{ id: target_book_id, image: target_book_image, title: target_book_title, author: target_book_author, publisher: target_book_publisher, isbn: target_book_isbn, desc: target_book_desc }
-
-
[get] /books/search?title=제목&page=1&number=10 제목에 맞는 책 결과를 list 로 반환
-
모든 권한
-
res
[ { id: book_id_01, title: book_title_01 }, { id: book_id_02, title: book_title_02 } // ... ]
-
-
[post] /books 도서 등록
-
MANAGER, KING 권한
-
req
{ image: enroll_book_image, title: enroll_book_title, author: enroll_book_author, publisher: enroll_book_publisher, isbn: enroll_book_isbn, desc: enroll_book_desc }
-
res
{ id: enrolled_book_id, message: ${enrolled_book_title} register succeed }
-
-
User
-
LibraryBook
-
Serial
-
WishBook
-
RentHistory