- URL:
/library/add
- Metoda:
POST
- Payload:
Pole | Typ | Komentarz |
---|---|---|
name |
string |
Wymagane |
email |
string |
|
city |
string |
|
street |
string |
|
houseNumber |
string |
|
phone |
string |
- URL:
/library/list
- Meroga:
GET
- Query:
Nazwa | Type |
---|---|
page |
int |
limit |
int |
Pole | Type |
---|---|
page |
int |
pages |
int |
data |
Library[] |
- URL:
/library/:id
- Metoda:
GET
- Payload:
Pole | Typ |
---|---|
id |
ObjectId |
name |
string |
email |
string |
city |
string |
street |
string |
houseNumber |
string |
phone |
string |
- URL:
/library/update/:id
- Metoda:
PUT
- Payload:
Pole | Typ |
---|---|
name |
string |
email |
string |
city |
string |
street |
string |
houseNumber |
string |
phone |
string |
- URL:
/library/:id
- Metoda:
DELETE
- URL:
/library/add
- Metoda:
POST
- Payload:
Pole | Typ | Komentarz |
---|---|---|
firstName |
string |
Wymagane |
lastName |
string |
Wymagane |
- URL:
/library/list
- Meroga:
GET
- Query:
Nazwa | Type |
---|---|
page |
int |
limit |
int |
Pole | Type |
---|---|
page |
int |
pages |
int |
data |
Author[] |
- URL:
/library/:id
- Metoda:
GET
- Payload:
Pole | Typ |
---|---|
id |
ObjectId |
firstName |
string |
lastName |
string |
- URL:
/library/update/:id
- Metoda:
PUT
- Payload:
Pole | Typ |
---|---|
firstName |
string |
lastName |
string |
- URL:
/author/:id
- Metoda:
DELETE
- URL:
/category/add
- Metoda:
POST
- Payload:
Pole | Typ | Komentarz |
---|---|---|
name |
string |
Wymagane |
- URL:
/category/list
- Meroga:
GET
- Query:
Nazwa | Type |
---|---|
page |
int |
limit |
int |
Pole | Type |
---|---|
page |
int |
pages |
int |
data |
Category[] |
- URL:
/category/:id
- Metoda:
GET
- Payload:
Pole | Typ |
---|---|
id |
ObjectId |
name |
string |
- URL:
/category/update/:id
- Metoda:
PUT
- Payload:
Pole | Typ |
---|---|
name |
string |
- URL:
/category/:id
- Metoda:
DELETE
- URL:
/book/add
- Metoda:
POST
- Payload:
Pole | Typ | Komentarz |
---|---|---|
title |
string |
Wymagane |
description |
string |
Wymagane |
author |
ObjectId |
Wymagane |
category |
Category[] |
|
isbn |
string |
|
type |
string |
|
pages |
int |
|
bookCover |
string[] |
|
publicationDate |
date |
- URL:
/book/list
- Meroga:
GET
- Query:
Nazwa | Type |
---|---|
page |
int |
limit |
int |
Pole | Type |
---|---|
page |
int |
pages |
int |
data |
Book[] |
- URL:
/book/list/author/:id
- Meroga:
GET
- Query:
Nazwa | Type |
---|---|
page |
int |
limit |
int |
Pole | Type |
---|---|
page |
int |
pages |
int |
data |
Book[] |
- URL:
/book/:id
- Metoda:
GET
- Payload:
Pole | Typ |
---|---|
id |
ObjectId |
title |
string |
description |
string |
author |
ObjectId |
category |
Category[] |
pages |
int |
isbn |
string |
type |
string |
bookCover |
string[] |
publicationDate |
date |
- URL:
/book/update/:id
- Metoda:
PUT
- Payload:
Pole | Typ |
---|---|
title |
string |
description |
string |
author |
ObjectId |
category |
Category[] |
pages |
int |
isbn |
string |
type |
string |
bookCover |
string[] |
publicationDate |
date |
- URL:
/book/:id
- Metoda:
DELETE