Skip to content

Commit

Permalink
update documentation on path annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
jrhee17 committed Oct 17, 2019
1 parent 5d924fc commit 49bfafd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions site/src/sphinx/server-annotated-service.rst
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ Please refer to :ref:`parameter-injection` for more information about :api:`@Par
}
Every service method in the examples so far had a single HTTP method annotation with it. What if you want
to map more than one HTTP method to your service method? You can use :api:`@Path` annotation to specify
a path and use the HTTP method annotations without a path to map multiple HTTP methods, e.g.
to map more than one HTTP method or path to your service method? You can use :api:`@Path` annotations to
specify multiple paths, and use the HTTP method annotations without a path to map multiple HTTP methods, e.g.

.. code-block:: java
Expand All @@ -106,7 +106,8 @@ a path and use the HTTP method annotations without a path to map multiple HTTP m
@Put
@Delete
@Path("/hello")
public HttpResponse hello() { ... }
@Path("/hi")
public HttpResponse greeting() { ... }
}
Every service method assumes that it returns an HTTP response with ``200 OK`` or ``204 No Content`` status
Expand Down

0 comments on commit 49bfafd

Please sign in to comment.