Skip to content

Position Manager

Kelvin Ubaechu edited this page May 3, 2024 · 3 revisions

Position Manager

Position Manager

See packages org.theenergymashuplab.cts.controller.payloads, .model, .dao, and .repository for details.

The Position Manager uses JPA to store its information. The REST API for the PositionManager RestController is

  1. POST: /position/{positionParty}/add adds a position for a particular Party and time interval, creating a database row if not present.
  2. GET: /position/{positionParty}/getPosition retrieves the position for a specific Party and time interval (Historical)*
  3. POST: /position/{positionParty}/requestPosition retrieves the position for a specific party and time interval with use of CtsStreams

*This endpoint is still in the codebase, but no longer conforms to the new March 2024 Draft Standard, thus it shouldn't be used. Use the /requestPosition endpoint instead

Position Manager Model

PositionManagerModel represents the database table.

Position Repository

PositionRepository contains all the native SQL queries.

Clone this wiki locally