-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrequirement.js
111 lines (88 loc) · 3.1 KB
/
requirement.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
/*
Requirements
-Book
- ISBN - string
- Title - String
- Author id - [Number]
- Language - String
- No.of pages - number
- Publications- number
- category - [string]
-Author
- id - number
- name - String
- books - [string]
-Publications
- id - number
- name - String
- books - [string]
---------------API'S-----------------
Book
-GET
to get all books
to get specific books
to get lists of books on category
to get lists of books based on author
-POST
to add new book
-PUT
to update details of book
to update/add new author
-DELETE
delete book
delete author from book
Author
-GET
to get all authors
to get specific author
to get list of author based on books
-POST
to add new author
to update/add new book
-PUT
to update author details
-DELETE
delete author
publications
-GET
to get all publications
to get specific publication
to get publication based on book
-POST
add new publication
-PUT
update publication details
to add/update new book
-DELETE
delete a book from publication
delete publication
*/
/*
Routes Needed in producation
/author/ getting all authors
/author/:id get specific author details based on id
/author/a/:authorname get specific author based on a book's authorname
/author/b/:BookName get specific author based on a book name
/author/new add new author
/author/updateName/:id update name of author
/author/delete/:id delete a auhtor
/book/ get all books
/book/:bookID get specific book based on ISBN
/book/a/:author get specific book based on author
/book/c/:category get specific books based on a category
/book/new add new books
/book/update/:isbn update title of a book
/book/updateAuthor/:isbn update/add new author
/book/updateTitle/:isbn update/add new Title
/book/delete/:isbn delete a book
/book/delete/author/:isbn/:id delete a author from a book
/publication/ get all publications
/publication/:id get specific publication details based on id
/publication/p/:PublicationName get specific publication details based on publication name
/publication/b/:BookName get specific publication details based on book name
/publication/new add new publication
/publication/updateBook/:id update/add new book to a publication
/publication/updateName/:id update publication name
/publication/delete/:id delete publication
/publication/deleteBook/:id/:isbn delete a book from publication
*/