Documentation Index
Fetch the complete documentation index at: https://mintlify.com/AngelZurita28/VeranoRegional/llms.txt
Use this file to discover all available pages before exploring further.
api.php exposes a small set of internal JSON endpoints used by registration and admin forms to populate dependent dropdowns without a full page reload. These endpoints are called via client-side fetch or XMLHttpRequest from the same origin — they are not designed for external consumers and carry no authentication layer. A separate AJAX endpoint in ApplicationController handles student application priority reordering.
Base URL
Content-Type: application/json header. Successful requests return HTTP 200; an unrecognised or missing action returns HTTP 400.
These endpoints are for same-origin use only. There is no CORS configuration, so cross-origin requests from a different domain or port will be blocked by the browser.
GET api.php?action=get_careers_by_campus
Returns the list of academic careers associated with a specific campus. Used by registration forms to populate the Career dropdown after a user selects their campus.Query parameters
Must be
get_careers_by_campus.The numeric ID of the campus whose careers you want to retrieve.
Response
Array of career objects.
Error response
IfidCampus is missing or not a numeric value, the endpoint returns HTTP 200 with an error object (not a 4xx status):
Example
GET api.php?action=get_cities_by_state
Returns the list of cities that belong to a given Mexican state. Used by the campus creation and edit forms to populate the City dropdown.Query parameters
Must be
get_cities_by_state.The numeric ID of the state whose cities you want to retrieve.
Response
Array of city objects.
Error response
IfidState is missing or not numeric:
Example
GET api.php?action=get_campuses_by_institution
Returns the campuses that belong to a specific institution. Used by registration and admin forms to cascade the campus dropdown after an institution is selected.Query parameters
Must be
get_campuses_by_institution.The numeric ID of the institution.
Response
Array of campus objects. Returns an empty array
[] if idInstitution is missing or non-numeric (no error object — this differs from the other two endpoints).Example
Default / invalid action — HTTP 400
Any request whereaction is missing, empty, or does not match a known case returns HTTP 400:
POST index.php?action=update_application_order
Updates the priority order of a student’s project applications via AJAX. This endpoint is handled byApplicationController::updateApplicationOrder() and is routed through index.php, not api.php. It requires an active student session (role 5).
Request
Method:POSTURL:
index.php?action=update_application_orderContent-Type:
application/json
Body
Ordered array of application IDs. The position in the array determines the new priority: the first element becomes priority 1, the second becomes priority 2, and so on.
Response
"success" if the update was applied, "error" otherwise.Present only when
status is "error". Describes the failure reason.