Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide mock data out of the box, magically :) #20

Open
DeeJayTC opened this issue Apr 16, 2022 · 0 comments · Fixed by #23
Open

Provide mock data out of the box, magically :) #20

DeeJayTC opened this issue Apr 16, 2022 · 0 comments · Fixed by #23
Labels
Milestone

Comments

@DeeJayTC
Copy link
Owner

DeeJayTC commented Apr 16, 2022

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 DeeJayTC added the vnext label Apr 16, 2022
@DeeJayTC DeeJayTC added this to the 0.2 milestone Apr 16, 2022
@DeeJayTC DeeJayTC added this to Needs triage in API Generator Board via automation Apr 16, 2022
@DeeJayTC DeeJayTC linked a pull request Apr 24, 2022 that will close this issue
API Generator Board automation moved this from Needs triage to Released May 6, 2022
@DeeJayTC DeeJayTC reopened this May 8, 2022
API Generator Board automation moved this from Released to Needs triage May 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging a pull request may close this issue.

1 participant