Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/miagv/PlataformaEduca/llms.txt

Use this file to discover all available pages before exploring further.

The Courses API manages PlataformaEduca’s institution-wide course catalog. All four CRUD operations — list, create, update, and delete — are available to any authenticated user. No special role is required beyond a valid JWT; the API enforces no further authorization distinctions between staff, teachers, or administrators. Base URL: /api/cursos Auth: All endpoints require a Bearer token in the Authorization header.

List all courses

Returns a JSON array of every Curso record in the system.

Response fields

id
integer
Unique course ID, assigned by the database on creation.
nombre
string
Human-readable course name (e.g. "Matemáticas").
descripcion
string
Short description of the course content.
creditos
integer
Number of academic credit hours assigned to this course.
estado
boolean
Whether the course is currently active. Defaults to true on creation.

Example

cURL
curl --request GET \
  --url http://localhost:8080/api/cursos \
  --header 'Authorization: Bearer <your-token>'
Response
[
  {
    "id": 1,
    "nombre": "Matemáticas",
    "descripcion": "Álgebra y geometría",
    "creditos": 4,
    "estado": true
  },
  {
    "id": 2,
    "nombre": "Comunicación",
    "descripcion": "Lenguaje y redacción",
    "creditos": 3,
    "estado": true
  }
]

Error codes

StatusMeaning
401 UnauthorizedThe Authorization header is missing or the token is invalid.
404 Not FoundNo course exists with the given id. Applies to PUT and DELETE.

Build docs developers (and LLMs) love