Publications#
- async backend.app.api.publications.create_publication(pub: Publication, db: Session = Depends(get_db))[source]#
Create a new publication.
This endpoint allows the creation of a new publication in the database.
- Parameters:
pub (Publication) – The publication information to be added.
db (Session) – The database session.
- Returns:
The created publication.
- Return type:
- async backend.app.api.publications.get_publications(db: Session = Depends(get_db))[source]#
Retrieve all publications.
This endpoint retrieves all publications stored in the database.
- Parameters:
db (Session) – The database session.
- Returns:
A list of all publications.
- Return type:
list[Publication]