Skip to main content
Nintex Community Menu Bar
Knowledge Base

Hosting swagger file in OneDrive or SharePoint Online

  • May 29, 2024
  • 0 replies
  • 301 views

Forum|alt.badge.img+6
  • Nintex Employee
  • 13 replies

Topic

If your Swagger descriptor file exposes the MS Graph API that requires OAuth, you can host the Swagger descriptor file in an O365 location that uses the same authentication.

 

Instructions

  • You can host your Swagger file in OneDrive and then use the following Graph API URL in Descriptor Location for Rest Service Instance in K2:
    https://graph.microsoft.com/v1.0/me/drive/root:/Swagger/TestSwagger.json:/Content
    In this example, the Swagger file named TestSwagger.json is uploaded to the OneDrive folder called Swagger.
  • You can also host the Swagger file in SharePoint Online and then use the following Graph API URL in Descriptor Location:
    https://graph.microsoft.com/v1.0/sites/TESTK2CLOUD.sharepoint.com:/sites/AAA/Test:/lists/Documents/items/1/driveitem/content
    In this example, the swagger file is uploaded to the SharePoint Online Document Library, named Documents in SharePoint Online site AAA/Test, with item ID 1.

 

Additional Information

0 replies

Be the first to reply!