8000 GitHub - Sivarth91/TriumphAPI
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Sivarth91/TriumphAPI

Repository files navigation

TriumphAPI

TriumphAPI is an API that returns all (or almost everything) Triumph motorcycles.


Database informations


The database in based on a list of Wikipedia : https://en.wikipedia.org/wiki/List_of_Triumph_motorcycles

  • Motos

Attribute Exemple
name First Model
years 1902-1904
note used Minerva, JAP and Fafnir engines

Run the server :

npm start

Routes

There are 4 types of routes :

  • 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.


  • Home page of the server :

http://localhost:8080/
  • all motos :

http://localhost:8080/motos/all/
  • a moto based on her name :

for example :

http://localhost:8080/motos/First%Model/

Insert datas into the database :


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/ 

and post datas into the database following this scheme.


About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0