GET api/Members/{id}/Memberships

Get all memberships of the member

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

string

Required

Body Parameters

None.

Response Information

Resource Description

Collection of MembershipDto
NameDescriptionTypeAdditional information
MembershipId

ID of the membership (Guid)

globally unique identifier

None.

Name

Name of the membership

string

None.

MemberTypeId

ID of the membership type (Guid)

globally unique identifier

None.

SignupDate

The date the member signed up to the membership

date

None.

ResignedDate

The date the member resigned from the membership

date

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "MembershipId": "a89c19e2-0151-4127-b447-be40c18db8d3",
    "Name": "sample string 2",
    "MemberTypeId": "f7c7419f-28d9-410c-afe4-6fcdcecff75b",
    "SignupDate": "2021-10-20T14:54:47.6187214+02:00",
    "ResignedDate": "2021-10-20T14:54:47.6187214+02:00"
  },
  {
    "MembershipId": "a89c19e2-0151-4127-b447-be40c18db8d3",
    "Name": "sample string 2",
    "MemberTypeId": "f7c7419f-28d9-410c-afe4-6fcdcecff75b",
    "SignupDate": "2021-10-20T14:54:47.6187214+02:00",
    "ResignedDate": "2021-10-20T14:54:47.6187214+02:00"
  }
]

application/xml, text/xml

Sample:
<ArrayOfMembershipDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">
  <MembershipDto>
    <MemberTypeId>f7c7419f-28d9-410c-afe4-6fcdcecff75b</MemberTypeId>
    <MembershipId>a89c19e2-0151-4127-b447-be40c18db8d3</MembershipId>
    <Name>sample string 2</Name>
    <ResignedDate>2021-10-20T14:54:47.6187214+02:00</ResignedDate>
    <SignupDate>2021-10-20T14:54:47.6187214+02:00</SignupDate>
  </MembershipDto>
  <MembershipDto>
    <MemberTypeId>f7c7419f-28d9-410c-afe4-6fcdcecff75b</MemberTypeId>
    <MembershipId>a89c19e2-0151-4127-b447-be40c18db8d3</MembershipId>
    <Name>sample string 2</Name>
    <ResignedDate>2021-10-20T14:54:47.6187214+02:00</ResignedDate>
    <SignupDate>2021-10-20T14:54:47.6187214+02:00</SignupDate>
  </MembershipDto>
</ArrayOfMembershipDto>