The REST API is done for the SQL Baseball Statistics Database. I used ASP.NET Core 2.0 Web API for development. You can play around with the API here:

http://baseballhistoryapi.azurewebsites.net/swagger

The API is created using ASP.NET Core 2.0 Web API against the SQL Baseball Statistics Database I mentioned in a previous post. The API and database are all hosted in Windows Azure.

Here are some sample URL’s for specific things:

Personal Details for Hank Aaron
https://baseballhistoryapi.azurewebsites.net/api/People/aaronha01

Yearly Batting for Hank Aaron
https://baseballhistoryapi.azurewebsites.net/api/Batting/aaronha01

Detroit Tigers Team Franchise
http://baseballhistoryapi.azurewebsites.net/api/TeamsFranchises/DET

All Teams for the Detroit Tigers
http://baseballhistoryapi.azurewebsites.net/api/Teams/DET

1984 Detroit Tigers Team
http://baseballhistoryapi.azurewebsites.net/api/Teams/DET/AL/1984

1984 Detroit Tigers Team Batting
http://baseballhistoryapi.azurewebsites.net/api/Batting/DET/AL/1984

This will give you the entire metadata for the API using Swagger
http://baseballhistoryapi.azurewebsites.net/swagger

The Git repository for the project is located here
https://github.com/cwoodruff/BaseballHistoryAPICore2

Hope everyone enjoys it.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.