OpenAPITools / openapi-generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
https://openapi-generator.tech
Apache License 2.0
21.57k stars 6.52k forks source link

[C] Revise "apiClient_invoke" method #515

Open wing328 opened 6 years ago

wing328 commented 6 years ago
Description

@PowerOfCreation I think we need to revise the "apiClient_invoke" method: https://github.com/OpenAPITools/openapi-generator/blob/96e0814510d80605cdc6211e462308cb4ac15367/samples/client/petstore/c/src/apiClient.c#L67-L70 to pass the query, form, header and body parameters and other useful information such as HTTP verbs (GET, POST) as method parameters.

https://github.com/OpenAPITools/openapi-generator/blob/master/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Api/PetApi.cs#L627-L629 is an example showing how the C# PetApi passes these information to the ApiClient. CallApiAsync

openapi-generator version

Latest master

Related issues/PRs

https://github.com/OpenAPITools/openapi-generator/issues/306

PowerOfCreation commented 6 years ago

558 Should resolve this issue @wing328

michelealbano commented 4 years ago

Is this Issue still open? @wing328