Methods
handle(req, res)
Main OData endpoint handler. Will parse the request route and call sub-handler.
Arguments:
-
req
(THTTPRequest)
-
res
(THTTPResponse)
metadata(req, res, params)
Metadata /$metadata request
Arguments:
-
req
(THTTPRequest)
-
res
(THTTPResponse)
-
params
(Object)
notFoundError(req, res, params)
Write "Resource not found" error back to caller
Arguments:
-
req
(THTTPRequest)
-
res
(THTTPResponse)
-
params
(Object)
checkEntitySet(req, res, params, methodopt) → TubEntity|null
Check entity set exist in entitySetMapping and return entity or write notFound resp and return null
Arguments:
-
req
(THTTPRequest)
-
res
(THTTPResponse)
-
params
(Object)
-
[method]
(String)
 if passed check ELS
queryByID(req, res, params)
Single instance request
Arguments:
-
req
(THTTPRequest)
-
res
(THTTPResponse)
-
params
(Object)
query(req, res, params)
Single instance request
Arguments:
-
req
(THTTPRequest)
-
res
(THTTPResponse)
-
params
(Object)
collections(req, res, params)
Root OData request - must return a EntitySet collection
Arguments:
-
req
(THTTPRequest)
-
res
(THTTPResponse)
-
params
(Object)
update(req, res, params)
PATCH OData request. Support optimistic lock using E-Tag
Arguments:
-
req
(THTTPRequest)
-
res
(THTTPResponse)
-
params
(Object)
req
(THTTPRequest)
res
(THTTPResponse)
req
(THTTPRequest)
res
(THTTPResponse)
params
(Object)
req
(THTTPRequest)
res
(THTTPResponse)
params
(Object)
req
(THTTPRequest)
res
(THTTPResponse)
params
(Object)
[method]
(String)
 if passed check ELS
req
(THTTPRequest)
res
(THTTPResponse)
params
(Object)
req
(THTTPRequest)
res
(THTTPResponse)
params
(Object)
req
(THTTPRequest)
res
(THTTPResponse)
params
(Object)
req
(THTTPRequest)
res
(THTTPResponse)
params
(Object)