GET api/GenreData/FindGenre/{id}

Returns a particular genre in the system.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The primary key of the genre

integer

Required

Body Parameters

None.

Response Information

Resource Description

HEADER: 200 (OK) CONTENT: An genre in the system matching up to the genre ID primary key or HEADER: 404 (NOT FOUND)

GenreDto
NameDescriptionTypeAdditional information
GenreID

integer

None.

GenreName

string

None.

Response Formats

application/json, text/json

Sample:
{
  "GenreID": 1,
  "GenreName": "sample string 2"
}

application/xml, text/xml

Sample:
<GenreDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Passion_Project.Models">
  <GenreID>1</GenreID>
  <GenreName>sample string 2</GenreName>
</GenreDto>