Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RESTSourceGraphQL

Class for working with a REST endpoint using a GraphQL request

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • new RESTSourceGraphQL(endpoint: string, query: string, filename?: string, headers?: {}[], auth?: string): RESTSourceGraphQL
  • Parameters

    • endpoint: string

      URL of the data source from where the JSON needs to be read.

    • query: string

      Graphql query.

    • Optional filename: string

      Name of the output file. Optional.

    • Optional headers: {}[]

      HTTP headers, e.g. [{"Content-Type":"application/json"}, {"Custom-Auth-Token":"xysazxklj4568asdf46a5sd4f"}]. Optional.

    • Optional auth: string

      Basic authentication i.e. 'user:password' to compute an Authorization header. Optional.

    Returns RESTSourceGraphQL

Properties

auth

auth: undefined | string

datasource

datasource: string

endpoint

endpoint: string

filename

filename: undefined | string

headers

headers: undefined | {}[]

query

query: string

Methods

asDict

  • asDict(): {}

Generated using TypeDoc