UdrUserResource

A REST Web Service for authenticating UDR REST api users. User who wish to peform other UDR REST operations must authenticate themselves by POSTing to the /session URL.

When the /session URL is POSTed to (with an empty body message) and the user has not already been authenticated then the user will be asked for their username and password. Weblogic authenticates the user based on the username and password and sends back a cookie representing the authenticated session. This cookie must be used in all subsequent REST operations to authenticate the user.

To logout of the session send a DELETE to the /session URL.

The following resources are applicable:

/session

Mount Point: /session

The following operations are supported on this resource:

POST

Logs in a user and returns a session token.

Response Body

element: (custom)
media types: */*
application/xml

HTTP response indicating the outcome of the login attempt.

PUT

Update the session data from provided userProfile.

Request Body

element: userProfile
media types: application/xml
text/xml
application/json

The updated user profile.

Response Body

element: userProfile
media types: application/xml
text/xml
application/json

The updated user profile object.

GET

Gets information about the logged-in user.

Response Body

element: (custom)
media types: application/xml
text/xml
application/json

the user's profile information.

DELETE

Logs out a user and invalidates the session token.

Response Body

element: (custom)
media types: */*
application/xml

The HTTP response of 204.

POST

Logs in a user and returns a session token.

Response Body

element: (custom)
media types: */*
application/xml

HTTP response indicating the outcome of the login attempt.

PUT

Update the session data from provided userProfile.

Request Body

element: userProfile
media types: application/xml
text/xml
application/json

The updated user profile.

Response Body

element: userProfile
media types: application/xml
text/xml
application/json

The updated user profile object.

GET

Gets information about the logged-in user.

Response Body

element: (custom)
media types: application/xml
text/xml
application/json

the user's profile information.

DELETE

Logs out a user and invalidates the session token.

Response Body

element: (custom)
media types: */*
application/xml

The HTTP response of 204.