GET api/Events/{id}
This returns a event. If html is requested it converts to server local date time, otherwise date time is UTC.
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
id | The id of the event to return |
Define this parameter in the request URI. |
Response Information
single event
Response body formats
text/html
Sample:
<div> <h4>Event</h4> <hr /> <dl class="dl-horizontal"> <dt> Title </dt> <dd> <a href="sample string 5">sample string 2</a> </dd> <dt> Start_Time </dt> <dd> 1/18/2025 5:06:44 AM </dd> <dt> End_Time </dt> <dd> 1/18/2025 5:06:44 AM </dd> <dt> Venue </dt> <dd> sample string 3 </dd> <dt> Description </dt> <dd> sample string 6 </dd> <dt> Category </dt> <dd> sample string 4 </dd> <dt> Contact </dt> <dd> <a href="sample string 8">sample string 7</a> </dd> </dl> </div>
application/json, text/json
Sample:
{ "id": 1, "start_Time": "2025-01-18T05:06:44.2633204+00:00", "end_Time": "2025-01-18T05:06:44.2633204+00:00", "title": "sample string 2", "venue": "sample string 3", "category": "sample string 4", "title_Link": "sample string 5", "description": "sample string 6", "contact": "sample string 7", "contact_Link": "sample string 8" }
application/xml, text/xml
Sample:
<Event xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HDCAPIModel.Models"> <Category>sample string 4</Category> <Contact>sample string 7</Contact> <Contact_Link>sample string 8</Contact_Link> <Description>sample string 6</Description> <End_Time>2025-01-18T05:06:44.2633204+00:00</End_Time> <ID>1</ID> <Start_Time>2025-01-18T05:06:44.2633204+00:00</Start_Time> <Title>sample string 2</Title> <Title_Link>sample string 5</Title_Link> <Venue>sample string 3</Venue> </Event>
text/javascript
Sample:
({"id":1,"start_Time":"2025-01-18T05:06:44.2633204+00:00","end_Time":"2025-01-18T05:06:44.2633204+00:00","title":"sample string 2","venue":"sample string 3","category":"sample string 4","title_Link":"sample string 5","description":"sample string 6","contact":"sample string 7","contact_Link":"sample string 8"});