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 Feb 25, 2022. It is now read-only.
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.
deflist_favorite_kittens(color: KittenColor=None) ->List[Kitten]:
""" List your favorite kittens, optionally filtered by color. """passdefadd_favorite_kitten(name: KittenName) ->Kitten:
""" Add a kitten to your favorites list. """pass
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...
The text was updated successfully, but these errors were encountered: