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
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: