ViRe User Service
The API for the User Service from ViRe WaDe Project
Version: 1.0.0
All rights reserved
http://apache.org/licenses/LICENSE-2.0.html
Access
[ Jump to Models ]
Table of Contents
(loginUser)
login user
Consumes
This API call consumes the following media types via the request header:
Request body
Return type
Example data
Content-Type: application/json
{
"code" : 0,
"message" : "everything is ok"
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
Successfull logged in
ApiResponse
(logoutUser)
logout user
Return type
Example data
Content-Type: application/json
{
"code" : 0,
"message" : "everything is ok"
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
Successfull logged out
ApiResponse
(registerUser)
register user
Consumes
This API call consumes the following media types via the request header:
Request body
Return type
Example data
Content-Type: application/json
{
"password" : "password",
"firstname" : "John",
"email" : "mail@mail.com",
"username" : "user0123",
"lastname" : "Doe"
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
Successfull register user
User
(editUserDetails)
edit user details
Path parameters
userId (required)
Path Parameter —
Return type
Example data
Content-Type: application/json
{
"password" : "password",
"firstname" : "John",
"email" : "mail@mail.com",
"username" : "user0123",
"lastname" : "Doe"
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
Successful update user details
User
(getUserDetails)
get user details
Path parameters
userId (required)
Path Parameter —
Return type
Example data
Content-Type: application/json
{
"password" : "password",
"firstname" : "John",
"email" : "mail@mail.com",
"username" : "user0123",
"lastname" : "Doe"
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
Successful get user details
User
Up
get /user/{userId}/playlists
(getUserPlaylists)
get user playlists
Path parameters
userId (required)
Path Parameter —
Return type
array[String]
Example data
Content-Type: application/json
[ "", "" ]
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
Successful update user details
[ Jump to Methods ]
Table of Contents
AnyValue
ApiResponse
User
UserLogin
code (optional)
message (optional)
example: everything is ok
username (optional)
example: user0123
password (optional)
example: password
email (optional)
example: mail@mail.com
firstname (optional)
example: John
lastname (optional)
example: Doe
username (optional)
example: user0123
password (optional)
example: password