Open tomchristie opened 7 years ago
How could this be implemented?
If we could generate an API blueprint document we can have this done for us. Since we can convert a Swagger to blueprint using swagger2blueprint it's fairly easy to achieve. It will also allow us to easily integrate with Apiary if we want to.
I'm not sure if it's a good idea to introduce another language runtime to the mix just to do it but it's an idea or at least a workaround until this issue is resolved.
Once we've got the schemas fully in place we'd like to be able to run a mock API purely based on the function annotations, so that users can start up a mock API even before they've implemented any functionality.
We'd want to use randomised output that fits the given schema constraints, as well as validating any input, and returning those values accordingly.
eg.
schemas.py:
views.py:
We should be able to do this sort of thing...