We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I use the POST method to accept the JSON parameter, click the Try it out button, and swagger sends an OPTIONS type request.
Try it out
here is my code:
// @Accept json // @Param req body bean.Dog true "InstanceCreateReq" // @Success 200 {string} string "ok" // @Router /demo/dog [post]
the request by swagger try is:
Request URL: http://127.0.0.1:8888/demo/dog Request Method: OPTIONS Status Code: 404 Not Found Remote Address: 127.0.0.1:8888 Referrer Policy: no-referrer-when-downgrade
The text was updated successfully, but these errors were encountered:
Hello @NightFarmer, can you post a repository example that can reproduce this case?
Sorry, something went wrong.
No branches or pull requests
When I use the POST method to accept the JSON parameter, click the
Try it out
button, and swagger sends an OPTIONS type request.here is my code:
the request by swagger try is:
The text was updated successfully, but these errors were encountered: