OrganIA / organia-server

Backend of OrganIA, the organs priority matching solution
MIT License
0 stars 0 forks source link

Route for scoring #39

Closed Tina-otoge closed 2 years ago

Tina-otoge commented 3 years ago

We need a route to get all receivers listings with their associated score for a given donor listing

Example: GET /api/scores/{listing_id (donor)} Result:

[
{"listing": {...}, "score": 839},
{"listing": {...}, "score": 838},
{"listing": {...}, "score": 837},
{"listing": {...}, "score": 836},
]

Score should probably be calculated on the fly, not stored anywhere