https://github.com/kh-suleiman99/movies-api
This project is an exercise to apply what I have learned about .NET Technology. I used C#,SQL Server, EF Core, LINQ, .NET API, Identity, JWT Berar token.
https://github.com/kh-suleiman99/movies-api
api csharp dotnetcore efcore identity jwt-authentication linq sql
Last synced: about 1 year ago
JSON representation
This project is an exercise to apply what I have learned about .NET Technology. I used C#,SQL Server, EF Core, LINQ, .NET API, Identity, JWT Berar token.
- Host: GitHub
- URL: https://github.com/kh-suleiman99/movies-api
- Owner: kh-Suleiman99
- Created: 2024-08-06T17:54:51.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-08-06T17:58:50.000Z (almost 2 years ago)
- Last Synced: 2025-02-12T12:58:18.809Z (over 1 year ago)
- Topics: api, csharp, dotnetcore, efcore, identity, jwt-authentication, linq, sql
- Language: C#
- Homepage:
- Size: 125 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Movies-API
This project is an exercise to apply what I have learned about .NET Technology. I used C#,SQL Server, EF Core, LINQ, .NET API, Identity, JWT Berar token.

## Table of Contents
1. [Roles](#roles)
2. [Movie](#movie)
3. [Genre](#genre)
## Roles
There are two roles in this app, User and Admin.
User can GET all movies, GET a movie by id, GET movies by a genre id, Add a favorite movie, Get favorite movies and Get all genres.
Admin can create a movie, update a movie, delete a movie by id, create a genre, update a genre, delete a genre and add role for users.
## Movie
```C#
public class Movie
{
public int Id { get; set; }
public string Title { get; set; }
public int Year { get; set; }
public double Rate { get; set; }
public string StoryLine { get; set; }
public byte[] Poster { get; set; }
public string Author { get; set; }
public byte GenreId { get; set; }
public Genre Genre { get; set; }
}
```
## Genre
```C#
public class Genre
{
public byte Id { get; set; }
public string Name { get; set; }
}
```