POST api/Registration

Request Information

URI Parameters

None.

Body Parameters

RegistrationDto
NameDescriptionTypeAdditional information
Username

string

None.

Password

string

None.

PregnancyStage

string

None.

Zip

integer

None.

Language

string

None.

FirstName

string

None.

LastName

string

None.

HasFacebook

boolean

None.

FacebookAccess

FacebookAccessDto

None.

FacebookProfile

FacebookProfileDto

None.

Request Formats

application/json, text/json

Sample:
{
  "Username": "sample string 1",
  "Password": "sample string 2",
  "PregnancyStage": "sample string 3",
  "Zip": 4,
  "Language": "sample string 5",
  "FirstName": "sample string 6",
  "LastName": "sample string 7",
  "HasFacebook": true,
  "FacebookAccess": {
    "accessToken": "sample string 1",
    "expiresIn": 2,
    "signedRequest": "sample string 3",
    "userID": "sample string 4"
  },
  "FacebookProfile": {
    "email": "sample string 1",
    "first_name": "sample string 2",
    "last_name": "sample string 3",
    "gender": "sample string 4",
    "id": "sample string 5",
    "locale": "sample string 6",
    "name": "sample string 7",
    "picture": {
      "data": {
        "is_silhouette": true,
        "url": "sample string 2"
      }
    }
  }
}

application/xml, text/xml

Sample:
<RegistrationDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.DTO">
  <FacebookAccess>
    <accessToken>sample string 1</accessToken>
    <expiresIn>2</expiresIn>
    <signedRequest>sample string 3</signedRequest>
    <userID>sample string 4</userID>
  </FacebookAccess>
  <FacebookProfile>
    <email>sample string 1</email>
    <first_name>sample string 2</first_name>
    <gender>sample string 4</gender>
    <id>sample string 5</id>
    <last_name>sample string 3</last_name>
    <locale>sample string 6</locale>
    <name>sample string 7</name>
    <picture>
      <data>
        <is_silhouette>true</is_silhouette>
        <url>sample string 2</url>
      </data>
    </picture>
  </FacebookProfile>
  <FirstName>sample string 6</FirstName>
  <HasFacebook>true</HasFacebook>
  <Language>sample string 5</Language>
  <LastName>sample string 7</LastName>
  <Password>sample string 2</Password>
  <PregnancyStage>sample string 3</PregnancyStage>
  <Username>sample string 1</Username>
  <Zip>4</Zip>
</RegistrationDto>

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 'RegistrationDto'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.