Univention Bugzilla – Bug 53242
Add example data to Kelvins OpenAPI page
Last modified: 2021-05-10 19:10:53 CEST
Since version 0.64.0 FastAPI supports adding (multiple) example(s) to each resource and method: https://fastapi.tiangolo.com/tutorial/schema-extra-example/#body-with-multiple-examples This helps customers to understand what the payload of their requests should be. Add one or more examples to each resource and method that supports patch/put/post. Maybe keep data similar to the examples in the documentation (for example https://docs.software-univention.de/ucsschool-kelvin-rest-api/resource-users.html#create).