Skip to content

This project was developed based on "Intensivão Java Spring", provided by teacher Nélio from youtube channel Devsuperior Java Spring.

Notifications You must be signed in to change notification settings

JuliaVasconcelos161/dslist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dslist Project

Project Description

This project was developed based on "Intensivão Java Spring", provided by teacher Nélio from youtube channel Devsuperior Java Spring.

On dslist application, user can search a game by id, search a list containing all games, search a list containing all gameLists, or move game's position. It was implemented using Java language, and Spring Boot framework, as database was used PostgreSQL allocated on Docker's container. Dslist's test properties has H2Database configured, so it's possible to make local tests using this memory database preventing develop's database to get full of test's records.

Technologies:

  • Java
  • Spring Boot
  • PostgreSQL
  • Docker
  • H2Database

Endpoints

  • Search all games

    Http Method: GET

    Path:/games

    Payload: none

    Response: List of GameMinDto

    Response Example:

                [
                    {
                        "gameId": 1,
                        "title": "Mass Effect Trilogy",
                        "year": 2012,
                        "urlImg": "https://raw.githubusercontent.com/devsuperior/java-spring-dslist/main/resources/1.png",
                        "shortDescription": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Odit esse officiis corrupti unde repellat non quibusdam! Id nihil itaque ipsum!"
                    },
                    {
                        "gameId": 2,
                        "title": "Red Dead Redemption 2",
                        "year": 2018,
                        "urlImg": "https://raw.githubusercontent.com/devsuperior/java-spring-dslist/main/resources/2.png",
                        "shortDescription": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Odit esse officiis corrupti unde repellat non quibusdam! Id nihil itaque ipsum!"
                    }
                ]
            
  • Search game by gameId

    Http Method: GET

    Path:/games/{gameId}

    Payload: none

    Response:GameDto

    Response Example:

                    {
                        "gameId": 1,
                        "title": "Mass Effect Trilogy",
                        "year": 2012,
                        "genre": "Role-playing (RPG), Shooter",
                        "platforms": "XBox, Playstation, PC",
                        "score": 4.8,
                        "urlImg": "https://raw.githubusercontent.com/devsuperior/java-spring-dslist/main/resources/1.png",
                        "shortDescription": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Odit esse officiis corrupti unde repellat non quibusdam! Id nihil itaque ipsum!",
                        "longDescription": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Delectus dolorum illum placeat eligendi, quis maiores veniam. Incidunt dolorum, nisi deleniti dicta odit voluptatem nam provident temporibus reprehenderit blanditiis consectetur tenetur. Dignissimos blanditiis quod corporis iste, aliquid perspiciatis architecto quasi tempore ipsam voluptates ea ad distinctio, sapiente qui, amet quidem culpa."
                    }
                
  • Search gameLists

    Http Method: GET

    Path:/lists

    Payload: none

    Response: List of GameListDto

    Response example:

                    [
                        {
                            "gameListId": 1,
                            "name": "Aventura e RPG"
                        },
                        {
                            "gameListId": 2,
                            "name": "Jogos de plataforma"
                        }
                    ]
                
  • Search games by gameListId

    Http Method: GET

    Path:/{gameListId}/games

    Payload: none

    Response: List of GameMinDto

    Response example:

                    [
                        {
                            "gameId": 6,
                            "title": "Super Mario World",
                            "year": 1990,
                            "urlImg": "https://raw.githubusercontent.com/devsuperior/java-spring-dslist/main/resources/6.png",
                            "shortDescription": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Odit esse officiis corrupti unde repellat non quibusdam! Id nihil itaque ipsum!"
                        },
                        {
                            "gameId": 7,
                            "title": "Hollow Knight",
                            "year": 2017,
                            "urlImg": "https://raw.githubusercontent.com/devsuperior/java-spring-dslist/main/resources/7.png",
                            "shortDescription": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Odit esse officiis corrupti unde repellat non quibusdam! Id nihil itaque ipsum!"
                        }
                    ]
                
  • Move game's position

    Http Method: POST

    Path:/{gameListId}/replacement

    Payload: ReplacementDto

    Payload example:

                    {
                        "sourceIndex": 3,
                        "destinationIndex": 1
                    }
                

    Response: none

About

This project was developed based on "Intensivão Java Spring", provided by teacher Nélio from youtube channel Devsuperior Java Spring.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages