/ml-api

๐Ÿ”Ž Search and see the detail of your next product.

Primary LanguageJavaScript

ML SIMPLE API

๐Ÿ”Ž Search and see the detail of your next product.

๐Ÿš€ Getting Started

To run the project, just follow these steps:

  1. Clone this repository.
  2. Install dependencies npm install
  3. Make sure you have the requested env vars (.env file). You can check the file .env.example
  4. Run the development command and have fun! npm run dev

๐Ÿ”— Endpoints

Search Items

GET /search

Query Params

Name Type Description Default Example
q String Query you want to search '' q='Telefono inteligente'
limit Number Quantity of results 50 limit=1

Response

{
  author: {
    name: String,
    lastname: String,
  },
  categories: [String],
  items: [
    {
      id: String,
      title: String,
      price: {
        currency: String,
        amount: Number,
        decimals: Number,
      },
      picture: String,
      condition: String,
      free_shipping: Boolean,
    }
  ],
}

Get Item Info

GET /items/:id

Response

{
  author: {
    name: String,
    lastname: String,
  },
  item: {
    id: String,
    title: String,
    price: {
      currency: String,
      amount: Number,
      decimals: Number,
    },
    picture: String,
    condition: String,
    free_shipping: Boolean,
    sold_quantity: Number,
    description: String
  }
}

๐Ÿ›  Deployment

This project has CI with Heroku.

๐Ÿ–ฅ Technologies

  • Express
  • Husky

๐Ÿ‘‰๐Ÿผ Methodologies

  • Git Flow

๐Ÿงพ License

The MIT License (MIT)