- Https: git clone https://github.com/BookifyUdL/BookifyBack.git
- Ssh: git clone git@github.com:BookifyUdL/BookifyBack.git
- Download it from here: https://nodejs.org/es/download/
You must be inside the project and then execute the following instruction:
npm install --save
You must be inside the project and then execute the following instruction:
npm start
IMPORTANT: Whenever you change something on the server you just have to save and it reuploads it automatically.
Global End Point: https://localhost:3000/ Entities End Points:
{
"Achievements": "https://localhost:3000/achievements",
"Admins": "https://localhost:3000/admins",
"Authors": "https://localhost:3000/authors",
"Books": "https://localhost:3000/books",
"Comments": "https://localhost:3000/comment",
"Genres": "https://localhost:3000/genres",
"Items": "https://localhost:3000/items",
"Reviews": "https://localhost:3000/reviews",
"Shops": "https://localhost:3000/shops",
"Statistics": "https://localhost:3000/statistics",
"Users": "https://localhost:3000/users"
}
This are just examples, try the other endpoints on your own.
Send POST to the endpoint https://localhost:3000/genres to create a resource. Body:
{
"name": "Java"
}
Send GET to the endpoint: https://localhost:3000/genres to get all resources. Body: None
Send GET to the endpoint: https://localhost:3000/genres/:genreId to get a specific resource. (id --> entity id value) Body: None
Send PATCH to the endpoint: https://localhost:3000/genres/:genreId to update/modify a specific resource. (id --> entity id value)
[
{
"propName":"name", "value": "Adventure"
}
]
IMPORTANT: Add as much lines as properties of that entity you want to change.
Send PATCH to the endpoint: https://localhost:3000/genres/update/:genreId to update/modify a specific resource, giving values to each property of the entity. (id --> entity id value)
Send DELETE to the endpoint: https://localhost:3000/genres/:genreId to delete a specific resource. (id --> entity id value) Body: None