URI

<user_uri>/isanswer[.<format>]

Supported methods

POST

Parent resource

user

Introduction

isPwdAnswer resource is used to verity whether the security questions matches the answers.

Supported Methods:

  • POST: when reset the password, verity whether the security questions matches the answers. .

Supported output formats: RJSON, JSON, HTML, XML.

Resource hierarchy

HTTP request methods

Implement the HTTP request on the following URI, where supermapiportal is the server name, with rjson being the output format.

http://supermapiportal:8090/iportal/web/users/{username}/isanswer.rjson

POST request

When reset the password, verity whether the security questions matches the answers. .

Request parameter

Following arguments need to be transmitted in the request sent:

Name Type Description
pwdAnswer String The answers of security questions
pwdQuestion String The security questions

Response structure

The returned resource representation structure is as follows:

Field

Type Description

succeed

boolean Whether the security questions matches the answers. If successful, the succeed value is true; Otherwise, failed.

Response example

Implement the POST request for the isPwdAnswer resource: http://supermapiportal:8090/iportal/web/users/admin/isanswer.rjson. Verity whether the security questions matches the answers. The request bosy is as follows:

{

    "pwdAnswer": "No.1 School",

    "pwdQuestion": "school"

}

    "pwdAnswer": "Yizhong",

    "pwdQuestion": "school"

}

The returned rjson format is as follows:

{ "succeed": true}

See