POST api/Register
Request Information
URI Parameters
None.
Body Parameters
RegisterRequestName | Description | Type | Additional information |
---|---|---|---|
UserName | string |
Required |
|
Password | string |
Required |
|
FirstName | string |
Required |
|
LastName | string |
Required |
|
string |
Required |
Request Formats
application/json, text/json
Sample:
{ "UserName": "sample string 1", "Password": "sample string 2", "FirstName": "sample string 3", "LastName": "sample string 4", "Email": "sample string 5" }
application/xml, text/xml
Sample:
<RegisterRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SFMOMA.Data.Entities.Account"> <Email>sample string 5</Email> <FirstName>sample string 3</FirstName> <LastName>sample string 4</LastName> <Password>sample string 2</Password> <UserName>sample string 1</UserName> </RegisterRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ApiSuccessOfRegisterResultName | Description | Type | Additional information |
---|---|---|---|
Success | boolean | ||
Data | RegisterResult |
Response Formats
application/json
Sample:
{ "Success": true, "Data": { "SessionKey": "wd+3v2OMHdnOOCaMcMZKWqRTLHjJNAr2LzmfCZ6dYozkYiZYTvVgjBzI5tKjAAqin3TivPVRPL3XYVXz9kJogxyLjqDxIscfg/2EFSFpmrw=", "LoggedIn": true } }
text/json
Sample:
{ "Success": true, "Data": { "SessionKey": "M/TIu2DjeqsDWU/SCJnb7cFBvzZ+Kf/TOeb5Fz3OZs/HJ1ppTaKBhvTXdGrN+s4OsnXWGcrmhRPplwRXuk/QFjO3etd9VmdcBQ/oJ89lmMw=", "LoggedIn": true } }
application/xml, text/xml
Sample:
<ApiSuccessOfRegisterResultgLC8bFpX xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SFMOMA.Data.Api"> <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/SFMOMA.Data.Entities.Account"> <d2p1:LoggedIn>true</d2p1:LoggedIn> <d2p1:SessionKey>sample string 1</d2p1:SessionKey> </Data> </ApiSuccessOfRegisterResultgLC8bFpX>