TOMEE-2698: Translate to spanish simple-rest#580
Merged
cesarhernandezgt merged 2 commits intoapache:masterfrom Oct 12, 2019
Merged
TOMEE-2698: Translate to spanish simple-rest#580cesarhernandezgt merged 2 commits intoapache:masterfrom
cesarhernandezgt merged 2 commits intoapache:masterfrom
Conversation
|
Can one of the admins verify this patch? |
2 similar comments
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
emecas
reviewed
Oct 2, 2019
|
|
||
| = REST Simple | ||
|
|
||
| Definir un servicio Rest es muy fácil, simplemente necesitamos agregar la anotación ``@Path`` en la clase y después definir los métodos HTTP que vamos a usar (``@GET``, ``@POST``, …). |
Contributor
There was a problem hiding this comment.
I did not know you can use indistinctly single quote ` or 2 single quotes ``, interesting
| == El servicio REST: ``@Path``, ``@GET``, ``@POST`` | ||
|
|
||
| Aquí tenemos un REST simple, anotamos la clase con ``@Path("/greeting")`` para indicar la ruta correspondiente a la clase ``GreetingService``. Definimos ``message()`` como ``@GET`` y ``lowerCase()`` como ``@POST`` para la ruta ``/greeting``. Pronto tenemos un servicio, muy simple ¿verdad? | ||
|
|
Contributor
There was a problem hiding this comment.
Here you may include this label: [source,java] as well as line 47
Contributor
Author
There was a problem hiding this comment.
Excellent, let me do that
| == Ejecución | ||
|
|
||
| Ejecutar la aplicación es muy simple. En el directorio ``simple-rest`` ejecuta: | ||
|
|
Contributor
There was a problem hiding this comment.
I have seen the label: [source,bash] , I think you can use this one as well in line: 94
Contributor
Author
There was a problem hiding this comment.
excellent, let me do that
cesarhernandezgt
approved these changes
Oct 2, 2019
Contributor
cesarhernandezgt
left a comment
There was a problem hiding this comment.
+1 thanks @breakponchito for the contribution.
Thanks also to @emecas for the review.
Daniel-Dos
approved these changes
Oct 6, 2019
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Link to Jira: https://issues.apache.org/jira/browse/TOMEE-2698