This API was created to return all brands and models of vehicles in the world.
Clone this repository.
git clone https://github.com/mxtheussouza/fetchicles-api
Change directory.
cd fetchicles-api
You need have install nodejs and yarn as package manager.
Run yarn to install dependencies.
yarn
If you wanna run this API on development environment.
yarn dev
Case you wanna use this project just with API in your production environment, build this project and run.
yarn build && yarn start
This API have related routes with vehicles. By default, the routes have a prefix before calling methods of the yours vehicles.
<BASE_URL>/api/brands/<vehicle>
I'll show some examples with vehicle CAR.
Case the user want return all car brands, he need calling the following route:
<BASE_URL>/api/brands/car
If the user want return a specific car model of some brand, he need calling the following route (Brand name always be in lowercase):
<BASE_URL>/api/brands/car/<brand>
This will be standard for all vehicles.
Vehicles types available:
- CAR
- MOTORCYCLE
Read our contribution guide.
@mxtheussouza |
---|
This repository use MIT License.