swiss-seismological-service / REIA-ws

API for the data from the near real time event specific loss calculations.
GNU Affero General Public License v3.0
0 stars 0 forks source link

Fix Origin Endpoint to Return Latest Earthquake Parameters for Origin and not Event #20

Closed schmidni closed 7 months ago

schmidni commented 7 months ago

Bug Description

The endpoint /origin/{originid} returns the earthquake parameters for the preferred origin instead of the actual origin for which the originid is provided.

Acceptance Criteria

The endpoint must return the currently valid earthquake parameters belonging to the originid provided, even if this is not the currently preferred origin for an event.