GET api/GenreData/ListGenres

Returns all genres in the system.

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

HEADER: 200 (OK) CONTENT: all genres in the database.

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>