Class MockApi
MatrixGenerator
See API Details (https://github.com/pulkit110/jMatrixBrowse/wiki/API-Details)
for more details.
Defined in: MockApi.js.
Constructor Attributes | Constructor Name and Description |
---|---|
MockApi(height, width)
Mimics the API and gives response for requests.
|
Method Attributes | Method Name and Description |
---|---|
getResponse(request)
Get a response for given request.
|
Class Detail
MockApi(height, width)
Mimics the API and gives response for requests.
- Parameters:
- {Number} height Optional
- - height of the matrix to answer requests for. optional. default = 100.
- {Number} width Optional
- - width of the matrix to answer requests for. optional. default = 100.
Method Detail
{Object}
getResponse(request)
Get a response for given request.
- Parameters:
- {Object} request
- - the request.
- Returns:
- {Object} response - the response to the request.