-
Notifications
You must be signed in to change notification settings - Fork 277
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
How can I customize my request body? #108
Comments
If you insist on putting the 'header' in the body instead of the header, you could define models like these:
Then use |
Extractly I defined like yours. @Shadowmaple But I can't modify the request sent by swagger. How can I customize my request sent by swagger? |
Have to define a struct? |
How to get default value in my ui like using comments : I want values to be filled by default rather than string that is displayed in "name" key. |
Out request body format is application/json like that :
{"body":{"id":9},"header":{"token":"token","snTime":1588213292769,"sn":"78028ad247479b146012f49aaecd2ff3","from":"web"}}
The header is fixed.So I want to add these params to all my request.How can i realize it ?
The text was updated successfully, but these errors were encountered: