POST api/Register/images/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

CaptchaModel
NameDescriptionTypeAdditional information
PossibleImageOptions

Dictionary of string [key] and string [value]

None.

ValidImageOption

Pair of string [key] and string [value]

None.

ValidAudioOption

Pair of string [key] and string [value]

None.

Request Formats

application/json, text/json

Sample:
{
  "possibleImageOptions": {
    "sample string 1": "sample string 2",
    "sample string 3": "sample string 4"
  },
  "validImageOption": {
    "key": "sample string 1",
    "value": "sample string 2"
  },
  "validAudioOption": {
    "key": "sample string 1",
    "value": "sample string 2"
  }
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'CaptchaModel'.

Response Information

Resource Description

ImageFilesModel
NameDescriptionTypeAdditional information
CaptchaImages

Collection of ResourceFileModel

None.

Response Formats

application/json, text/json

Sample:
{
  "captchaImages": [
    {
      "contentInFile": "sample string 1",
      "typeofFile": "sample string 2",
      "filePhrase": "sample string 3"
    },
    {
      "contentInFile": "sample string 1",
      "typeofFile": "sample string 2",
      "filePhrase": "sample string 3"
    }
  ]
}

application/xml, text/xml

Sample:
<ImageFilesModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <CaptchaImages>
    <ResourceFileModel>
      <ContentInFile>sample string 1</ContentInFile>
      <TypeofFile>sample string 2</TypeofFile>
      <FilePhrase>sample string 3</FilePhrase>
    </ResourceFileModel>
    <ResourceFileModel>
      <ContentInFile>sample string 1</ContentInFile>
      <TypeofFile>sample string 2</TypeofFile>
      <FilePhrase>sample string 3</FilePhrase>
    </ResourceFileModel>
  </CaptchaImages>
</ImageFilesModel>