OData V4 Service Document
Using this module you can generate a service document response from a simple JSON format, an advanced schema JSON format or an Edmx instance created with odata-v4-metadata.
Basic usage
Use the simple JSON format and convert your metadata JSON to a service document.
var serviceDocument = ServiceDocument; // service document express.js routeapp;
Advanced usage
Use a schema JSON, which is more verbose, but you can customize the metadata in a more advanced way.
var ServiceDocument = ServiceDocument;var schema = ;var serviceDocument = ServiceDocument;var serviceDocumentJson = serviceDocument;
An example schema JSON looks like this