Creating and Invoking a Graphit Functionality From a Web Form

Graphit files can be generated either:

  • Using the Graphit Editor in the Fabric Studio.
  • Using a Web Form that can be accessed externally.

How Do I Invoke Graphit From a Browser?

  1. Open your Internet Browser and enter the following address: http://[Fabric IP address]:3213/static/graphit/graphit.html.

    For example: http://localhost:3213/static/graphit/graphit.html

  2. To define the nodes, go to Create and Edit a Graphit File.

  3. Define the parameters/values and token to debug the Graphit form.

  4. Select the type of output format by clicking one of the following icons:

    • JSON, click {:}

    • XML, click

    • CSV, click

      The response is displayed in the white panel on the right side of the screen:

  5. Test Graphit POST URL

Using postman (or any other similar tool), paste the POST link into the Query fieldand append the graphit parameter &graphit=%7B%0%220%2… (copied from from the GET URL) to the POST URL.

Example:

http://localhost:3213/graphit?nullformat=json&luName=k2_ws&graphit=%7B%0%220%2...

  1. Test Graphit cURL

Using a the cURL command of your shell environment type the following command, replacing the @myfile.graphit with the actual name and local path of the graphit file you wish to invoke.

curl -H "Content-Type: application/json" -d @myfile.graphit "http://localhost:3213/graphit?nullformat=json&luName=k2_ws"

Example:

curl -H "Content-Type: application/json" -d @C:\Users\DaniellaDavis\Downloads\graphit_file.graphit.graphit "http://localhost:3213/graphit?nullformat=json&luName=k2_ws"

Previous

Creating and Invoking a Graphit Functionality From a Web Form

Graphit files can be generated either:

  • Using the Graphit Editor in the Fabric Studio.
  • Using a Web Form that can be accessed externally.

How Do I Invoke Graphit From a Browser?

  1. Open your Internet Browser and enter the following address: http://[Fabric IP address]:3213/static/graphit/graphit.html.

    For example: http://localhost:3213/static/graphit/graphit.html

  2. To define the nodes, go to Create and Edit a Graphit File.

  3. Define the parameters/values and token to debug the Graphit form.

  4. Select the type of output format by clicking one of the following icons:

    • JSON, click {:}

    • XML, click

    • CSV, click

      The response is displayed in the white panel on the right side of the screen:

  5. Test Graphit POST URL

Using postman (or any other similar tool), paste the POST link into the Query fieldand append the graphit parameter &graphit=%7B%0%220%2… (copied from from the GET URL) to the POST URL.

Example:

http://localhost:3213/graphit?nullformat=json&luName=k2_ws&graphit=%7B%0%220%2...

  1. Test Graphit cURL

Using a the cURL command of your shell environment type the following command, replacing the @myfile.graphit with the actual name and local path of the graphit file you wish to invoke.

curl -H "Content-Type: application/json" -d @myfile.graphit "http://localhost:3213/graphit?nullformat=json&luName=k2_ws"

Example:

curl -H "Content-Type: application/json" -d @C:\Users\DaniellaDavis\Downloads\graphit_file.graphit.graphit "http://localhost:3213/graphit?nullformat=json&luName=k2_ws"

Previous