Import swagger file and nothing happens - Consume REST API

Hi guys,

I'm trying to consume the Passbolt REST API, their swagger 2.0 file is here: 

https://github.com/passbolt/passbolt_openapi_specs/blob/develop/swagger.json

When I try to consume the API methods, no methods are added. There are no exceptions thrown, it just does nothing.

Any ideas what might be causing this?




Hi John,


You would have got this Warning Window, I tried & this is what i got

Keerthi Vasan wrote:

Hi John,


You would have got this Warning Window, I tried & this is what i got

Hi Keerthi

Yes, I have this problem. Do you know what alterations I have to do in swagger 2.0 file to resolve the problem?

Thanks


Hi guys,

Anyone knows why I can't consume the Passbolt REST API? Their swagger 2.0 file is this: 

https://github.com/passbolt/passbolt_openapi_specs/blob/develop/swagger.json

Thank you for your help.

Best Regards



Solution

Hi John,

Have you checked this topic?

Regards

Solution

Hi John,

This is probably because swagger specifications that have enums are not supported in the platform server version you are using.

The latest version OutSystems Platform Server 11.7.0 which was just released does support swagger specifications that contain enums like yours.

Regards,

Nordin

I already managed to solve the problem.

Thank you for your help.

Glad to hear! What was the changes you did by the way?

Regards!

I’m also curious to know if it was due to the enums in your swagger specification John.

Thanks

Hey,

Regarding the support for enums, you can find more information on this documentation page: 

https://success.outsystems.com/Documentation/11/Extensibility_and_Integration/REST/Consume_REST_APIs/Unsupported_REST_Enum_Use_Cases

There you can find the unsupported scenarios when consuming swaggers with enums.


Regards

Hi Tiago and Nordin,

I just changed the "array" to "object" in JSON file and with this alteration the actions in REST appeared.

Thanks for your help.

Best Regards