OData Mock
The OData mock mocks the application APIs based on the OData specification.
Features
The OData mock brings you the following features:
-
Based on the n-odata package: The odata-mock application is based on the n-odata-server project, which is based on loopback.
-
Returns the OData specification as metadata: Call
/odata/$metadata
to see the ODataedmx
specification used inxml
format.
Development
Make sure you have first executed make resolve
from the project root!
To run the Odata mock locally with an empty configuration, use:
npm start
To run it locally with debug logs enabled and an example configuration from the test suite, use:
npm run start:dev
After the startup, you have access to:
- odata API -
http://localhost:10000/odata/
- odata metadata -
http://localhost:10000/odata/$metadata
- rest API -
http://localhost:10000/api/console