The Publications API manages content posted to a residential community’s notice board. Currently the system supports theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/GuillermoNavarro/Proyecto_comunidades/llms.txt
Use this file to discover all available pages before exploring further.
NOTICIA type — general announcements and news items published by community administrators and visible to all residents. Each publication is automatically tied to the posting admin’s community and user account via the JWT token.
The
comunidad and usuario fields on a publication are always auto-populated from the JWT token. Do not include either field in your request body when creating or updating a publication.Data model
Auto-generated primary key for the publication.
The category of the publication. Possible values:
| Value | Meaning |
|---|---|
NOTICIA | A community news item or announcement |
INCIDENCIA | A reported incident or maintenance issue |
The headline or title of the publication.
The body text or content of the publication.
Optional path or URL to an associated image.
The admin who authored the publication. Set automatically from the JWT on creation.
The community this publication belongs to. Set automatically from the JWT on creation.
An optional linked document (PDF) that accompanies the publication.
Timestamp set by the database when the record is first inserted. Read-only.
Optional expiry or completion date for the publication.
Whether the publication is active. Defaults to
true.Whether the publication has been reviewed by a moderator. Defaults to
false.Endpoints
GET api/publicaciones/noticias
Returns all active news publications for the authenticated user’s community.Required role:
USER or ADMINtipo = NOTICIA are returned.
Response
An array of publication objects of type
NOTICIA scoped to the caller’s community.POST api/publicaciones/noticias
Creates a new news publication for the authenticated admin’s community.Required role:
ADMINcomunidad and usuario fields are resolved from the JWT and set automatically — do not include them in the request body. The tipo field is also set automatically to NOTICIA by the service layer.
Request body — application/json
The headline of the news item.
The body content of the announcement.
Optional path or URL to an image to display alongside the post.
Optional. An object containing
id (Long) to link an existing community document to this publication.Optional expiry date-time for the publication in ISO-8601 format.
| Code | Meaning |
|---|---|
200 OK | Publication created successfully |
400 Bad Request | Validation failed (e.g. missing required fields) |
The full persisted publication object.
PUT api/publicaciones/noticias/{id}
Replaces the content of an existing news publication with new data.Required role:
ADMINcomunidad and usuario are managed server-side and should not be sent in the body.
Path parameters
The ID of the publication to update.
application/json
Updated headline for the publication.
Updated body content.
Updated image path or URL.
Set to
false to deactivate the publication without deleting it.Updated expiry date-time in ISO-8601 format.
| Code | Meaning |
|---|---|
200 OK | Publication updated and returned |
404 Not Found | No publication found with the given ID |
The updated publication object after the PUT has been applied.
DELETE api/publicaciones/{id}
Permanently deletes a publication by its ID.Required role:
ADMINThe ID of the publication to delete.
| Code | Meaning |
|---|---|
200 OK | Publication deleted successfully |
404 Not Found | No publication found with the given ID |