Skip to content

ataberkuysal/entertainment-media

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

entertainment-media

A Web App For Any Type Of Entertainment Media

  • Create a Series aswell as its Seasons and Episodes and use different Endpoints to Fetch or Update them.

Technologies Used

  • JDK 19
  • Spring Boot 3
  • Maven
  • PostgreSQL
  • JPA/Hibernate
  • JUnit5
  • Spring Security(JWT)
  • MapStruct/ ModelMapper
  • AOP(Exception Handling and Method Logging)

How to Start

Prerequisites

- JDK 19
- Maven
- PostgreSQL
- Postman (Optional)

Clone the Repository and Run it on Local

git clone https://github.com/ataberkuysal/entertainment-media.git
mvn spring-boot: run

*Runs on localhost:8080

Use the Postman Collection below to start making requests

Postman Collection for Requests

! Recent Update of Postman requires an account if you want to fork or make changes to the requests from the Collection itself !

Link to the Collection

https://www.postman.com/avionics-architect-34360217/workspace/workspace1/collection/25215258-f4988a25-7bd1-46b8-a696-ae8b3334ad11?action=share&creator=25215258

Alternatively, Fork The Collection via Button Below

Run in Postman

Swagger to see the available endpoints. (Use the Postman collection for requests):

http://localhost:8080/swagger-ui/index.html#/season-entity-controller/postCollectionResource-season-post

Example on how to use Entertainment Media ↓

Lets Create "GameOfThrones" as well as its "Season 1" and its Pilot Episode.

We will follow the requests 1 to 5 in order as marked below ↓

First, Make sure the Authentication is set correctly by following the description and using the first two requests "1" and "2"

1

1 -> Register the User

image

2 -> Authenticate the said User and copy the Token in the response and paste it to EnvMedia Collection Parent Authorization Tab

image image Adsız tasarım

We can now start creating our entities.

3 -> Create a Serie using the request "POST Serie". This will respond with the created Serie. Copy its "serieId" value.

image

4 -> Create a Season for the Serie we just created by giving its serieId and use the Request "GET Series" to fetch the Series' we've created thus far to see the results.

image

image

We forgot to give it a name. Let's give it a name ("Season 1") and overall rating by using the "PATCH Update a Specific Season" Request

image image

5 -> Repeat by using the seasonId to create Episode 1 and Episode 2 for Season 1 and We Are Done! ↓

image

OneToMany / ManyToOne bidirectional relationship between Series and its child entities can be seen below ↓

image

About

A Web App For Any Type Of Entertainment Media

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published