Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mcruzdev/quarkus-restlint
JUG Vale 2024-08-22 @ Adyen
https://github.com/mcruzdev/quarkus-restlint
Last synced: about 1 month 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 (3 months ago)
- Default Branch: main
- Last Pushed: 2024-09-12T11:34:34.000Z (2 months ago)
- Last Synced: 2024-09-12T22:52:00.559Z (2 months ago)
- Language: Java
- Size: 979 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
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)
![img.png](jug-vale.png)
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.
![img.png](dev-ui.png)
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