-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from mcruzdev/updateProject
Update documentation and source code
- Loading branch information
Showing
6 changed files
with
38 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,41 @@ | ||
# Quarkus Restlint | ||
|
||
[![Version](https://img.shields.io/maven-central/v/io.quarkiverse/quarkus-restlint?logo=apache-maven&style=flat-square)](https://central.sonatype.com/artifact/io.quarkiverse/quarkus-restlint-parent) | ||
This extension was created for the 18th JUG Vale event. | ||
|
||
## Welcome to Quarkiverse! | ||
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) | ||
|
||
Congratulations and thank you for creating a new Quarkus extension project in Quarkiverse! | ||
![img.png](jug-vale.png) | ||
|
||
Feel free to replace this content with the proper description of your new project and necessary instructions how to use and contribute to it. | ||
The idea is to demonstrate what is possible to create with a Quarkus extensions. | ||
|
||
You can find the basic info, Quarkiverse policies and conventions in [the Quarkiverse wiki](https://github.com/quarkiverse/quarkiverse/wiki). | ||
The goal of this extension is to evict the developer to allow request body when using a GET verb. | ||
|
||
In case you are creating a Quarkus extension project for the first time, please follow [Building My First Extension](https://quarkus.io/guides/building-my-first-extension) guide. | ||
```java | ||
@GET | ||
public Response findByName(Map<String, Object> body) {} | ||
``` | ||
|
||
Other useful articles related to Quarkus extension development can be found under the [Writing Extensions](https://quarkus.io/guides/#writing-extensions) guide category on the [Quarkus.io](https://quarkus.io) website. | ||
We want to assert that the developer have to use `@QueryParam`, `@Context` or `@PathParam`annotations. | ||
|
||
Thanks again, good luck and have fun! | ||
```java | ||
@GET | ||
public Response findByName(@QueryParam("name") String name) {} | ||
``` | ||
|
||
## Documentation | ||
## Features | ||
|
||
The documentation for this extension should be maintained as part of this repository and it is stored in the `docs/` directory. | ||
A DevUI page describing what errors has in the source code. | ||
|
||
The layout should follow the [Antora's Standard File and Directory Set](https://docs.antora.org/antora/2.3/standard-directories/). | ||
![img.png](dev-ui.png) | ||
|
||
Once the docs are ready to be published, please open a PR including this repository in the [Quarkiverse Docs Antora playbook](https://github.com/quarkiverse/quarkiverse-docs/blob/main/antora-playbook.yml#L7). See an example [here](https://github.com/quarkiverse/quarkiverse-docs/pull/1) | ||
The source code responsible for creating this DevUI page can be found [here](./deployment/src/main/java/io/quarkiverse/restlint/deployment/RestlintProcessor.java). | ||
|
||
Your documentation will then be published to the <https://docs.quarkiverse.io/> website. | ||
## 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.