CASE 1 - API COB. - BACKEND Api CASE 1 The Olimpic Games - Teste prático da EstanteVirtual
There are two modalities - 100m : the fastest ( seconds) Dart Throw: Longest distance wins (meters)
Create a competition Register results for a competition (all fields are mandatory), e
{ "competition": "100m qualifying 1", "name": "Joao das Neves", "value": "10,234" }
{ "competition": "Dart semifinal", "name": "Claudio", "value": "70.43"}
End a competition.
Return the competition ranking, displaying the final position of each athlete. Details: The API must not accept results entries if the competition is already closed. API may return partial ranking/result if dispute is not closed yet. In the case of the dart throwing competition, each athlete will have 3 chances, and the result of the competition must take into account the farthest throw of each athlete. The API design, as well as data input and output, is up to you, being one of the evaluation points. Return the competition ranking, displaying the final position of each athlete. Details: The API must not accept results entries if the competition is already closed. API may return partial ranking/result if dispute is not closed yet. In the case of the dart throwing competition, each athlete will have 3 chances, and the result of the competition must take into account the farthest throw of each athlete. The API design, as well as data input and output, is up to you, being one of the evaluation points. Tests are mandatory.
PostMan
https://documenter.getpostman.com/view/19294726/UyxohPcn
Front end to using React - still working in progress.I dit forfun in last on day.
https://cob_case1_gabriel_martins.surge.sh/competitor
HEROKU - API
Look at PostMan above for documentation and endpoints
main address api => https://case-1-cob.herokuapp.com

