Go back to Partigi API Documentation
Genres are a kind of categories associated to the items. For example comedy and drama are genres that belong to the list of genres associated to films.
Schema
ptGenre = element atom:entry {
atomId,
atomUpdated,
atomTitle,
atomCategory,
ptGenre:subgenre*
}
The table below details the genre common elements:
Element |
Property |
Description |
entry |
atom:category |
Scheme: http://schemas.partigi.com/v1.0#kind
Term: http://schemas.partigi.com/v1.0#genre |
|
atom:updated |
The date where the last genre was added (it doesn't use to change so much) |
|
atom:title |
The name of the genre, localized |
|
atom:id |
The URI that identifies the genres. It is, a list of the items associated to the genre |
|
ptGenre:subgenre* |
A list of the subgenres that belongs to a genre |
An example
http://www.partigi.com/api/v1/genres?item_type=film
<entry xmlns:ptGenre="http://schemas.partigi.com/v1.0/ptGenre">
<category scheme="http://schemas.partigi.com/v1.0#kind" term="http://schemas.partigi.com/v1.0#genre"/>
<id>http://localhost:3000/api/v1/items?genre=trips_and_leisure_time&amp;item_type=Book</id>
<title>viajes y ocio</title>
<updated>2010-06-01T00:00:00Z</updated>
<ptGenre:subgenres type="collection">
<ptGenre:subgenre lang="es" id="trips">viajes</ptGenre:subgenre>
<ptGenre:subgenre lang="es" id="hobbies">hobbies</ptGenre:subgenre>
<ptGenre:subgenre lang="es" id="games">juegos</ptGenre:subgenre>
<ptGenre:subgenre lang="es" id="gardering">jardinería</ptGenre:subgenre>
<ptGenre:subgenre lang="es" id="pets">mascotas</ptGenre:subgenre>
<ptGenre:subgenre lang="es" id="sports">deportes</ptGenre:subgenre>
</ptGenre:subgenres>
</entry>
Go back to Partigi API Documentation
Comments (0)
You don't have permission to comment on this page.