The project used Teiid Spring Boot runtime to connect MongoDB database raasagent
and exposed collections as OData API. It created to showcase complex type rows
in matrix_variable
collection doesn't exposed as entity in OData.
First start the MongoDB instance and use the following command to import MongoDB database:
mongorestore.exe --host localhost:27017 --db raasagent ./mongodb/raasagent
if you have problem import the DB to your MongoDB instance, just create a database name raasagent
and a collection name matrix_variable
. The collection only has single document like the json/sample.json file.
Execute the following command to run the project locally:
mvn spring-boot:run
Access the OData endpoint with the following URL:
http://localhost:8080/odata/$metadata