Skip to main content

Overview

The Autor interface represents an author in the virtual library system. Authors can be associated with one or more books.

Interface Definition

Properties

number
required
Unique identifier for the author. Auto-generated by the backend.
string
required
The author’s full name.
string
Optional URL or path to the author’s photo/portrait.

Usage Examples

Fetching All Authors

Creating a New Author

Updating an Author

Deleting an Author

Using Authors in Book Creation

Displaying Author Information in Components

Template Usage

  • Libro - Book interface that references Autor in the autores array

Notes

Deleting an author that is associated with existing books may fail due to foreign key constraints. Consider implementing a check or cascade delete strategy.
The urlFoto field is optional but recommended for better user experience in the UI.