This is an Mock API for rapid for create app Little Heureka.
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
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}/