Skip to content

Latest commit

 

History

History
148 lines (103 loc) · 6.19 KB

README.md

File metadata and controls

148 lines (103 loc) · 6.19 KB

Breaking Bad API

image


🇧🇷 Portuguese version

🚧 Project 🚀 under construction... 🚧

Tests 🧪

To test you can run a database locally, clone this project and execute the command below clone deste projeto

Give permission the file .sh

 chmod +x breaking-bad-setup.sh
  • Execute this command to create a database locally.
 ./breaking-bad-setup.sh

This is a .NET 7 Web API that provides endpoints to access and manage data related to the TV show Breaking Bad.
The API allows users to retrieve information about characters, episodes, and quotes from the show.

API Documentation 📝

The API endpoints are documented using Swagger

Open a web browser and navigate to http://localhost:5000/swagger. This will display the Swagger UI, which provides a user-friendly interface for exploring the API endpoints. The API provides the following endpoints:

  • GET /characters - retrieves a list of all characters in Breaking Bad.
  • GET /characters/{id} - retrieves a specific character by ID.
  • GET /episodes - retrieves a list of all episodes in Breaking Bad.
  • GET /episodes/{id} - retrieves a specific episode by ID.
  • GET /quotes/characters/{id} - retrieves a list of all better frases for specific character in Breaking Bad.

  1. Presentation Layer
  • Name: breaking-bad.api
  • Description: This layer is responsible for exposing the API to the outside world, i.e. it receives HTTP requests,
    processes them and returns the responses. It is in this layer that most of the API configurations are done.
  1. Application Layer
  • Name: breaking-bad.application
  • Description: The layer is responsible for housing the application's business rules,
    it uses the services provided by the other layers to perform the required operations. It is in this layer
    that the application use cases are implemented.
  1. Domain Layer
  • Name: breaking-bad.domain
  • Description: The layer is responsible for defining the application's business concepts and rules.
    It is in this layer that the entities and object values that the application uses are defined.
  1. Infrastructure Layer
  • Name: breaking-bad.infrastructure
  • Description: The layer is responsible for access database.
    It is in this layer that the configuration database, context class, migrations and repositories.

Getting Started 🚀

To get started with the API, clone this repository to your local machine and run the following
command to start the application:

To get started with the API, follow these steps:

Installation 🔧

  1. Install .NET 7 if you haven't already. You can download it from here.
  2. Clone this repository to your local machine.https://github.com/JessicaNathany/breaking-bad.api.git
  3. Next, navigate to the project directory and run the following command to restore the dependencies: dotnet restore
  4. Finally, run the following command to start the API: dotnet run
  5. The application will start listening on http://localhost:5000

Current features 📋

  • GET /characters - retrieves a list of all characters in Breaking Bad.
  • GET /characters/{id} - retrieves a specific character by ID.
  • GET /episodes - retrieves a list of all episodes in Breaking Bad.
  • GET /episodes/{id} - retrieves a specific episode by ID.
  • GET /quotes/characters/{id} - retrieves a list of all better frases for specific character in Breaking Bad

Next features 🎯

  • GET /gifs - retrieves a list of all gifs in Breaking Bad.
  • GET /images - retrieves a list of all iamges in Breaking Bad.
  • GET /images/character/{id} - retrieves of all iamges in specific character in Breaking Bad.

Project status This project is currently at version 1.0.0. Below is a list of currently available features and those that will
be added in future updates.

Libraries and Backages 🛠️

Contributing 🤝

Contributions are welcome!
To contribute to this project, please fork this repository and submit a pull request.

License 📄

This project is licensed under the MIT License - see the LICENSE.md file for details.

📧 Contact

Made with ♥ by Jéssica Natahny 👋: Get in touch!

By the way, guess who suggested this readme?... You're welcome 🥰

This is a .NET 7 Web API that provides endpoints to access and manage data related to the TV show Breaking Bad.
The API allows users to retrieve information about characters, episodes, and quotes from the show.

Onion Architecture 📝

The term 'Onion Architecture' was coined by Jeffrey Palermo in 2008. This architecture offers alternatives for creating applications that are more testable, meaningful, with clear sepration of responsabilities, reduce coupling, and robust database infrastructure.

Fonts: