V1::CertificatesController

Certificates

index

Get a list of certificates

URL

GET /schools/:school_id/certificates

Objeto resposta

Array<Certificate>

The created certificates

show

View a {Certificate}

URL

GET /certificates/:id

Parâmetros obrigatórios

Nome Tipo Descrição
id Integer

Identifier the certificate

Objeto resposta

Certificate

The requested certificate

create

Create new certificate

URL

POST /certificates

Parâmetros obrigatórios

Nome Tipo Descrição
certificate Hash

The certificate to create

certificate[s3_file_url] String

The document url of the certificate

certificate[enrollment_id] Integer

The associated Enrollment

certificate[school_product_id] Integer

The associated SchoolProduct

certificate[school_id] school_id

The associated School

Objeto resposta

Certificate

The created certificate or a list of errors