Base URL
All API endpoints are accessible at:Authentication
All API endpoints use Laravel Sanctum authentication with the
auth:sanctum middleware.HTTP Methods
The API follows RESTful conventions using standard HTTP methods:- GET: Retrieve resources
- POST: Create new resources
- PUT/PATCH: Update existing resources
- DELETE: Remove resources
apiResource routes, providing the following methods:
| Method | Endpoint | Action |
|---|---|---|
| GET | /api/{resource} | List all resources |
| POST | /api/{resource} | Create a new resource |
| GET | /api/{resource}/{id} | Get a specific resource |
| PUT/PATCH | /api/{resource}/{id} | Update a resource |
| DELETE | /api/{resource}/{id} | Delete a resource |
Available Endpoints
Institutions & Users
Institutions
Manage educational institutions
Users
Manage user accounts and profiles
Registrations
Handle student course registrations
Academic Structure
Sections
Manage course sections and classes
Units
Organize curriculum units
Topics
Handle learning topics within units
Learning Resources
Resources
Manage learning materials and resources
Questions
Create and manage assessment questions
Response Options
Define answer choices for questions
Evaluations
Evaluations
Create and manage evaluations
Evaluation Questions
Link questions to evaluations
Resource Endpoints Summary
The following resource endpoints are available:Getting Started
- Authenticate using Laravel Sanctum to obtain a Bearer token
- Include the token in the Authorization header for all requests
- Use the appropriate HTTP method and endpoint for your operation
- Handle responses according to the standard format