API Tester
The API Tester is an interface to interact with the converted Excel to API logic.
If you are a business user who owns the Excel spreadsheet and logic, you can use API Tester as a calculator and perform interactive form-based unit testing on your models.
If you are a developer, the API Tester makes it easy to understand how to integrate with the calculation API.
After choosing a specific service from the Folder overview, select the
icon from the service sidebar.
Testing
Send API requests
Load the API Tester for your service.
In API request (inputs), the API Tester displays inputs in the Field view.
The input fields will contain the default values from the Excel file.
Enter the desired values for the inputs for the API call. Spark will render a form interface. Each input will have a means to enter values:
Inputs can be sorted alphabetically.
Single cell value
Xinputcan be entered via a textbox or a dropdown menu if the input contains a Data Validation List. The form will also attempt to process any dynamic validations where oneXinputvalue will impact the valid list for anotherXinput.Ranged
Xinputhas a button to open a modal with a grid interface. The dimensions of the multiple-cell range depend on the default values in Excel.XCSVinputhas a button to open a textbox to enter CSV text.
Select Submit to execute the API call.
In API response (outputs), the outputs appear in the Field view. The Field view is separated into expandable sections for Single values, table outputs, Errors, Warnings, Transaction details.
Change the request and response views
Field view
The default view. Inputs and outputs are rendered in a form.
Outputs are rendered into expandables for Single values, table outputs, Reports, Errors, Warnings, Transaction details.
JSON view
The JSON viewer shows a syntax highlighted request body. Keys and values can be modified through the interface.
The JSON viewer shows a syntax highlighted response body.
Raw view
Text editor view of the request body.
Text editor view of the response body.
request_meta modify the behavior of an API call such as passing the call_purpose and source_system. These can be tested in the JSON view or Raw view. Note that the version_id cannot be changed and that transaction_date testing cannot be done through the API Tester.
Customize the request
Service version
Select the service version to test. It is not possible to test the Manage service versions and effective dates dynamic version selection through the API Tester.
API format
The default API format is V3. V1 is available for legacy users.
Endpoint URL
This is the endpoint URL to call to execute calculations.
Custom endpoint
Enable a custom endpoint path for this service. See Path parameters.
Service type
Defines the compiler type to process this API call.
Neuron is the default for all Excel files uploaded to Spark.
Type3 is offered for legacy purposes.
XConnector can make calls to external resources.
Requested output
Comma separated string containing output names to filter in the response. Find out more in request_meta under requested_output and requested_output_regex.
Subservices
Select subservices to execute in the request. Find out more in Sub functions with subservices.
Integration
Generate a Swagger specification
Spark generates a code snippet based upon OpenAPI specification 2.0, formerly known as Swagger.
Many no-code / low-code platforms can ingest Swagger specifications for API integration.
Generate code snippets
Get sample code to integrate API into your application.
OpenAPI option returns a comprehensive OpenAPI specification 3.1.0 for the Spark service.
Code snippets are also available in 25+ programming languages (such as C#, curl, JavaScript, and Python). The snippets are generated using postman-code-generators.
Documentation
Download API documentation
Spark generates an API specification document for your API. For both Execute API (v3) and Validation APIs, sections include:
Authorization
Request headers
Request parameters and sample
Response attributes and sample
curl statement
The report can be exported as an HTML or PDF file.
Last updated
