couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bessenyei Balázs Donát <bes...@apache.org>
Subject Re: [DISCUSS] couchdb 4.0 transactional semantics
Date Wed, 22 Jul 2020 12:48:36 GMT
On Tue, 21 Jul 2020 at 18:45, Jan Lehnardt <jan@apache.org> wrote:
> I’m not sure why a URL parameter vs. a path makes a big difference?
>
> Do you have an example?
>
> Best
> Jan
> —

Oh, sure! OpenAPI Generator [1] and et al. for example generate Java
methods (like [2] out of spec [3]) per path per verb.
Java's type safety and the way methods are currently generated don't
really provide an easy way to retrieve multiple kinds of responses, so
having them separate would help a lot there.


Donat

PS. I'm getting self-conscious about discussing this in this thread.
Should I open a new one?


[1] https://openapi-generator.tech/
[2] https://github.com/OpenAPITools/openapi-generator/blob/c49d8fd/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/PetApi.java#L606
[3] https://github.com/OpenAPITools/openapi-generator/blob/c49d8fd/samples/client/petstore/java/okhttp-gson/api/openapi.yaml#L208

Mime
View raw message