1.14. http://localhost:7080/rest/user : Api that deals with user related stuff
Defining class: org.rhq.enterprise.server.rest.UserHandlerBean
Produces: application/json, application/xml, text/plain, text/html
Methods
GET /user/favorites/resource
Description
Return a list of favorite resources of the callerSupports returning a gzip'ed Content-Encoding
This method has no parameters
Return type: ResourceWithType (multi)
GET /user/favorites/group
Description
Return a list of favorite groups of the callerSupports returning a gzip'ed Content-Encoding
This method has no parameters
Return type: GroupRest (multi)
PUT /user/favorites/resource/{id}
Description
Add a resource as favorite for the callerParameters:
Name P.Type Description Required Type Allowed values Default value id Path Id of the resource true int all Return type: void
PUT /user/favorites/group/{id}
Description
Add a group as favorite for the callerParameters:
Name P.Type Description Required Type Allowed values Default value id Path Id of the group true int all Return type: void
DELETE /user/favorites/resource/{id}
Description
Remove a resource from favoritesNotes
This operation is by default idempotent, returning 204.If you want to check if the resource was a favorite, you need to pass the 'validate' query parameter.
Parameters:
Name P.Type Description Required Type Allowed values Default value id Path Id of the resource true int all validate Query Validate if the resource is a favorite false boolean all false Return type: void
Error codes:
Code Reason 204 Resource was removed or was no favorite with validation not set 404 Resource was no favorite and validate was set DELETE /user/favorites/group/{id}
Description
Remove a group from favoritesNotes
This operation is by default idempotent, returning 204.If you want to check if the group was a favorite, you need to pass the 'validate' query parameter.
Parameters:
Name P.Type Description Required Type Allowed values Default value id Path Id of the group true int all validate Query Validate if the group is a favorite false boolean all false Return type: void
Error codes:
Code Reason 204 Group was removed or was no favorite with validation not set 404 Group was no favorite and validate was set GET /user/{id}
Description
Get info about a userParameters:
Name P.Type Description Required Type Allowed values Default value id Path Login of the user true String all Return type: UserRest

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.