awtkns / fastapi-crudrouter

A dynamic FastAPI router that automatically creates CRUD routes for your models
https://fastapi-crudrouter.awtkns.com
MIT License
1.34k stars 156 forks source link

CrudRouter custom status_code #151

Open ivan18m opened 2 years ago

ivan18m commented 2 years ago

Custom success status code can be set - passed to constructor. When the code is 204, the schema should not be returned in the response body. Default for create route is set to 201.

Issue: #150

vercel[bot] commented 2 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/flortz/fastapi-crudrouter/BSod3sopZRAG5tuZcfsdwiUqxdXi
✅ Preview: https://fastapi-crudrouter-git-fork-ivan18m-master-flortz.vercel.app