ProfileServiceRest Resource

Profile

Available Since
1.4.0

POST /profile/change/picture

It changes the profile picture. Can be community, user or application user
Accepted media types: PNG, JPG, JPEG.

Available Since
1.4.0
Request Body
media type data type
application/json FDNUserPictureVO (JSON)
Response Body
media type data type description
application/json object (JSON)

 This method just return HTTP 200 status
Available Since
1.4.0

POST /profile/edit/profile

Edit user profile

Available Since
1.4.0
Request Body
media type data type description
application/json UpdateUserVo (JSON)

Response List of JSON (example):


 [{
 	"name" : "Maria",
 	"lastName" : "Silva",
 	"fullName" : "Maria Silva",
 	"description" : "User description",
 	"email" : teste@teste.com",
 	"userData" : {
 		"UserRamal":"11 1111111",
 		"UserProjects":"VP Fluig",
 		"UserSpecialization":"Programadora Java",
 		"UserEmailHTML":null} // User data
 }]
Response Body
media type data type description
application/json object (JSON)

Response JSON (example):


 {	"content": {
		"name" : "User 01",//User's name
		"description" : "User 01 description",	//User's description
  	"userData":{
  		"UserRamal":"11 1111111",
  		"UserProjects":"VP Fluig",
  		"UserSpecialization":"Programadora Java",
  		"UserEmailHTML":null} // User data
 	},
  message: "" }
Available Since
1.4.0

GET /profile/image/{genericId}/{type}

Returns the profile's image based on alias

Available Since
1.4.0
Request Parameters
name type description constraints
genericId path
REQUIRED
the user's generic identifier, can be (alias, idpId or userCode)
 
type path
REQUIRED
the type of images are X_SMALL_PICTURE, SMALL_PICTURE, MEDIUM_PICTURE and LARGE_PICTURE
"DEFAULT_PICTURE" or "LARGE_PICTURE" or "MEDIUM_PICTURE" or "ORIGINAL_PICTURE" or "SMALL_PICTURE" or "TEMPORARY_PICTURE" or "X_SMALL_PICTURE"
Response Body
media type data type description
application/octet-stream object A application/octet-stream with the image file