Skip to content

This project consists of a Spring Boot API, developed to check which producer has the longest interval between two Raspberry Awards

License

Notifications You must be signed in to change notification settings

GiovaniRizzato/pior-filme-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raspberry Award Tracking System

Welcome to the Raspberry Award Tracking System project repository! This project consists of a Spring Boot API, developed to check which producer has the longest interval between two Raspberry Awards, according to the specification presented in Documentation (pt-BR).

Technologies Used 🛠️

Java SpringBoot Postman HsqlDB

Using the solution 🚀

  1. Clone this repository to your computer:

    git clone https://github.com/GiovaniRizzato/pior-filme-backend.git
  2. If necessary, replace the data in file at src\main\resources\csv\movielist.csv, following the format, as the exemple:

    year title studios producers winner
    1980 Can't Stop the Music Associated Film Distribution Allan Carr yes
    1980 Cruising Lorimar Productions, United Artists Jerry Weintraub
    1981 The Formula MGM and United Artists Steve Shagan
  3. Run the application using the Springboot IDE of your choice or enter the commands:

    mvn dependency:resolve
    mvn spring-boot:run

Using end-to-end testing ✔️

  1. Clone this repository to your computer:

    git clone https://github.com/GiovaniRizzato/pior-filme-backend.git
  2. Run all the integration tests at once using the commands:

    mvn dependency:resolve
    mvn test

*Note.: The data for testing is stored at src\test\resources\csv\movielist.csv, if that is changed the integration testing is going to break.

List of endpoints and Models 📋

Method URL Response Body
GET /movies Movie DTO
GET /movies?projection=min-max-win-interval-for-producers Producer Winning Gap DTO

Movie DTO

{
   movies: Movie[],
};

class Movie: { 
   id: number,
   year: number,
   title: string,
   winner: boolean,
   studios: string[],
   producers: string[],
};

Producer Winning Gap DTO

{
   min: ProducerWinning[],
   min: ProducerWinning[],
};

class ProducerWinning: {
   producer: string,
   interval: string,
   previousWin: number,
   followingWin: number,
};

About

This project consists of a Spring Boot API, developed to check which producer has the longest interval between two Raspberry Awards

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages