Returns the list of all the users associated to the account of the currently connected user.
media type | data type | description |
---|---|---|
application/json | UsersResult (JSON) | The list of requested User objects. |
application/xml | usersResult (XML) |
GET /users
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"user" : [ {
"id" : 12345,
"accountId" : 12345,
"username" : "...",
"createdOn" : 12345,
"createdBy" : 12345,
"modifiedOn" : 12345,
"modifiedBy" : 12345,
"status" : "SUSPENDED",
"password" : "...",
"displayName" : "...",
"email" : "...",
"phoneNumber" : "...",
"loginOn" : 12345,
"loginAttempts" : 12345,
"lockedOn" : 12345,
"optlock" : 12345,
"loginAttemptsResetOn" : 12345,
"unlockOn" : 12345,
"trust_date" : 12345
}, {
"id" : 12345,
"accountId" : 12345,
"username" : "...",
"createdOn" : 12345,
"createdBy" : 12345,
"modifiedOn" : 12345,
"modifiedBy" : 12345,
"status" : "SUSPENDED",
"password" : "...",
"displayName" : "...",
"email" : "...",
"phoneNumber" : "...",
"loginOn" : 12345,
"loginAttempts" : 12345,
"lockedOn" : 12345,
"optlock" : 12345,
"loginAttemptsResetOn" : 12345,
"unlockOn" : 12345,
"trust_date" : 12345
} ]
}
Creates a new User based on the information provided in UserCreator parameter.
media type | data type | description |
---|---|---|
application/xml | userCreator (XML) | Provides the information for the new User to be created. |
media type | data type | description |
---|---|---|
application/xml | user (XML) | The newly created User object. |
POST /users
Content-Type: application/xml
Accept: application/xml
<userCreator xmlns="http://eurotech.com/edc/2.0">
<accountId>...</accountId>
<username>...</username>
<password>...</password>
<displayName>...</displayName>
<email>...</email>
<phoneNumber>...</phoneNumber>
</userCreator>
HTTP/1.1 201 Created
Content-Type: application/xml
<user xmlns="http://eurotech.com/edc/2.0">
<id>...</id>
<accountId>...</accountId>
<username>...</username>
<createdOn>...</createdOn>
<createdBy>...</createdBy>
<modifiedOn>...</modifiedOn>
<modifiedBy>...</modifiedBy>
<status>...</status>
<password>...</password>
<displayName>...</displayName>
<email>...</email>
<phoneNumber>...</phoneNumber>
<loginOn>...</loginOn>
<loginAttempts>...</loginAttempts>
<lockedOn>...</lockedOn>
<optlock>...</optlock>
<loginAttemptsResetOn>...</loginAttemptsResetOn>
<unlockOn>...</unlockOn>
<trust_date>...</trust_date>
</user>
Returns the User specified by the "username" query parameter.
name | type | description |
---|---|---|
username | query | The username of the User requested. |
media type | data type | description |
---|---|---|
application/json | User (JSON) | The requested User object. |
application/xml | user (XML) |
GET /users/findByName
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"id" : 12345,
"accountId" : 12345,
"username" : "...",
"createdOn" : 12345,
"createdBy" : 12345,
"modifiedOn" : 12345,
"modifiedBy" : 12345,
"status" : "DISABLED",
"password" : "...",
"displayName" : "...",
"email" : "...",
"phoneNumber" : "...",
"loginOn" : 12345,
"loginAttempts" : 12345,
"lockedOn" : 12345,
"optlock" : 12345,
"loginAttemptsResetOn" : 12345,
"unlockOn" : 12345,
"trust_date" : 12345
}
Deletes the User specified by the "id" path parameter.
name | type | description | constraints |
---|---|---|---|
userId | path | The id of the User to be deleted. | required |
DELETE /users/{userId}
Content-Type: */*
...
HTTP/1.1 204 No Content
Returns the User specified by the "id" path parameter.
name | type | description | constraints |
---|---|---|---|
userId | path | The id of the User requested. | required |
media type | data type | description |
---|---|---|
application/json | User (JSON) | The requested User object. |
application/xml | user (XML) |
GET /users/{userId}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"id" : 12345,
"accountId" : 12345,
"username" : "...",
"createdOn" : 12345,
"createdBy" : 12345,
"modifiedOn" : 12345,
"modifiedBy" : 12345,
"status" : "SUSPENDED",
"password" : "...",
"displayName" : "...",
"email" : "...",
"phoneNumber" : "...",
"loginOn" : 12345,
"loginAttempts" : 12345,
"lockedOn" : 12345,
"optlock" : 12345,
"loginAttemptsResetOn" : 12345,
"unlockOn" : 12345,
"trust_date" : 12345
}
Updates the User specified by the "id" path parameter based on the information provided in the User parameter.
name | type | description |
---|---|---|
userId | path | The id of the User to be updated. |
media type | data type |
---|---|
application/xml | user (XML) |
media type | data type | description |
---|---|---|
application/xml | user (XML) | The updated user. |
PUT /users/{userId}
Content-Type: application/xml
Accept: application/xml
<user xmlns="http://eurotech.com/edc/2.0">
<id>...</id>
<accountId>...</accountId>
<username>...</username>
<createdOn>...</createdOn>
<createdBy>...</createdBy>
<modifiedOn>...</modifiedOn>
<modifiedBy>...</modifiedBy>
<status>...</status>
<password>...</password>
<displayName>...</displayName>
<email>...</email>
<phoneNumber>...</phoneNumber>
<loginOn>...</loginOn>
<loginAttempts>...</loginAttempts>
<lockedOn>...</lockedOn>
<optlock>...</optlock>
<loginAttemptsResetOn>...</loginAttemptsResetOn>
<unlockOn>...</unlockOn>
<trust_date>...</trust_date>
</user>
HTTP/1.1 204 No Content
Content-Type: application/xml
<user xmlns="http://eurotech.com/edc/2.0">
<id>...</id>
<accountId>...</accountId>
<username>...</username>
<createdOn>...</createdOn>
<createdBy>...</createdBy>
<modifiedOn>...</modifiedOn>
<modifiedBy>...</modifiedBy>
<status>...</status>
<password>...</password>
<displayName>...</displayName>
<email>...</email>
<phoneNumber>...</phoneNumber>
<loginOn>...</loginOn>
<loginAttempts>...</loginAttempts>
<lockedOn>...</lockedOn>
<optlock>...</optlock>
<loginAttemptsResetOn>...</loginAttemptsResetOn>
<unlockOn>...</unlockOn>
<trust_date>...</trust_date>
</user>
Unlock a User based on the userId provided in the path request.
name | type | description | constraints |
---|---|---|---|
userId | path | The userId that refer to the user to unlock. | required |
media type | data type | description |
---|---|---|
application/json | User (JSON) | The user unlocked. |
application/xml | user (XML) |
POST /users/{userId}/unlock
Content-Type: */*
Accept: application/json
...
HTTP/1.1 201 Created
Content-Type: application/json
{
"id" : 12345,
"accountId" : 12345,
"username" : "...",
"createdOn" : 12345,
"createdBy" : 12345,
"modifiedOn" : 12345,
"modifiedBy" : 12345,
"status" : "SUSPENDED",
"password" : "...",
"displayName" : "...",
"email" : "...",
"phoneNumber" : "...",
"loginOn" : 12345,
"loginAttempts" : 12345,
"lockedOn" : 12345,
"optlock" : 12345,
"loginAttemptsResetOn" : 12345,
"unlockOn" : 12345,
"trust_date" : 12345
}