I have a service written in .net core 2.1 that uses swashbuckle to generate the swagger.json file.
When trying to merge this service's swagger I get this error.
Able to connect to opportunities/swagger/v1/swagger.json, but got HTTP code 404
After a lot of headache I found out that swagger-combine was actually making a head request instead of a get to my service and swashbuckle would always respond the HEAD request with a 404 whereas a GET request would return a 200 and the swagger.json content.
I did some research and was not able to find a way to accept a HEAD request on swashbuckle.
Is there a way to configure swagger-combine to use a get method instead of a head or maybe something that must be changed in the code?
EDIT: sorry posted the issue in wrong repo, please ignore this.
I have a service written in .net core 2.1 that uses swashbuckle to generate the swagger.json file. When trying to merge this service's swagger I get this error.
Able to connect to opportunities/swagger/v1/swagger.json, but got HTTP code 404
After a lot of headache I found out that swagger-combine was actually making a head request instead of a get to my service and swashbuckle would always respond the HEAD request with a 404 whereas a GET request would return a 200 and the swagger.json content.
I did some research and was not able to find a way to accept a HEAD request on swashbuckle.
Is there a way to configure swagger-combine to use a get method instead of a head or maybe something that must be changed in the code?
EDIT: sorry posted the issue in wrong repo, please ignore this.