455
Views
9
Comments
Solved
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
2021-06-02 20-50-04
Márcio Carvalho
Solution

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.

2021-06-02 20-50-04
Márcio Carvalho

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.

UserImage.jpg
Matt Frost
2021-06-02 20-50-04
Márcio Carvalho

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

I will check

Regards,

Márcio C.

2021-06-02 20-50-04
Márcio Carvalho

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
2021-06-02 20-50-04
Márcio Carvalho
Solution

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.

UserImage.jpg
Matt Frost

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

UserImage.jpg
Matt Frost

Márcio my friend you are a legend

2021-06-02 20-50-04
Márcio Carvalho

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

UserImage.jpg
Mohammed Karim Seck

Hello, does anyone know how can I make a YouTube API URL, if yes could you send a picture or a description? 

Thanks


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