This repository contains a Web API that tracks and manages theme parks and their attractions. Admins can create and manage existing attractions. Guests can view attractions and rate them on a 5-star scale. This was built as a group project submission for Eleven Fifty Academy's Software Development course and can be run locally on your computer..
To run this program, you will need:
- Visual Studio Community
- A web browser
- Postman or another API testing program
- Clone to your local repository and open in VS Community.
- Open Package Manager Console. Select MousePark.Data as the default project and run "update-database" in the command line to seed the database.
- Run debugger. The API hyperlink at the top of the page will show you all available actions and test requirements.
- Open Postman to run tests. You'll need to Register and get a token to run certain tests.
- Admin can Post/Put/Delete objects in database.
- Guests/unregistered users can Get lists and details of existing objects, as well as create and manage Ratings for each object.
If upon running you receive an error “Cannot insert the value NULL into column ‘RatingId’”, you will need to make a small change to the Rating Table:
- Open the SQL Server Object Explorer
- Navigate to the MouseParkApi Database
- Open Tables
- Right-click on the Rating table and select "View Code"
- Change the line “[RatingId] INT NOT NULL,” to “[RatingId] INT IDENTITY (1,1) NOT NULL,”
- Select “Update” in the upper left corner of that window
- Select “Update Database” on the pop-up
- Alex Hamm /aphamm96
- Summer Kerekes /Phebesue
- Fletcher Kitchell /Fkitchell
- Sabra Snider /slsnider727
Simple User Authorization and Allowing Anonymous Users to use GET methods