On Tue, 21 Jul 2020 at 18:45, Jan Lehnardt <j...@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

Reply via email to