Skip to content

An applications that consumes Breaking Bad API and allow you to favorite characters from that.

Notifications You must be signed in to change notification settings

bclaud/BreakingBad-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Breaking Bad API

An application to consume Breaking Bad API and to favorite characters from that. That API was coded with the porpuse of practising what I've learnt about hexagonal archictecute. Check out my blog post: Basics of hexagonal architecture

Requirements

  • JDK-11
  • Lombok plugin for your IDE
  • git

or

  • Docker properly installed if you want to run using the available docker image

Install and run the app

With the source code:

git clone [email protected]:bclaud/arquitetura-hexagonal.git
cd arquitetura-hexagonal/breakingbad
./mvnw spring-boot:run

With docker image

docker run -p 8080:8080 -d --name breakingbadApi baclaud/breakingbad:latest

Endpoints

GET in /api/v1/characters: returns a list of all characters from breaking bad

GET in /api/v1/characters/{id}: returns the character from given ID

POST in /api/v1/favorites/{id}: favorites and returns a character from given ID

PATCH in /api/v1/favorites: Receives a json body with id(int) and favorite(boolean) to updated a favorited character

GET in /api/v1/favorites: returns a list with all favorited characters

GET in /api/v1/favorites/{id}: returns the favorite character from given ID

Specifications

You can check and test every specification in {{baseURL}}/swagger-ui/ while the app is running.

There is also a postman collection available in resources package of the project

About

An applications that consumes Breaking Bad API and allow you to favorite characters from that.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages