GET api/Contact/GetForUser?userId={userId}

Retrieves all contacts listed for the user which matcges the "userId" passed in

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userId

The Id of the user

integer

Required

Body Parameters

None.

Response Information

Resource Description

Returns a list of contacts

Collection of ContactResponse
NameDescriptionTypeAdditional information
Id

Id of the contact

integer

None.

Name

Name of the contact

string

Required

Email

Email address of the contact

string

Required

UserId

Id of the user this contact belongs to

integer

Required

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "Name": "sample string 2",
    "Email": "sample string 3",
    "UserId": 4
  },
  {
    "Id": 1,
    "Name": "sample string 2",
    "Email": "sample string 3",
    "UserId": 4
  }
]

application/xml, text/xml

Sample:
<ArrayOfContactResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Expirify.Api.Models.Contact">
  <ContactResponse>
    <Email>sample string 3</Email>
    <Id>1</Id>
    <Name>sample string 2</Name>
    <UserId>4</UserId>
  </ContactResponse>
  <ContactResponse>
    <Email>sample string 3</Email>
    <Id>1</Id>
    <Name>sample string 2</Name>
    <UserId>4</UserId>
  </ContactResponse>
</ArrayOfContactResponse>