breakponchito commented on a change in pull request #580: TOMEE-2698: Translate
to spanish simple-rest
URL: https://github.com/apache/tomee/pull/580#discussion_r331289459
##########
File path: examples/simple-rest/README_es.adoc
##########
@@ -0,0 +1,140 @@
+:index-group: REST
+:jbake-type: page
+:jbake-status: status=published
+
+= 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``, …).
+
+= El Código
+
+== 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?
+
Review comment:
Excellent, let me do that
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services