Inherits from NSObject
Declared in OlapicHandler.h

Overview

The base interface for the handler objects

Instance Methods

createEntityFromJSON:

Create entity from an API JSON response

- (id)createEntityFromJSON:(NSDictionary *)JSON

Parameters

JSON

The JSON dictionary

Return Value

An entity object

Availability

v1.0

Declared In

OlapicHandler.h

extractEntitiesFromRequest:

Extract entities from API response

- (NSDictionary *)extractEntitiesFromRequest:(NSDictionary *)request

Parameters

request

The request information

Return Value

A dictionary with the entities

Availability

v1.0

Declared In

OlapicHandler.h

getBulkRequest

Get an instance of the object for bulk requests

- (OlapicBulkRequest *)getBulkRequest

Return Value

A OlapicBulkRequest instance

Availability

v1.0

Declared In

OlapicHandler.h

getForms:

Get embedded forms URLs from an API JSON response

- (NSDictionary *)getForms:(NSDictionary *)forms

Parameters

forms

The form’s information from the API

Return Value

A dictionary with the form’s URLs

Availability

v1.0

Declared In

OlapicHandler.h

getResources:

Get embedded resource URLs from a JSON API response

- (NSDictionary *)getResources:(NSDictionary *)embedded

Parameters

embedded

The API JSON response

Return Value

A dictionary with the resource’s URLs

Availability

v1.0

Declared In

OlapicHandler.h

getSDK

Get the OlapicSDK reference

- (OlapicSDK *)getSDK

Return Value

A reference to the SDK singleton

Availability

v1.0

Declared In

OlapicHandler.h