net-dynamic-api icon indicating copy to clipboard operation
net-dynamic-api copied to clipboard

Provide mock data out of the box, magically :)

Open DeeJayTC opened this issue 2 years ago • 0 comments

Add an option to automatically generate mock date for the generated API's if configured.

  • Add a param "&mock=true|false, &mockCount=xxx that automatically generates and returns mocked data
  • guess proper mock data based on the field, ie if its a name we automatically chose a name
  • add attribute to configure mock data
    • [Mock("FirstName")] will always generate a first name, can even use locales ie [Mock("FirstName, en-EN")] will create english first names

DeeJayTC avatar Apr 16 '22 13:04 DeeJayTC