Skip to content

Support for Post request. #216

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
nissaba opened this issue Aug 22, 2023 · 1 comment
Closed

Support for Post request. #216

nissaba opened this issue Aug 22, 2023 · 1 comment
Labels
kind/support Adopter support requests.

Comments

@nissaba
Copy link

nissaba commented Aug 22, 2023

I need some help with a POSt request I am trying to implement using the Generator.
I have opened a stack overflow question

in short I need to send a file to an endpoint.
And I was not able to find example that matches what I need to do. would be nice to have more example then just the get cats example.

@czechboy0
Copy link
Contributor

czechboy0 commented Aug 22, 2023

Hi @nissaba - based on the OpenAPI doc you posted on Stack Overflow, it seems you're trying to use the multipart/form-data content type.

We don't have great support for multipart yet, tracked by #36.

Until then, as you saw, you got the raw Data of the full body, which you'd have to parse manually using a multipart library.

Closing this as a duplicate of #36.

@czechboy0 czechboy0 closed this as not planned Won't fix, can't repro, duplicate, stale Aug 22, 2023
@czechboy0 czechboy0 added the kind/support Adopter support requests. label Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support Adopter support requests.
Projects
None yet
Development

No branches or pull requests

2 participants