The database in based on a list of Wikipedia : https://en.wikipedia.org/wiki/List_of_Triumph_motorcycles
Attribute | Exemple |
---|---|
name | First Model |
years | 1902-1904 |
note | used Minerva, JAP and Fafnir engines |
Run the server :
npm start
- one that returns the home page of the server.
- one that returns all the motos.
- one that return a moto based on her name.
- one for insert datas into the database.
http://localhost:8080/
http://localhost:8080/motos/all/
for example :
http://localhost:8080/motos/First%Model/
I used MongoDB for the database. For insert datas into the database, you need use Postman and go to this url :
http://localhost:8080/motos/register/