Interface HttpAdapterExperimental

Hierarchy

  • HttpAdapter

Properties

Properties

get: ((url: string) => Promise<any>)

Type declaration

    • (url: string): Promise<any>
    • Experimental

      Adapter function for issuing a HTTP-GET request

      Errors during execution are directly handed to the consumer of the ng112-js SDK

      Returns

      a JSON object or undefined

      Parameters

      • url: string

        URL the call shall be issued to

      Returns Promise<any>

post: ((url: string, body: any) => Promise<any>)

Type declaration

    • (url: string, body: any): Promise<any>
    • Experimental

      Adapter function for issuing a HTTP-POST request

      Errors during execution are directly handed to the consumer of the ng112-js SDK

      Returns

      a JSON object or undefined

      Parameters

      • url: string

        URL the call shall be issued to

      • body: any

        POST body as JSON object

      Returns Promise<any>

Generated using TypeDoc