How to get the GraphQL template

GraphQL template is used to scan the APIs with GraphQL queries. In this topic you can learn the ways in which you can get the GraphQL template.

About this task

You can get the GraphQL template using one of the following three ways listed in the procedure.

Procedure

  1. Download the GraphQL template available in the AppScan Enterprise installation directory, in the path: <install-directory>\AppScan Enterprise\WebApp\downloads\GraphQL.scant
  2. Download the GraphQL template using the following link:
    • Link: https://<AppScan Enterprise Server>/ase/downloads/GraphQl.scant
    • AppScan Enterprise Server: The complete hostname of the AppScan Enterprise server
    • Example: https://asetest.com/ase/downloads/GraphQl.scant
  3. Create a GraphQL Template using the REST API using the following steps:
    1. Navigate to the AppScan Enterprise REST API page.
    2. Execute the API with the attribute details provided as follows:
      • API: POST/templates
      • Name: Provide a unique template name, preferably GraphQL
      • Description [Optional]: Preferable description - Used for running scans with GraphQL APIs
      • uploadedfile: Upload the GraphQL.scant template file
    3. Execute the API.
      Note: The response code: 201 confirms the successful creation of the Graph QL template.
    4. In the AppScan Enterprise instance, the GraphQL template is listed in the Scan's page Templates folder along with the other templates with the same name provided during the creation of the template (preferably GraphQL).

What to do next

You can now use this template to create and run the scans with APIs with GraphQL queries.