SK SKYVVA Documentation

8. Import OpenAPI 3.x to create message type

SKYVVA has been added a new feature that can import message type and supported different files format such as XSD, JSON schema, wsdl1.1 & 2.0, swagger 2.0, openAPI3.x.After import the message type; therefore, you can further mapping in the SKYVVA mapping tool.

Message Type: Skyvva provide message type feature to create Istructure repository using different file format.  We  introducing the new concept of using message type as interface data type. So basically there are two way to put field mapping in interface is:

  1. Use sobject: we use the sobject fields as source field in interface
  2. Message type: we use costume fields created in message type as source field.
Import  file feature is used to create message type and ISTructure. Skyvva support different format to create message type: xsd, json schema, wsdl 1.1 & 2.0, swagger 2.0 and openAPI 3.x This functionality is processing based on the message type node. It’s working with REST adapter and have a specific template message type contain URL, header, body.we have a different template for request and response .it has Format Structure as following:

Will generate default “ReferenceObject” (Type = Reference Object) as a message and cover field on components.

Paths Section will be API name type REST_Service

Request

Request URL

Response Header

[su_box title="Note" box_color="#2a8af0" title_color="#000000"] Operation such as post, get, delete, patch and put you can check under parameter of operation.

 Basic Pre-requisite: First, you need to do some required steps before you can use the function “Importing OpenAPI3.x“

Configuration

Create Metadata Provider, Repository, and click the Import Metadata button.

In the section, you got a message type and you can further be mapping in the SKYVVA mapping tool, here is an example Callout V3 with Rest adapter using Message Type. Use Case: Step-1: Create Integration and Interface

Step-2: Do Mapping

Step-3: Create Remote site

Step-4: Create rest adapter from the SAP control board Create an Adapter and link to the outbound interface.

Step-5: The Configuration MockService We callout V3 with Rest adapter using Message Type to Mock Service.

Step-6: Query Data

[aux_code language="javascript" theme="tomorrow" title="Apex code" extra_classes=""] skyvvasolutions.CallOutControl c=new skyvvasolutions.CallOutControl(); c.returnXml=true; c.returnListRecord=true; c.isCreateMessage=true; c.actionDoIntegrate=true; String[] ids=new String[]{0016E00001BEi9cQAD}; skyvvasolutions.Iservices.invokeCalloutV3('Test openAPI','OutBound',ids,'SYNC', c); [/aux_code]

Summary: This feature we have learned about importing open API3x, and we have understood how to importing message type from open API3.x file format.

Open this article in the interactive viewer →