Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/maxjdev/first-api_rest-documented-with-spring_web-and-swagger

Project: Creating first Documented Rest API using Spring Web and Swagger
https://github.com/maxjdev/first-api_rest-documented-with-spring_web-and-swagger

java java17 lombok maven postman spring spring-boot swagger-ui swagger2

Last synced: 9 days ago
JSON representation

Project: Creating first Documented Rest API using Spring Web and Swagger

Awesome Lists containing this project

README

        

First API Rest documented with Spring-Web, Swagger and Postman

### Techs Used

![Java](https://img.shields.io/badge/java-%23ED8B00.svg?style=for-the-badge&logo=openjdk&logoColor=white)
![Spring](https://img.shields.io/badge/spring-%236DB33F.svg?style=for-the-badge&logo=spring&logoColor=white)
![Swagger](https://img.shields.io/badge/-Swagger-%23Clojure?style=for-the-badge&logo=swagger&logoColor=white)
![Postman](https://img.shields.io/badge/Postman-FF6C37?style=for-the-badge&logo=postman&logoColor=white)

## Description

The Rest API is an approach to developing web services that uses the principles of the HTTP protocol. When creating a REST API, developers use Rest Controllers to define endpoints that handle different HTTP requests. Furthermore, it is important to document the API to facilitate its understanding and use, with Swagger being a common tool for this task. To ensure proper handling of business exceptions, it is possible to enable handlers that capture and handle specific errors related to the application's business logic.

## How to Start the Project

- **Clone the repository:**
```bash
git clone https://github.com/your-username/repository-name.git
```
- **Open the project directory:**
```bash
cd repository-name
```
- **Install project dependencies:**
```bash
mvn install
```
- **Start:**
```bash
mvn spring-boot:run
```

## Contributing

We welcome and appreciate your contributions to this project! Whether you have suggestions, bug fixes, or new features you'd like to add, please feel free to fork this repository.

### How to Contribute

1. Fork the project.
2. Create a branch for your contribution: `git checkout -b my-contribution`.
3. Make your changes and commit: `git commit -m 'Add my contribution'`.
4. Push to your branch: `git push origin my-contribution`.
5. Open a pull request for review.

## Feedback and Issues

If you have contributions, suggestions, or feedback, feel free to open an issue.