Skip to content

Commit de48e64

Browse files
committed
Change /users/current to /users/me #RB-401
1 parent dc1074e commit de48e64

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main/de/rwth/dbis/acis/bazaar/service/UsersResource.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,21 +149,21 @@ public HttpResponse updateUser(@PathParam("userId") int userId,
149149
}
150150

151151
/**
152-
* This method allows to retrieve the current user.
152+
* This method allows to retrieve the active user.
153153
*
154-
* @return Response with user as a JSON object.
154+
* @return Response with active user as a JSON object.
155155
*/
156156
@GET
157-
@Path("/current")
157+
@Path("/me")
158158
@Produces(MediaType.APPLICATION_JSON)
159-
@ApiOperation(value = "This method allows to retrieve the current user.")
159+
@ApiOperation(value = "This method allows to retrieve the active user.")
160160
@ApiResponses(value = {
161-
@ApiResponse(code = HttpURLConnection.HTTP_OK, message = "Returns the current user"),
161+
@ApiResponse(code = HttpURLConnection.HTTP_OK, message = "Returns the active user"),
162162
@ApiResponse(code = HttpURLConnection.HTTP_UNAUTHORIZED, message = "Unauthorized"),
163163
@ApiResponse(code = HttpURLConnection.HTTP_NOT_FOUND, message = "Not found"),
164164
@ApiResponse(code = HttpURLConnection.HTTP_INTERNAL_ERROR, message = "Internal server problems")
165165
})
166-
public HttpResponse getCurrentUser() {
166+
public HttpResponse getActiveUser() {
167167
DALFacade dalFacade = null;
168168
try {
169169
long userId = ((UserAgent) getActiveAgent()).getId();

0 commit comments

Comments
 (0)