And Error response is
{"schemaValidationMessages":[{"level":"error","message":"Can't read from file http://<SITE_URL>/rest/default/schema?services=all"}]}
And Error response is
{"schemaValidationMessages":[{"level":"error","message":"Can't read from file http://<SITE_URL>/rest/default/schema?services=all"}]}
The given url only supports the store code default.
In the latest version of magento 2 it is possible to change through the url parameter store.
If your version doesn’t support it yet just overwrite the swagger template file and replace default with your store code.