https://github.com/mcruzdev/quarkus-restlint
JUG Vale 2024-08-22 @ Adyen
https://github.com/mcruzdev/quarkus-restlint
Last synced: 3 months ago
JSON representation
JUG Vale 2024-08-22 @ Adyen
- Host: GitHub
- URL: https://github.com/mcruzdev/quarkus-restlint
- Owner: mcruzdev
- License: apache-2.0
- Created: 2024-08-21T00:26:45.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-06T04:19:08.000Z (over 1 year ago)
- Last Synced: 2024-11-06T05:20:46.301Z (over 1 year ago)
- Language: Java
- Size: 994 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Quarkus Restlint
This extension was created for the 18th JUG Vale event.
Title: [Desbravando o Quarkus Criando extensōes para sua aplicação nativa de nuvem](https://docs.google.com/presentation/d/1ntc2m3EO6DRYGSkz6vOETGDPLXo2FWGi/edit#slide=id.p4)

The idea is to demonstrate what is possible to create with a Quarkus extensions.
The goal of this extension is to evict the developer to allow request body when using a GET verb.
```java
@GET
public Response findByName(Map body) {}
```
We want to assert that the developer have to use `@QueryParam`, `@Context` or `@PathParam`annotations.
```java
@GET
public Response findByName(@QueryParam("name") String name) {}
```
## Features
A DevUI page describing what errors has in the source code.

The source code responsible for creating this DevUI page can be found [here](./deployment/src/main/java/io/quarkiverse/restlint/deployment/RestlintProcessor.java).
## Links
### Writing extensions
If you want to learn more about how to create a Quarkus extension see the following links:
- https://matheuscruz.dev
- https://quarkus.io/guides/writing-extensions
- https://quarkus.io/guides/building-my-first-extension