Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ApiService

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Private http

http: HttpClient

Methods

delete

  • delete(url: string, options?: any): Observable<any>
  • Makes an HTTP DELETE call to the given url

    Parameters

    • url: string
    • Default value options: any = httpOptions

    Returns Observable<any>

get

  • get(url: string, params?: any, options?: any): Observable<any>
  • Makes an HTTP GET call to the given url

    Parameters

    • url: string
    • Optional params: any
    • Default value options: any = httpOptions

    Returns Observable<any>

mapError

  • mapError(error: any): Observable<any>

mapResponse

  • mapResponse(response: any): any
  • Handles any non-error responses from the server, and returns the body of the response.

    Parameters

    • response: any

    Returns any

patch

  • patch(url: string, body: any, options?: any): Observable<any>
  • Makes an HTTP PATCH call to the given url

    Parameters

    • url: string
    • body: any
    • Default value options: any = httpOptions

    Returns Observable<any>

post

  • post(url: string, body: any, options?: any): Observable<any>
  • Makes an HTTP POST call to the given url

    Parameters

    • url: string
    • body: any
    • Default value options: any = httpOptions

    Returns Observable<any>

put

  • put(url: string, body: any, options?: any): Observable<any>
  • Makes an HTTP PUT call to the given url

    Parameters

    • url: string
    • body: any
    • Default value options: any = httpOptions

    Returns Observable<any>

Generated using TypeDoc