Add docs, tests and fixes for extra data types

including refactor of jsonable_encoder to allow other object and model types
This commit is contained in:
Sebastián Ramírez
2018-12-22 14:35:48 +04:00
parent 75407b9295
commit a73709507c
10 changed files with 311 additions and 42 deletions

View File

@@ -25,7 +25,7 @@ In this case, `item_id` is declared to be an `int`.
!!! check
This will give you editor support inside of your function, with error checks, completion, etc.
## Data "parsing"
## Data <abbr title="also known as: serialization, parsing, marshalling">conversion</abbr>
If you run this example and open your browser at <a href="http://127.0.0.1:8000/items/3" target="_blank">http://127.0.0.1:8000/items/3</a>, you will see a response of: