Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ResourcesEndpointV2

Handles requests to the resources route of the Knora API.

Hierarchy

Index

Internal Constructors

constructor

Properties

jsonConvert

jsonConvert: JsonConvert = new JsonConvert(OperationMode.ENABLE,ValueCheckingMode.DISALLOW_NULL,false,PropertyMatchingRule.CASE_STRICT)

JsonConvert instance

Protected knoraApiConfig

knoraApiConfig: KnoraApiConfig

the config object.

Protected path

path: string

this endpoint's base path.

Accessors

jsonWebToken

  • get jsonWebToken(): string
  • set jsonWebToken(value: string): void

Methods

createResource

deleteResource

getResource

getResources

Protected handleError

Protected httpDelete

  • httpDelete(path?: undefined | string): Observable<AjaxResponse>
  • Performs a general PUT request.

    Parameters

    • Optional path: undefined | string

      the relative URL for the request

    Returns Observable<AjaxResponse>

Protected httpGet

  • httpGet(path?: undefined | string): Observable<AjaxResponse>
  • Performs a general GET request.

    Parameters

    • Optional path: undefined | string

      the relative URL for the request

    Returns Observable<AjaxResponse>

Protected httpPatch

  • httpPatch(path?: undefined | string, body?: any, contentType?: "json"): Observable<AjaxResponse>
  • Performs a general PATCH request.

    Parameters

    • Optional path: undefined | string

      the relative URL for the request

    • Optional body: any

      the body of the request

    • Default value contentType: "json" = "json"

      content content type of body, if any.

    Returns Observable<AjaxResponse>

Protected httpPost

  • httpPost(path?: undefined | string, body?: any, contentType?: "json" | "sparql"): Observable<AjaxResponse>
  • Performs a general POST request.

    Parameters

    • Optional path: undefined | string

      the relative URL for the request

    • Optional body: any

      the body of the request, if any.

    • Default value contentType: "json" | "sparql" = "json"

      content content type of body, if any.

    Returns Observable<AjaxResponse>

Protected httpPut

  • httpPut(path?: undefined | string, body?: any, contentType?: "json"): Observable<AjaxResponse>
  • Performs a general PUT request.

    Parameters

    • Optional path: undefined | string

      the relative URL for the request

    • Optional body: any

      the body of the request

    • Default value contentType: "json" = "json"

      content content type of body, if any.

    Returns Observable<AjaxResponse>

updateResourceMetadata

Generated using TypeDoc