GET ./certificates/{?id}

  • The endpoint for this method would be something like /certificates/{id}, where {id} is an optional parameter representing the ID of a specific certificate. If the {id} parameter is provided, the method will return the certificate with that ID. If the {id} parameter is not provided, the method will return all certificates.
  • The method also supports additional filtering through query parameters. The query parameters are processed by the api_query library. The supported query parameters include:

GET parameters

NameValue TypeValidationDetails
cerIDintOptionalFilter certificates by their ID.
cerDateDateOptional: YYYY-MM-DDFilter certificates by their date.
uaIDintOptionalFilter certificates by the associated user ID.
ascIDintOptionalFilter certificates by school year.
cerClIDintOptionalFilter certificates by class.
cerTypeCategorystringOptional: student_cert/diplomasFilter certificates by the associated person.
  • The method returns an array of certificates, each represented as an associative array with fields like cerID, cerType, cerUaID, cerDate, cerNumber, cerReason, and cerPerson. If the {id} parameter is provided, additional fields cerData and cerOptions are also included in the returned certificate data.

Output example

{
"meta": {
"countTotal": "1",
"countData": "1",
"countOffset": "0"
},
"data": [
{
"cerID": "37",
"cerUaID": "160117",
"cerDate": "2022-11-21",
"cerNumber": "1",
"cerType": "4",
"cerReason": "Alt motiv diploma",
"cerData": {
"cnp": "6051207330531",
"class": "XII D",
"last_name": "Biatrice-Nicoleta",
"school_no": "106",
"secretary": "Iuliana Popescu",
"class_form": null,
"class_year": "2023/2024",
"first_name": "Popescu",
"headmaster": "Iuliana Popescu"
},
"cerOptions": {
"show_logo": true,
"diploma_background": null
},
"cerPerson": {
"uaID": "160117",
"uaTip": "1",
"uaFirstName": "Biatrice-Nicoleta",
"uaLastName": "Popescu",
"uaSex": "1",
"prefAvatar": null,
"roles": [
{
"roleID": "13",
"roleName": "Elevi"
}
],
"clasa": {
"clID": "459",
"clNume": "XII D",
"ascIsActiv": "1",
"ascNume": "2023/2024"
}
}
}
]
}