The API Explorer is used to perform specific tasks using service requests to the server via the API and the server processes the API call before returning a response. APIs enable a user to develop any kind of web application having all possible CRUD (create, retrieve, update, delete) operations.
Access the API Explorer
- Go to any project
- Click Create New Test button in the upper right corner of the page
- Select Architect
- The Create New Test window will open and click the API Endpoint tab
- Click Start to open the API Explorer
- The Architect will launch along with the Functionize API Explorer tool site
-OR-
- Go to any project
- Select Create New Test button in the upper right corner of the page
- Select Architect
- From the Web App tab, enter the URL for the site under test, confirm I understand that no production credentials should be used in my test cases, enter any further information, then click Start
- Once Architect is launched and recording has begun, click the plus icon
- Click API Explorer under the Tools section
- Select Open in a new tab (if desired), then click Add
- The API Explorer tool site will open along with the Architect
API Explorer Request Form
- Destination (drop-down selection):
- GET - Use GET requests to retrieve resource representation/information only
- POST - Use POST Request to create new subordinate resources
- PUT - Use PUT APIs primarily to update an existing resource
- DELETE - DELETE APIs are used to delete resources
- URL - enter API endpoint URL
- Response Type (drop-down selection):
- XML
- JSON
- Request Method (drop-down selection):
- HTTP
- SOAP
- Follow Redirect (drop-down selection):
- Yes
- No
- Output Type (drop-down selection):
- Formatted Response
- Tree Response
- Raw Response
- Authentication - Add Authentication
- Basic Auth - Enter the Username and Password to authenticate directly to a primary application
- OAuth 2 - Enter the access token in a URL parameter or HTTP header, this protocol allows users to grant third-party Providers (Google, GitHub, and others) application access to the user's protected resources, without necessarily revealing their long-term credentials
- Proxy - Enter the IP address and Port of the proxy server, authorization involves the use of 'Proxy-Authorization' header for HTTP requests
- Certificate - Add and manage SSL Certificates, a digital authentication of a website's identity which enables an encrypted connection
- Headers
- Name
- Value
- Add Another Header - optional, can add multiple
- Cookies
- Name
- Value
- Add Another Cookie - optional, can add multiple
- Parameters
- Name
- Value
- Add Another Parameter - optional, can add multiple
- Payload tab - Payload Type (drop-down selection):
- Text
- XML
- JSON
- Payload - enter payload string
- Launch Request - submits the API request and returns API response
Creating a Request
- Enter the request details, then select Launch Request
- The API Explorer Response results will populate, under the Response Data tab, select the + to view root details and at this point and select New Request to execute a new new API call, depending on the use case
JSON Explorer Tab
Use $. in the Enter Path field to access objects in the resulting JSON. For example, if you have an object called coord (for coordinates) with a name/value pair beneath called lon (for longitude), you could access it with $.array.coord.lon