Public APIs for Pulse

This documentation contains instructions for using public APIs of Pulse.

  1. Obtain JWT Token:
  • Open your terminal or command prompt.
  • Use the following curl command to obtain the JWT token and role:
Bash
Copy

Replace <pulse url>, <username>, and <base64 encoded password> with your specific values. The password should be base64 encoded.

  • Example:
Bash
Copy
  1. Capture JWT Token and Role:
  • After running the curl command, you should receive an output similar to this:
Bash
Copy
  • From this output, copy the jwt value and note down the role.
  1. Set Up Cookie Modifier Plugin:

    • Install a cookie modifier plugin in your browser (e.g., EditThisCookie for Chrome, Cookie Manager+ for Firefox).
    • Add the following three cookies:
      • jwt: Paste the JWT token obtained from the curl command.
      • Other cookies specific to your API's requirements, if any.
  2. Access GraphQL Playground:

    • Open your web browser.
    • Enter the following URL in the address bar:
Bash
Copy

Replace <pulse url> with your actual API URL.

  1. Verify Access:
    • If the cookies are valid and correctly set up, the GraphQL Playground should open up in your browser.
    • You should now be able to interact with the API using GraphQL queries.
  • Ensure that your JWT token is kept secure and not exposed unnecessarily.
  • Update cookies as required if token expiration or session management policies change.
  • Use a browser-based plugin, such as ModHeader or JWT Inspector to add an additional Json Web Token (jwt) header to the URL.
  • The page must be refreshed after the header is added. On refreshing the page, the Documentation Explorer panel appears on the right side.
  • Click on the Query hyperlink to view all the queries of the Pulse dashboard.
  • Enter the name of the query in the Search Schema search bar to search for a specific query.

This allows you to access APIs for Pulse. For more information on accessing public APIs, contact support@acceldata.io.

Rest API

REST API’s allow the user to get status on the running application. The following are the Rest API:

API to Create Roles

The following describes the method to input Roles to the user interface (UI).

  • Select any API testing tool to invoke an API.
  • Include the additional JSON Web Token (jwt) header for authentication in the request, which is obtained in the during logging in to the API testing tool.
  • Include the following argument:

Method - Post

JSON
Copy

The following are the list of available components for permissions:

JSON
Copy

API to Create Bulk Users

The following describes the method to input bulk Users to the UI.

  • Select any API testing tool to invoke an API.
  • Include the additional JSON Web Token (jwt) header for authentication in the request, which is obtained in the during logging in to the API testing tool.
  • Include the following argument:

Method - Post

JSON
Copy

Note An array of User objects can be sent as payload to the above API to insert multiple users at once.

API to Fetch Version Details

You can use the following API details and steps to fetch the Pulse version.

  • Select any API testing tool to invoke an API.
  • Include the additional JSON Web Token (jwt) header for authentication in the request, which is obtained during logging into the API testing tool.
  • Include the following argument:

Method - Get

Endpoint URL: /get-pulse-version

GraphQL Query:

Bash
Copy

Response:

Bash
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard