SK SKYVVA Documentation

1. REST API

REST API

REST is an architectural style of web services that work as a channel of communication between different computers or systems on the internet. The term REST API is something else. Those application programming interfaces that are backed by the architectural style of the REST architectural system are called REST APIs. REST API compliant web services, database systems, and computer systems permit requesting systems to get robust access and redefine representations of web-based resources by deploying a predefined set of stateless protocols and standard operations. By these protocols and operations and redeploying the manageable and updatable components without causing the effect on the system, REST API systems deliver fast performance, reliability, and more progression.

Explaining a Simple REST Example IntegrateBatch

The examples in this section use REST API resources to create, retrieve, update, and delete records, along with other record-related operations.

Login to your Salesforce org

Now here something is very important Method POST Endpoint  URL: https://skyvva-test-dev-ed.lightning.force.com/ RESOURCE : /services/apexrest/skyvvasolutions/integrateBatch

Now go back to your salesforce org

Click on Related List & create IStructure

Go to SoapUI Paste  this code under Media type section URL     : https://skyvva-test-dev-ed.lightning.force.com/ RESOURCE: /services/apexrest/skyvvasolutions/integrateBatch [aux_code language="javascript" theme="tomorrow" title="" extra_classes=""]{ "INTEGRATIONID" : "a0W2v000019ePQOEA2", "INTERFACENAME" :  "akash_Interface", "messages": [ { "BillingCountry": "Cam", "Name": "Test01", "BillingCity": "PP" }, { "BillingCountry": "Cam", "Name": "Test02", "BillingCity": "PP" }, { "BillingCountry": "Cam", "Name": "Test03", "BillingCity": "PP" } ] }[/aux_code]

Great you pass

Go to your salesforce org

Here is all information about our Integration Inbound processing

Explaining a Simple REST Example Create New Message

Follow the same steps to create the REST project. Go back to your salesforce org

Click on Related List create IStructure

[aux_code language="javascript" theme="tomorrow" title="" extra_classes=""] { "integrationid":"a0W2v000019eQGkEAM", "INTERFACENAME":"Interface_createNewMessage" , "messages":[ { "imessage":{ "skyvvasolutions__status__c":"Pending", "skyvvasolutions__Comment__c":"Test Comment1123456" }, "idata":{ "BillingCity":"Billing City0", "Name":"Account01" } }, { "imessage":{ "skyvvasolutions__status__c":"New", "skyvvasolutions__Comment__c":"Test Comment1123456" }, "idata":{ "BillingCity":"Billing City0", "Name":"Account22" } }, { "imessage":{ "skyvvasolutions__status__c":"Failed", "skyvvasolutions__Comment__c":"Test Comment1123456" }, "idata":{ "BillingCity":"Billing City0", "Name":"Account12" } } ] } [/aux_code]

Go to your Salesforce org

This is the example of Failed message see red flag, If user having business requirement New, Pending, and Cancelled messages use method process message to reprocess. As now we explain it in next step

Explaining a Simple REST Example Process Message

We have to follow the same steps for creating REST Project 3

Go back to your salesforce org

Go to SoapUI

[aux_code language="javascript" theme="tomorrow" title="" extra_classes=""]{ "INTEGRATIONNAME" : "Integration_createNewMessage", "INTERFACENAME" : "Interface_createNewMessage", "MODE":"SYNC", "STATUS":[ "New", "Pending", "Failed" ], "messages": [ "a0N2v00000aLYAlEAO", "a0N2v00000aLYAmEAO", "a0N2v00000aLYAnEAO" ] } [/aux_code] [su_box title="Key to remember" box_color="#2a8af0" title_color="#000000"]Click here to find messageID[/su_box]

Go to SoapUI

Go to your salesforce org

Explaining a Simple REST Example Integrate Synchronous

This feature is created to allow user call Skyvva Services by REST Api from their system.

Create interface & copy Name

Click on Related list & create IStructure

Go to SoapUI

[aux_code language="javascript" theme="tomorrow" title="" extra_classes=""] { "integrationid" : "Integrate_synchronous", "interfacename" : "Interface_synchronous", "batchmode" : "false", "messages": [ { "Name": "India", "BillingCity": "Mumbai", "BillingCountry": "India" } , { "Name": "USA", "BillingCity": "LA", "BillingCountry": "Virgina" } ] } [/aux_code]

Great code pass successfully

Click on Search button

Open this article in the interactive viewer →