File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/main/de/rwth/dbis/acis/bazaar/service Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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 ();
You can’t perform that action at this time.
0 commit comments