2022-05-11 22:47:31 +00:00
|
|
|
{
|
|
|
|
"operationId": "createCertificate",
|
|
|
|
"summary": "Create a new Certificate",
|
2023-05-28 22:50:27 +00:00
|
|
|
"tags": ["Certificates"],
|
2022-05-11 22:47:31 +00:00
|
|
|
"requestBody": {
|
|
|
|
"description": "Certificate to create",
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": "{{schema.CreateCertificate}}"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"201": {
|
|
|
|
"description": "201 response",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-05-28 22:50:27 +00:00
|
|
|
"required": ["result"],
|
2022-05-11 22:47:31 +00:00
|
|
|
"properties": {
|
|
|
|
"result": {
|
|
|
|
"$ref": "#/components/schemas/CertificateObject"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"examples": {
|
|
|
|
"default": {
|
|
|
|
"value": {
|
|
|
|
"result": {
|
|
|
|
"id": 1,
|
2023-05-28 22:50:27 +00:00
|
|
|
"created_at": 1604536109000,
|
|
|
|
"updated_at": 1604536109000,
|
2022-05-11 22:47:31 +00:00
|
|
|
"expires_on": null,
|
|
|
|
"type": "dns",
|
|
|
|
"user_id": 1,
|
|
|
|
"certificate_authority_id": 2,
|
|
|
|
"dns_provider_id": 1,
|
|
|
|
"name": "test1.jc21.com.au",
|
2023-05-28 22:50:27 +00:00
|
|
|
"domain_names": ["test1.jc21.com.au"],
|
2022-05-11 22:47:31 +00:00
|
|
|
"is_ecc": 0,
|
|
|
|
"status": "ready"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-05-28 22:50:27 +00:00
|
|
|
}
|