Skip to content

implement router for handling requests#86

Open
kbarbounakis wants to merge 10 commits intothemost-framework:lts-4from
kbarbounakis:85-batch-odata-endpoint
Open

implement router for handling requests#86
kbarbounakis wants to merge 10 commits intothemost-framework:lts-4from
kbarbounakis:85-batch-odata-endpoint

Conversation

@kbarbounakis
Copy link
Collaborator

@kbarbounakis kbarbounakis commented Feb 16, 2026

This pull request closes #85 and introduces batch request support to the application, allowing multiple API calls to be executed in a single HTTP request. It also adds corresponding tests and updates dependencies. The most significant changes are the implementation of the batch processing middleware, the addition of comprehensive tests for batch functionality, and dependency updates.

Batch request support:

  • Added a new batch middleware in src/batch.js that processes batch API requests, handling each sub-request with its own request and response objects and returning aggregated results.
  • Exported the new batch middleware from src/index.js for use in other modules.

Testing:

  • Added a new test suite in spec/batch.spec.js to verify batch request handling, including scenarios for successful batch execution and handling of non-existing endpoints.

Dependency updates:

  • Updated @themost/data to version 2.23.2 and downgraded @themost/sqlite to 2.11.1 in package.json to ensure compatibility.

Test configuration:

  • Increased the Jest test timeout from 15 seconds to 45 seconds in jest.setup.js to accommodate longer-running batch tests.

@kbarbounakis kbarbounakis added the enhancement New feature or request label Feb 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant