EWAI-SERVER REST API
EWAI-SERVER exposes a REST API. The primary purpose of the REST API is for EWAI-LISTEN to send PTD messages in for validation and storage (received from EW-Messaging) and also to serve the actual datasets for EWAI assets up to EWAI-MARKET or other application layer consumers. For all other operations (e.g., adding assets, updating assets, etc.), the GraphQL API is the preferred API.
API ENDPOINTS
With default settings, the REST API endpoint is:
http://localhost:3001/ewai/v1
OPENAPI/SWAGGER ENDPOINTS
With default settings, the REST API OpenApi/Swagger endpoints are:
http://localhost:3001/swagger
http://localhost:3001/swagger-json
AUTHENTICATION
REST API consumers must authenticate via username/password login. These values are set in the .env config file for EWAI-SERVER.
Subsequent calls must provide the JTW Bearer authentication token on all calls except the one call to retrieve the ewaiInstance identification information at the root of the REST API endpoint shown above.