diff --git a/src/main/java/com/example/jerseyexercise/resources/SYamagiwa.java b/src/main/java/com/example/jerseyexercise/resources/SYamagiwa.java index 12015de..52abc55 100644 --- a/src/main/java/com/example/jerseyexercise/resources/SYamagiwa.java +++ b/src/main/java/com/example/jerseyexercise/resources/SYamagiwa.java @@ -90,9 +90,10 @@ * Update the first name of the account. * * @param firstName The first name of the account. + * @since 1.0 */ @PUT - @Path("/firstName") + @Path("/first-name") public void setFirstName(@FormParam("firstName") String firstName) { this.firstName = firstName; } @@ -101,9 +102,10 @@ * Update the last name of the account. * * @param lastName The last name of the account. + * @since 1.0 */ @PUT - @Path("/lastName") + @Path("/last-name") public void setLastName(@FormParam("lastName") String lastName) { this.lastName = lastName; } @@ -112,6 +114,7 @@ * Returns all posts of the account. * * @return All posts of the account. + * @since 1.0 */ @GET @Path("/posts") @@ -122,6 +125,8 @@ /** * Add new post of the account. + * + * @since 1.0 */ @POST @Path("/posts") @@ -133,6 +138,7 @@ * Get the post of the account with given id. * * @return Specified post of the account. + * @since 1.0 */ @GET @Path("/posts/{id}")