PostgREST / postgrest

REST API for any Postgres database
https://postgrest.org
MIT License
23.26k stars 1.02k forks source link

SwaggerUI specify default/example values in parameters #2871

Open laurenceisla opened 1 year ago

laurenceisla commented 1 year ago

Discussed in https://github.com/PostgREST/postgrest/discussions/2868

Originally posted by **yevon** July 22, 2023 Is there any way to provide default values for swaggerUI so when you use the endopint, it has some default data so you just can call the endpoint with all filled defaults? Something like this: ![image](https://github.com/PostgREST/postgrest/assets/121157/2cc09b13-e7d6-4df7-a318-f83110528c87) Thanks!
derhuerst commented 10 months ago

related, from https://github.com/PostgREST/postgrest/discussions/2868#discussioncomment-6534886:

We're not doing big changes to the OpenAPI output before https://github.com/PostgREST/postgrest/issues/1698 is completed. I'll open an issue to keep track of this in the meantime.