Skip to content

groninge01/backend-mocks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

backend-mocks

These mocks are for local development of frontend-v3

How to use ng-apimock:

Create a new mock:

  • 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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published