URI
<groups_uri>/verification[.<format>]
Supported methods
Parent resource
Introduction
The groupsNameVerify resource is used to verity whether the group name is repeat when users create the group.
Supported Methods:
- POST: Verities whether the group name is repeat.
Supported output formats: RJSON, JSON, HTML and XML.
Resource hierarchy
HTTP request methods
Execute the HTTP request on the following URI, where supermapiportal is the server name, with rjson being the output format.
http://supermapiportal:8090/iportal/web/groups/verification.rjson
POST request
Verities whether the group name is repeat.
Request parameter
Execute the POST request for the groupsNameVerify resource. Verity whether the group name is repeat. It consists of the following fields:
| Name | Type | Description |
| groupName | String | Geoup name. |
Response structure
The returned resource representation structure is as follows:
| Field | Type | Description |
| succeed | boolean | Verities whether the group name is repeat. The return value is true, representing the group name is repeat; the returned value is false, representing the group name isn't repeat. |
| error | Httperror | Error message. If the verity group name is repeat successfully, it would not have this field. |
Response example
Execute the POST request for the groupsNameVerify resource: http://localhost:8090/iportal/web/groups/verification.rjson. Verity whether the group name is repeat. the request body is as follows:
{
"groupName": "FA"
}
The returned resource representation in rjson format is as follows:
{"succeed": true}