-
The
Could zodios be less opinionated about it? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
MDN is right. I'll not complexify zodios just for theorical use cases. If there is real issues and many users examples having no choice but to use GET with body i'll review my position. Until then, it's not on the roadmap to add body support for body on get requests. |
Beta Was this translation helpful? Give feedback.
-
Transferred to discussion |
Beta Was this translation helpful? Give feedback.
-
Yes, it rare to have body with GET. I'll discuss it with the backend developer of my team. Or it's only one or two endpoint, I can force typescript ignore the error as zodios still passes |
Beta Was this translation helpful? Give feedback.
-
My advice for all novice programmers: don't send HTTP bodies with I know you're trying to implement a search in your app.
Given all that, use either |
Beta Was this translation helpful? Give feedback.
Yes, it rare to have body with GET. I'll discuss it with the backend developer of my team. Or it's only one or two endpoint, I can force typescript ignore the error as zodios still passes
data
to its underlining axios request.