python-restx/flask-restx

How do I alias the parameter name of the backend that the front-end requests is inconsistent with the backend field?

miaokela opened this issue · 1 comments

Ask a question
How do I alias the parameter name of the backend that the front-end requests is inconsistent with the backend field?

Additional context

image

I can give an individual name to the field that the back-end responds to. However, in the same way, I want to obtain the front-end field and convert it to the field that the back-end receives, but unfortunately, the payload is still a request parameter. Is there an example for reference?