@@ -43,7 +43,7 @@ $ yarn run start:dev NODE_ENV=development
43
43
44
44
```
45
45
46
- ## GUI API
46
+ ## API Member Section
47
47
48
48
``` bash
49
49
# Add Member
@@ -63,7 +63,8 @@ POST => /api/member/login
63
63
}
64
64
65
65
# Show All Member filtering by pagination and keywords
66
- GET => /api/member? keyword=< Full Name, Username>& page=1& pageSize=10
66
+ GET => /api/member? keyword=< name|| username|| memberNo>& page=1& pageSize=10
67
+ # possible to searh all of Fullname, Username and Member Number
67
68
68
69
# Get Profile by ID
69
70
GET => /api/member/< id>
@@ -100,6 +101,27 @@ PATCH => /api/member/<id>/profile-image
100
101
101
102
```
102
103
104
+ ## API Books Section
105
+
106
+ ``` bash
107
+ # Get All books by conditions
108
+ GET => /api/books/keyword=< title| isbn| author> ? page=1& pageSize=10& orderby=stock& sorting=desc
109
+
110
+ # Add New Book
111
+ POST => /api/books/add
112
+ {
113
+ " title" : " Harry Potter" ,
114
+ " author" : " JK Rowling" ,
115
+ " isbn" : " ISB123123123" ,
116
+ " qrCode" : " asdfasdfasdfasdf" ,
117
+ " barcode" : " 123123123123" ,
118
+ " price" : 590.00,
119
+ " stock" : 10,
120
+ " category" : " novel"
121
+ }
122
+
123
+ ```
124
+
103
125
## Requirement
104
126
105
127
- NestJS Microservice ✅
@@ -127,8 +149,8 @@ PATCH => /api/member/<id>/profile-image
127
149
128
150
#1 .3 ออกแบบ Features ของ Book Service ดังนี้
129
151
130
- - เพิ่ม / ลบ / แก้ไขข้อมูล Book
131
- - แสดงหนังสือ ( filter ตามหมวดหมู่ , เรียงลำดับหนังสือที่เหลือมาก - น้อย , ราคาต่ำ - สูง )
152
+ - เพิ่ม ✅ / ลบ / แก้ไขข้อมูล Book
153
+ - แสดงหนังสือ ( filter ตามหมวดหมู่ , เรียงลำดับหนังสือที่เหลือมาก - น้อย , ราคาต่ำ - สูง ) ✅
132
154
- ระบบบันทึกการซื้อหนังสือของ user
133
155
- ระบบรายงานหนังสือที่ถูกขายในแต่ละหมวดหมู่ ,จัดอันดับหนังสือที่ถูกขายเยอะที่สุด , หนังสือที่ใกล้จะหมด
134
156
- ระบบจัดอันดับผู้ที่ซื้อหนังสือ จำนวนกี่เล่ม แบ่งเป็นหมวดหมู่ละกี่เล่ม ราคาเท่าไหร่
0 commit comments