Skip to content

TOMEE-2698: Translate to spanish simple-rest#580

Merged
cesarhernandezgt merged 2 commits intoapache:masterfrom
breakponchito:TOMEE-2698
Oct 12, 2019
Merged

TOMEE-2698: Translate to spanish simple-rest#580
cesarhernandezgt merged 2 commits intoapache:masterfrom
breakponchito:TOMEE-2698

Conversation

@breakponchito
Copy link
Contributor

@breakponchito breakponchito commented Oct 2, 2019

@asf-ci
Copy link

asf-ci commented Oct 2, 2019

Can one of the admins verify this patch?

2 similar comments
@asf-ci
Copy link

asf-ci commented Oct 2, 2019

Can one of the admins verify this patch?

@asf-ci
Copy link

asf-ci commented Oct 2, 2019

Can one of the admins verify this patch?

Copy link
Contributor

@emecas emecas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good Job


= 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``, …).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here you may include this label: [source,java] as well as line 47

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent, let me do that

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done!!

== Ejecución

Ejecutar la aplicación es muy simple. En el directorio ``simple-rest`` ejecuta:

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have seen the label: [source,bash] , I think you can use this one as well in line: 94

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

excellent, let me do that

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done!!

Copy link
Contributor

@cesarhernandezgt cesarhernandezgt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 thanks @breakponchito for the contribution.
Thanks also to @emecas for the review.

@cesarhernandezgt cesarhernandezgt merged commit bdbad14 into apache:master Oct 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants