Skip to content

rikw22/Challenge-RazzieAwardsApi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code Challenge - Golden Raspberry Awards

Statement

Develop a RESTful API that returns the list of nominees and winners of the Worst Film category of the Golden Raspberry Awards.

Requirements

  • JDK 21+

How to run this project

./mvnw spring-boot:run

How to run the tests of this project

./mvnw test

Http Request

curl http://localhost:8080/producer/stats

API Documentation (Swagger UI)

http://localhost:8080/swagger-ui/index.html

Sample Response - Award intervals Response

{
  "min": [
    {
      "producer": "Producer 1",
      "interval": 1,
      "previousWin": 2008,
      "followingWin": 2009
    },
    {
      "producer": "Producer 2",
      "interval": 1,
      "previousWin": 2018,
      "followingWin": 2019
    }
  ],
  "max": [
    {
      "producer": "Producer 1",
      "interval": 99,
      "previousWin": 1900,
      "followingWin": 1999
    },
    {
      "producer": "Producer 2",
      "interval": 99,
      "previousWin": 2000,
      "followingWin": 2099
    }
  ]
}

TODO

  • Add Global Exception Handler

About

Code Challenge - Golden Raspberry Awards.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages