Skip to content
This repository has been archived by the owner on May 8, 2019. It is now read-only.

Latest commit

 

History

History
49 lines (35 loc) · 956 Bytes

README.md

File metadata and controls

49 lines (35 loc) · 956 Bytes

little-heureka-mock-api

This is an Mock API for rapid for create app Little Heureka.

Quick Start

To start it needs to have Node.js and npm.

Clone the little-heureka-mock-api repository using git:

$ git clone https://github.com/kohlicekjan/little-heureka-mock-api.git
$ cd little-heureka-mock-api

Install dependencies:

$ npm install

Start the server:

$ npm start

Server running on [http://localhost:3003].

To regenerate data for for Mock API:

$ npm run regenerate 

API Reference

This API is based on the original API.

GET /categories/
GET /category/{categoryId}/ 
GET /products/{categoryId}/{offset}/{limit}/
GET /products/{categoryId}/ 
GET /offers/{categoryId}/count/
GET /product/{productId}/
GET /offers/{productId}/{offset}/{limit}/
GET /offers/{productId}/
GET /offer/{offerId}/