Public REST API & Developer Hub
High-performance, read-only JSON endpoints exposing diagnostic division catalogs, test specifications, high-resolution media, and institutional updates for direct integration into ecu.edu.et and affiliated healthcare portals.
https://lab.ecu.edu.et/api/v1Root endpoint returning metadata about the API version, institutional contact, and all currently exposed routes.
{
"api": "ECUSTA Advanced Diagnostic Laboratory Public API",
"version": "1.0.0",
"base_url": "https://lab.ecu.edu.et/api/v1",
"description": "Read-only REST API exposing services, web stories, lab images, and institutional news for the ECUSTA Advanced Diagnostic Laboratory.",
"contact": "it@ecusta-hli.edu.et",
"endpoints": [
{
"method": "GET",
"path": "/api/v1/services.json"
},
{
"method": "GET",
"path": "/api/v1/services/{slug}.json"
},
{
"method": "GET",
"path": "/api/v1/stories.json"
},
{
"method": "GET",
"path": "/api/v1/stories/{id}.json"
},
{
"method": "GET",
"path": "/api/v1/images.json"
},
{
"method": "GET",
"path": "/api/v1/delegation.json"
}
]
}Integration Code Generator
Pre-formatted snippets for university CMS templates, webhooks, and frontend frameworks.
// Fetch laboratory data with JavaScript / TypeScript
async function loadLabData() {
const res = await fetch('https://lab.ecu.edu.et/api/v1.json');
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
console.log(data);
return data;
}
loadLabData();Integration Guide for ecu.edu.et Web Team
Cross-Origin Requests (CORS): All endpoints respond with Access-Control-Allow-Origin: *. Client-side fetches from any page on https://www.ecu.edu.et execute without CORS restrictions.
Edge Caching & Performance: Endpoints are statically pre-rendered at build time and served directly from Cloudflare Pages global edge network. Responses include Cache-Control: public, max-age=3600.
Clinical Data Boundary Notice: This REST API is strictly for institutional metadata, service test lists, equipment inventories, web stories, and official visit records. No patient medical records, test results, or specimen order statuses are exposed through this public API.