Cannot connect to Rest API service
Question

I have created a Rest service that I can consume in Postman and see the swagger details when I navigate to the URL.

But when I try to consume it in Outsystems I get "We weren't able to import the Swagger file since it doesn't follow a supported specification'


What have I done wrong.

Capture.JPG

To add all the methods do this!

1- Click on the json link

2- Copy the link, and you can see the json file


3- Past the URL here on the option add multiple methods


4- Select all methods and finish


I am glad that I helped you :)

Give it a try and say something


Kind Regards,

Márcio C.

Hello Matt!

Can I see the address?

Check also this link Consume a REST API in 10 minutes with OutSystems - YouTube 

And also, try to add MultipleMethods and insert this address

https://"server"/"Module"/rest/"api service method name"

Regards,

Márcio C.

Sorry! I thought that you were exposing an API on OutSystems! :) My bad.

I will check

Regards,

Márcio C.

I could connect!


Go to the swagger, and execute one! then go to the curl and copy the link/url and paste on OutSystems using add single method


api.gif

To add all the methods do this!

1- Click on the json link

2- Copy the link, and you can see the json file


3- Past the URL here on the option add multiple methods


4- Select all methods and finish


I am glad that I helped you :)

Give it a try and say something


Kind Regards,

Márcio C.

weird so can i now. can you add multiple i still cant do that

Márcio my friend you are a legend

:) :) :) Thanks! happy to have been able to help you. Perfect !

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