MovieRatingApi is a RESTful API for managing movie ratings and comments. The API allows users to create movie ratings and comments for movies.
- Create movies for evaluation by users
- Create movie ratings
- Create movie comments
- ASP.NET Core
- Entity Framework Core
- SQL Server
- Swagger UI
To get started with the project, follow these steps:
- Clone the repository:
git clone https://github.com/aytacaydemir/MovieRatingApi.git
- Update the connection string in
appsettings.json
to point to your SQL Server instance - Run script.sql file in your local SQL Server database.
- Run the application:
dotnet run
The following endpoints are available:
POST /api/Rating
: Create/Update a new rating on a moviePOST /api/Movie
: Create a new moviePOST /api/Comment
: Create a new comment on a movieGET /api/Movie
: Get all moviesPOST /api/Auth
: Generate JWT Token for User
This project built with SQL Server locally. This script.sql file can be used to create tables and insert sample data to SQL Server Database.
To access the API documentation, navigate to the root URL of the application. Swagger UI will start automatically. The UI provides documentation for the API endpoints and allows you to try out the API directly in your browser.