GET api/Saints/GetSaintById?saintId={saintId}

Returns a single saint object based on the integer id.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
saintId

integer [retrieved from the URI]

integer

Required

Body Parameters

None.

Response Information

Resource Description

A single saint object

Saint
NameDescriptionTypeAdditional information
saintid

integer

None.

title

string

None.

name

string

None.

date

date

None.

comment

string

None.

description

string

None.

story

string

None.

mp3

boolean

None.

sex

string

None.

feastday

date

None.

dateslived

string

None.

Response Formats

application/json, text/json

Sample:
{
  "saintid": 1,
  "title": "sample string 2",
  "name": "sample string 3",
  "date": "2022-01-19T15:14:55.0488803-05:00",
  "comment": "sample string 4",
  "description": "sample string 5",
  "story": "sample string 6",
  "mp3": true,
  "sex": "sample string 8",
  "feastday": "2022-01-19T15:14:55.0488803-05:00",
  "dateslived": "sample string 9"
}

application/xml, text/xml

Sample:
<Saint xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FMServices.Models">
  <comment>sample string 4</comment>
  <date>2022-01-19T15:14:55.0488803-05:00</date>
  <dateslived>sample string 9</dateslived>
  <description>sample string 5</description>
  <feastday>2022-01-19T15:14:55.0488803-05:00</feastday>
  <mp3>true</mp3>
  <name>sample string 3</name>
  <saintid>1</saintid>
  <sex>sample string 8</sex>
  <story>sample string 6</story>
  <title>sample string 2</title>
</Saint>