User Endpoints
+Get Authenticated User
+This is an example output for the GET /users/me endpoint.
GET /users/me HTTP/1.1
+Accept: application/json
+Host: localhost:8080
+HTTP/1.1 200 OK
+Content-Type: application/json
+Content-Length: 179
+
+{
+ "id" : 1,
+ "firstName" : "John",
+ "lastName" : "Doe",
+ "login" : "john@test.com",
+ "token" : null,
+ "refreshToken" : null,
+ "mainRole" : "USER",
+ "permissions" : null
+}
+It gives informations about the authenticated user.
+Get All Users
+This is an example output for the GET /users/all endpoint.
GET /users/all HTTP/1.1
+Accept: application/json
+Host: localhost:8080
+HTTP/1.1 200 OK
+Content-Type: application/json
+Content-Length: 698
+
+[ {
+ "id" : 1,
+ "firstName" : "John",
+ "lastName" : "Doe",
+ "login" : "john@test.com",
+ "password" : "pass",
+ "createdAt" : null,
+ "updatedAt" : null,
+ "mainRole" : null,
+ "authorities" : [ ],
+ "credentialsNonExpired" : true,
+ "accountNonExpired" : true,
+ "accountNonLocked" : true,
+ "username" : "john@test.com",
+ "enabled" : true
+}, {
+ "id" : 2,
+ "firstName" : "Jane",
+ "lastName" : "Smith",
+ "login" : "jane@test.com",
+ "password" : "pass",
+ "createdAt" : null,
+ "updatedAt" : null,
+ "mainRole" : null,
+ "authorities" : [ ],
+ "credentialsNonExpired" : true,
+ "accountNonExpired" : true,
+ "accountNonLocked" : true,
+ "username" : "jane@test.com",
+ "enabled" : true
+} ]
+It gives informations about all users.
+Promote User to Manager
+This is an example output for the PUT /users/{userId}/promote-manager endpoint.
PUT /users/2/promote-manager HTTP/1.1
+Accept: application/json
+Host: localhost:8080
+Content-Type: application/x-www-form-urlencoded
+HTTP/1.1 200 OK
+Content-Type: application/json
+Content-Length: 37
+
+User promoted to manager successfully
+It promotes a user to the "MANAGER" role.
+