pkskelly / BlazorGolf

Blazor and Web API sample application to learn api design and blazor
MIT License
0 stars 0 forks source link

Create API Controller for Tees collection #23

Closed pkskelly closed 2 years ago

pkskelly commented 2 years ago

Create API Controller to handle API requests for Tees. Include the following endpoints and a model for the Tee entity. Tees should be persisted as part of the Course object in Cosmos. Unit tests should be HTTP driven to test the API not against the internal class implementation.

pkskelly commented 2 years ago

Changed the approach to manage tees from the Course controller for now. Since storing a Course can contain Tees, and CosmosDB is a better store for a single Course, this approach makes sense for now.

pkskelly commented 2 years ago

PR #46 completed this. The editing of Tees is done through the Course API endpoints. The inclusion of the /courses/{guid}/tees endpoint will enable listing tees for posting rounds in the future.