You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 11, 2018. It is now read-only.
I'm not sure you can add mock data to the yaml file.
However, I've been testing this project today and noticed that on sample 3 he demonstrates a way to initialize mock data. The data is loaded from @bigstickcarpet/mock-data - which is a directory within node_modules. See line 5 of employess.js
When loadMockData is executed during initialization it saves the employees in the mock data store.
You can follow a similar pattern to add initial data.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Is it possible to start swagger server with initialized mock data? I tried using
examples
property fromresponses
in swagger but it didnt work.The text was updated successfully, but these errors were encountered: