The purpose of this project was to practice building an API with full CRUD (create, read, update, and delete) functionality for state and national parks. Parks can be searched by name, location, terrain, and description.
- Clone this repository
- Navigate to the main directory, "parks-lookup"
- Navigate to the API project directory, "Parks"
- Run the command "dotnet restore"
- Run the command "dotnet ef database update"
- Run the command "dotnet watch run"
- To visit Swagger documentation, go to the URL "http://localhost:5000/swagger/" in a browser
- GET request URL to get all parks: http://localhost:5000/api/Parks
- Example GET request URL to search for the park with the ID of 1: http://localhost:5000/api/Parks/1
- Example GET request URL to search for Yellowstone National Park: http://localhost:5000/api/Parks?name=Yellowstone
- Example GET request URL to search for "mountain" in the terrain field and "Alaska" in the location field: http://localhost:5000/api/Parks?location=Alaska&terrain=mountain
C#, ASP.NET Core MVC, MySQL, Entity, Swashbuckle/Swagger, CSS, Bootstrap, HTML
Open-source
Copyright (c) 2019 Jacqueline Remmel