GET api/Customers/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Customer| Name | Description | Type | Additional information |
|---|---|---|---|
| CustomerId | integer |
None. |
|
| CustomerType | integer |
None. |
|
| FirstName | string |
Required Max length: 50 |
|
| LastName | string |
Required Max length: 50 |
|
| string |
Required Data type: EmailAddress Max length: 50 |
||
| Phone | string |
Data type: PhoneNumber Max length: 20 |
|
| Address | string |
Max length: 100 |
|
| Password | string |
Required Data type: Password String length: inclusive between 6 and 20 |
Response Formats
application/json, text/json
Sample:
{
"CustomerId": 1,
"CustomerType": 2,
"FirstName": "sample string 3",
"LastName": "sample string 4",
"Email": "sample string 5",
"Phone": "sample string 6",
"Address": "sample string 7",
"Password": "sample string 8"
}
application/xml, text/xml
Sample:
<Customer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DenunciaApp.Domain"> <Address>sample string 7</Address> <CustomerId>1</CustomerId> <CustomerType>2</CustomerType> <Email>sample string 5</Email> <FirstName>sample string 3</FirstName> <LastName>sample string 4</LastName> <Password>sample string 8</Password> <Phone>sample string 6</Phone> </Customer>