POST api/event/eventregistration

Request Information

URI Parameters

None.

Body Parameters

EventRegistration
NameDescriptionTypeAdditional information
EventId

integer

None.

MembershipId

string

None.

Dependants

Collection of Dependant

None.

Request Formats

application/json, text/json

Sample:
{
  "EventId": 1,
  "MembershipId": "sample string 2",
  "Dependants": [
    {
      "Id": 1,
      "BenefactorId": "sample string 2",
      "EventId": 3,
      "RegId": "sample string 4",
      "Title": "sample string 5",
      "LastName": "sample string 6",
      "FirstName": "sample string 7",
      "FullName": "sample string 8",
      "OtherName": "sample string 9",
      "RegistrationFee": 10.0,
      "Relationship": "sample string 11",
      "AgeGroup": "sample string 12",
      "Email": "sample string 13",
      "Phone": "sample string 14",
      "RegisteredOn": "2022-09-26T11:37:08.2368423-05:00"
    },
    {
      "Id": 1,
      "BenefactorId": "sample string 2",
      "EventId": 3,
      "RegId": "sample string 4",
      "Title": "sample string 5",
      "LastName": "sample string 6",
      "FirstName": "sample string 7",
      "FullName": "sample string 8",
      "OtherName": "sample string 9",
      "RegistrationFee": 10.0,
      "Relationship": "sample string 11",
      "AgeGroup": "sample string 12",
      "Email": "sample string 13",
      "Phone": "sample string 14",
      "RegisteredOn": "2022-09-26T11:37:08.2368423-05:00"
    }
  ]
}

text/xml

Sample:
<EventRegistration xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FullGopel.DTO.DTO.Events">
  <Dependants xmlns:d2p1="http://schemas.datacontract.org/2004/07/FullGospel.Common.Events">
    <d2p1:Dependant>
      <d2p1:AgeGroup>sample string 12</d2p1:AgeGroup>
      <d2p1:BenefactorId>sample string 2</d2p1:BenefactorId>
      <d2p1:Email>sample string 13</d2p1:Email>
      <d2p1:EventId>3</d2p1:EventId>
      <d2p1:FirstName>sample string 7</d2p1:FirstName>
      <d2p1:FullName>sample string 8</d2p1:FullName>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:LastName>sample string 6</d2p1:LastName>
      <d2p1:OtherName>sample string 9</d2p1:OtherName>
      <d2p1:Phone>sample string 14</d2p1:Phone>
      <d2p1:RegId>sample string 4</d2p1:RegId>
      <d2p1:RegisteredOn>2022-09-26T11:37:08.2368423-05:00</d2p1:RegisteredOn>
      <d2p1:RegistrationFee>10</d2p1:RegistrationFee>
      <d2p1:Relationship>sample string 11</d2p1:Relationship>
      <d2p1:Title>sample string 5</d2p1:Title>
    </d2p1:Dependant>
    <d2p1:Dependant>
      <d2p1:AgeGroup>sample string 12</d2p1:AgeGroup>
      <d2p1:BenefactorId>sample string 2</d2p1:BenefactorId>
      <d2p1:Email>sample string 13</d2p1:Email>
      <d2p1:EventId>3</d2p1:EventId>
      <d2p1:FirstName>sample string 7</d2p1:FirstName>
      <d2p1:FullName>sample string 8</d2p1:FullName>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:LastName>sample string 6</d2p1:LastName>
      <d2p1:OtherName>sample string 9</d2p1:OtherName>
      <d2p1:Phone>sample string 14</d2p1:Phone>
      <d2p1:RegId>sample string 4</d2p1:RegId>
      <d2p1:RegisteredOn>2022-09-26T11:37:08.2368423-05:00</d2p1:RegisteredOn>
      <d2p1:RegistrationFee>10</d2p1:RegistrationFee>
      <d2p1:Relationship>sample string 11</d2p1:Relationship>
      <d2p1:Title>sample string 5</d2p1:Title>
    </d2p1:Dependant>
  </Dependants>
  <EventId>1</EventId>
  <MembershipId>sample string 2</MembershipId>
</EventRegistration>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/xml

Sample:

Sample not available.