Skip to main content
Nintex Community Menu Bar
Solved

How to make a REST Callout without a descriptor?(Swagger?)

  • October 5, 2018
  • 6 replies
  • 47 views

Hello!

 

We need to make a callout to a REST service to retrieve information. However, there is no descriptor. Idealy we would like to just provide the endpoint, the HTTP method (post/get etc) and any applicable headers and parameters. Do you absolutly need to have a descriptor? 

Best answer by Steve11

No API we interact with as a swagger descriptor. Why has K2 overlooked the simple fact that a REST API may not have a swagger doc? 

6 replies

  • Author
  • October 7, 2018

Hello, I am not sure you read the question completly. There is not a swagger descriptor at all. How can we make REST callouts without a swagger descriptor?


Forum|alt.badge.img+9
  • Apprentice
  • October 8, 2018

Hi,

 

You cannot create a service Instance for REST endpoint without a Swagger Descriptor. And you cannot create a smartobject without a service instance. 

 

How are you trying to call the REST endpoint?

 

Regards,

Vijay.


  • Author
  • October 8, 2018

Hello!

 

Thank you for your reply. We are just trying to make a callout from a workflow for example. If you could tell me the steps to create a REST callout without a swagger/descriptor file that would be greate!


I do not believe it is possible to do that without a descriptor file.
I am running into a similar issue with Jira since Jira does not publish one.
You should checkout restunited.com,
it allows you to create swagger descriptor files and you just provide parameters and response.


Forum|alt.badge.img+9
  • Apprentice
  • October 9, 2018

Its not possible without a swagger descriptor.

 

Please check this link for steps to create a REST Service Instance.

https://vijaydk2guy.wordpress.com/2017/08/31/k2-integration-with-rest-api-services/


  • Author
  • Answer
  • October 9, 2018

No API we interact with as a swagger descriptor. Why has K2 overlooked the simple fact that a REST API may not have a swagger doc?