Republishing the RESTDevService eSpace did it for me.
Nice tip. Thanks!
Kilian Hekhuis wrote:
Hi Stephen and George,
The problem is the the current version always tries to add a Swagger.json to the end of the url, as that is what the spec required. Unfortunately, most services/frameworks do not follow that part of the spec.
I already removed that restriction but it is only scheduled to be included on the next major version of the platform.
For the current version you will need to use the Swagger Proxy component.The component allows you to add a url to any swagger documentation and it will create a url ending with Swagger.json for you.
Regards,João Rosado
when i create a consume Rest api , add all methods and give Rest Api URL: an error occurred
"The swagger file doent have a version specified or version is incorrect"
What It Means?
Hi Mariya,
Can you try openning the url in the browser and see if it had a swagger definition?
That feature requires a rest api that exposes thr documentation in Swagger 2.0 (also supporting OpenApi 3.0 in recent versions os Service Studio)
Normally the swagger documentation can be fetched by adding "/swagger.json" at the end of the url. That is what Service Studio tries if you write the direct url to the api instead of the swagger url.
If you can post the api url or what result you get by calling the swagger url maybe I can advice further.
Regards,
João Rosado
Hi,
I just got into outsystems and want to explore the options...
While trying to use the services, I get the same issue that Mariya faces.
The URL works in the browser, whereas when I use it in the Studio, it fails. The URL that I use is:
[URL redacted - KH]
Any help in resolving this would be much appreciated.
Hi Udaya,
First, the URL you put there doesn't point to a Swagger definition (the topic of this thread), but to the output of a REST API Method call, so you should really put your question in a different topic.
Secondly, your post included an API key, never ever do that! API keys are secret, and putting them here on the forum allows mallicious use. Therefore, I removed the key from your post.
Thanks, Kilian.
As I'm a newcomer to a development environment, I got to learn many things.