Skip to Content
API ReferenceAPI Reference

API Reference

Welcome to the Eventara API documentation. This section provides detailed information about all available REST API endpoints.

Base URL

http://localhost:8080

For production deployments, replace with your actual domain.

Authentication

Current State: No authentication is implemented in the current version.

Production Recommendation: Implement JWT or OAuth2 authentication before deploying to production.

Content Type

All API requests and responses use JSON format:

Content-Type: application/json

Response Format

Success Response

{ "status": "accepted", "eventId": "evt_a1b2c3d4", "message": "Event accepted for processing" }

Error Response

{ "status": "error", "message": "Validation failed", "errors": { "eventType": "eventType is required (e.g., 'payment.failed')", "source": "source is required (e.g:, 'payment-service')" } }

API Sections

Common HTTP Status Codes

CodeDescription
200OK - Request successful
201Created - Resource created successfully
202Accepted - Request accepted for processing
400Bad Request - Invalid input
404Not Found - Resource not found
500Internal Server Error - Server error occurred
501Not Implemented - Endpoint not yet implemented

Rate Limiting

Current State: No rate limiting is implemented.

Production Recommendation: Implement rate limiting to prevent abuse (e.g., 1000 requests per minute per IP).

Interactive Documentation

Swagger UI is available for interactive API exploration:

http://localhost:8080/swagger-ui.html

This provides a web interface to test endpoints directly.

Last updated on