Skip to content

Latest commit

 

History

History

integrationos-api

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

IntegrationOS API

Common API for the IntegrationOS project.

For a full list of endpoints, please refer to the following files:

Running the API

$ cargo watch -x run -q | bunyan

Running the API with a specific configuration

Create a .env file in the root of the project with the following environment:

RUST_LOG=info
ENVIRONMENT=development
EVENT_DATABASE_URL=mongodb://localhost:27017/?directConnection=true
CONTROL_DATABASE_URL=mongodb://localhost:27017/?directConnection=true
CONTEXT_DATABASE_URL=mongodb://localhost:27017/?directConnection=true
UDM_DATABASE_URL=mongodb://localhost:27017/?directConnection=true
EVENT_DATABASE_NAME=events-service
CONTEXT_DATABASE_NAME=events-service
CONTROL_DATABASE_NAME=events-service
UDM_DATABASE_NAME=events-service

Then run the following command:

$ cargo watch -x run -q | bunyan

Running the API tests

cargo nextest run --all-features