OData V4 Resource
OData v4 resource path handler
Using low-level
createODataPath(exampleUri, metadata): creates an Express route path from an example OData URI
var createServiceOperationCall = createServiceOperationCall;var createODataPath = createODataPath; app;
Using resource controller
Create a router module:
var express = ;var router = express; var ODataController = ODataController;var metadata = ; { thisMySingleton = /* ... */ ; this{ /* ... */ return /* ... */ ; }; this{ /* ... */ return /* ... */ ; }; this{ return { var start = Date; ; }; }; this{ return /* ... */ ; }; this{ /* ... */ };} router; moduleexports = router;
Use your controller router in Express:
app;