Overview
TheGenero interface represents a book genre or category in the virtual library system. Each book belongs to exactly one genre.
Interface Definition
Properties
number
required
Unique identifier for the genre. Auto-generated by the backend.
string
required
The genre name (e.g., “Ficción”, “No Ficción”, “Ciencia Ficción”, “Romance”, “Misterio”).
Usage Examples
Fetching All Genres
Creating a New Genre
Updating a Genre
Deleting a Genre
Using Genres in Book Management
Filtering Books by Genre
Template Usage
Genre Statistics
Related Interfaces
- Libro - Book interface that references Genero
Related Services
- GeneroService - Service for genre CRUD operations
Common Genres
Here are some common genre examples you might use:- Ficción
- No Ficción
- Ciencia Ficción
- Fantasía
- Romance
- Misterio
- Thriller
- Historia
- Biografía
- Poesía
- Drama
- Terror
- Aventura
- Realismo Mágico
Notes
Genre names should be unique to avoid confusion. Consider adding validation on the backend to enforce this.