EdrisoEdriso
Retour
GET/v1/resources

List resources

Paginated catalogue with filters on level, grade, subject, type and status.

Auth · Bearer session token

Request

GET /v1/resources?level=secondaire&subject=mathematiques&page=1&pageSize=12
Authorization: Bearer edr_sess_••••

Response

{
  "data": [
    {
      "id": "r-1",
      "title": "Sujet Bac Mathématiques…",
      "type": "examen",
      "status": "published",
      "downloads": 18420
    }
  ],
  "meta": { "page": 1, "total": 128, "totalPages": 11 }
}

Exemple d’authentification

curl -X POST https://api.edriso.dz/v1/auth/session \
  -H "Content-Type: application/json" \
  -d '{"provider":"role","role":"student"}'

# Puis
curl https://api.edriso.dz/v1/resources \
  -H "Authorization: Bearer edr_sess_••••"