These mocks are for local development of frontend-v3
- add NEXT_PUBLIC_BALANCER_API_URL=http://localhost:9999/ngapimock/graphql to .env
- run NPM script start to start ng-apimock
- from the 'real' api, copy the response you want and paste it in a new json file in the data folder
- copy an existing *.mock.json file and update name, operationName, query & file (this points to the json file from the previous step)
- optional: add extra responses aka scenarios to the mock
Note: watch is disabled by default, enable it by adding the option in server.js. Otherwise you can refresh to get the updated or new mocks by stopping and starting ng-apimock.
When ng-apimock is running the dev interface is available on http://localhost:9999/dev-interface/#/. Here you can choose between the different scenarios and/or presets that have been created beforehand.