Skip to content

Commit 6c67da7

Browse files
committed
add basic api details
1 parent 63dfe64 commit 6c67da7

File tree

3 files changed

+73
-1
lines changed

3 files changed

+73
-1
lines changed

session 5/chapters/4. Library REST API Design.md

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# Book Library Application
2+
3+
## Requirements
4+
5+
### Roles & Permissions
6+
7+
For simplicity of this app, lets number of roles limited to only following ones
8+
9+
1. User
10+
2. Admin
11+
12+
The Admin can
13+
14+
1. login to the system
15+
2. Add the book information into library and associated copies of them
16+
3. create accounts for user and set membership period for them
17+
4. can deactivate users
18+
19+
The User Can
20+
21+
1. Login
22+
2. check his profile details
23+
3. change password
24+
4. borrow a book
25+
26+
### Entities in the system
27+
28+
![BookLibVersion-1](../images/BookLibDb.jpg)
29+
30+
# API
31+
32+
Api prefix => 'api/v1/
33+
34+
Auth
35+
36+
- POST
37+
- auth/login/
38+
- PUT
39+
- auth/reset-password/
40+
41+
Users
42+
43+
- GET
44+
- users?limit={}&&offset={}&&sort-by={}
45+
- users/{id}
46+
- POST
47+
- users/
48+
- DELETE
49+
- users/
50+
51+
Books
52+
53+
- POST
54+
- books/
55+
- GET
56+
- books?limit={}&&offset={}&&sort-by={}
57+
- books/{id}
58+
59+
BooksCopy
60+
61+
- POST
62+
- books-copy/
63+
- GET
64+
- books-copy?limit={}&&offset={}&&sort-by={}&&borrowerid={}
65+
- books-copy/{id}
66+
67+
Authors
68+
69+
- POST
70+
- authors/
71+
- GET
72+
- authors?limit={}&&offset={}&&sort-by={}
73+
- authors/{id}

session 6/images/BookLibDb.jpg

195 KB
Loading

0 commit comments

Comments
 (0)