postgrest
postgrest copied to clipboard
Produce operationId
I am in no way familiar with haskell, but it seems like it would be pretty simple to create an additional property on the PathItem Operations for operationId. My thought is to combine the method name with the table name but I don't quite know how to do it.
I know it would be a change somewhere in here https://github.com/PostgREST/postgrest/blob/main/src/PostgREST/OpenAPI.hs#L259-L276
The result would be an operationId for each method, e.g. getCity, putCountry, patchCountrylanguage. See usage for this property here https://swagger.io/docs/specification/paths-and-operations/
I am trying to generate an SDK from the swagger and this would lead to much cleaner method names.
Thank you.