Vjp888 / mount_olympus_api

A tech challenge for to organize historic data from previous Olympic Games
1 stars 0 forks source link

Creates the GET /api/v1/events/:id/medalists Endpoint #19

Closed Vjp888 closed 5 years ago

Vjp888 commented 5 years ago

What functionality does this accomplish?

closes #15

Description: Creates tests for endpoint both happy and sad path for graceful failure Creates Medalists Controller within Events to maintain RESTful routing Creates Medalists Serializer to ensure data is formatted correctly Creates route for Medalists endpoint Ensures that the data is presented properly while working off of large data sets All tests passing 100% coverage

What did you struggle on to complete?

I banged my head against the wall about ordering medalists by their medal. I think it might have been a flaw in how I generated the data and was handling it. In the end to protect my sanity I left it be and it will pull data in the order it retrieves it from the database. Not ideal but functional.

Current Test Suite:

Test Coverage Percentage: 100%

Checklist:

Please include an emoji of how you feel about this branch: