Skip to content

matheusdearaujo/fetchicles-api

Repository files navigation

Fetchicles API

This API was created to return all brands and models of vehicles in the world.

Installing

Clone this repository.

git clone https://github.com/matheusdearaujo/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

Usage

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

How to contribute

Read our contribution guide.

Contributors

Author


@matheusdearaujo

LICENSE

This repository use MIT License.