Use the same protocol for API URL as was used to get the swagger UI page

Signed-off-by: Tomasz Grabiec <tgrabiec@cloudius-systems.com>