sipcapture / homer-app

HOMER 7.x Front-End and API Server
http://sipcapture.io
GNU Affero General Public License v3.0
204 stars 79 forks source link

Docker image doesn't appear to include Swagger file #478

Closed danlshields closed 2 years ago

danlshields commented 2 years ago

In Settings, the API documentation doesn't load, the API responds to the request to /doc/api/json with a 400 error, with a {"data":{},"message":"swagger file couldn't be found"} body. https://github.com/sipcapture/homer-app/blob/f957fc9c5ffc634fee27a62429d8d40edd32e7f1/main.go#L721-L731

Screen Shot 2022-04-22 at 10 59 47
adubovikov commented 2 years ago

you can set the real host here:

https://github.com/sipcapture/homer-app/blob/master/etc/webapp_config.json#L48

danlshields commented 2 years ago

you can set the real host here:

https://github.com/sipcapture/homer-app/blob/master/etc/webapp_config.json#L48

@adubovikov I'm afraid I don't understand, the problem isn't the API host shown in the API documentation, it's that there is no swagger file at all. It doesn't even get as far as to use config.Setting.SWAGGER.ApiHost...