Skip to content

Phebesue/BlueBadgeRepo

Repository files navigation

MousePark

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..

Prerequisites

To run this program, you will need:

  • Visual Studio Community
  • A web browser
  • Postman or another API testing program

Running the 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.

Bug Fix

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

Authors

Resources Used

Serializing Enums

Simple User Authorization and Allowing Anonymous Users to use GET methods

More on Authentication and Authorization

Account Management

More on Account Management

Data Annotations with FK

Routing Annotations

LINQ Expressions

More on LINQ Expressions

Understanding Lambda Expressions

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •