sdispater / flask-orator

Adds Orator support to your Flask application
MIT License
74 stars 13 forks source link

Add to docs: serialize with jsonify for returning multiple collections #11

Open zardilior opened 5 years ago

zardilior commented 5 years ago

It would be worth adding to docs, could do it myself access granted, that collection.serialize() combined with

jsonify({
    "key":collection.serialize(),
    "key2":collection.serialize()
})

is the right way to jsonifying a dict of collections example, an api endpoint to return results from two tables, due to a search.