swagger.json extra forward slash added to REST API Urls
Question

Hi,

When I try to consume a REST API, hosted on Heroku, and read the swagger.json file of my REST API, Outsystems adds a second forward slash to the path of my API method like so:

https://myherokuapp.herokuapp.com//treeview

which makes the API method unexecutable. I am getting error response Cannot GET //treeview. All paths in the swagger 2.0 file are preceded by a forward slash. When I delete the extra forward slash, the API method is queried successfully in Outsystems.

I found the solution. The overall Logic/Integrations/REST container for the API methods has an attribute called Base URL. Outsystems appends a forward slash to the domain name in question, and sets that as the Base URL. After deleting the slash, the API methods work as expected.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.