| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- {
- "operationId": "createCertificate",
- "summary": "Create a Certificate",
- "tags": ["Certificates"],
- "security": [
- {
- "BearerAuth": ["certificates"]
- }
- ],
- "requestBody": {
- "description": "Certificate Payload",
- "required": true,
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "additionalProperties": false,
- "required": ["provider"],
- "properties": {
- "provider": {
- "$ref": "../../../components/certificate-object.json#/properties/provider"
- },
- "nice_name": {
- "$ref": "../../../components/certificate-object.json#/properties/nice_name"
- },
- "domain_names": {
- "$ref": "../../../components/certificate-object.json#/properties/domain_names"
- },
- "meta": {
- "$ref": "../../../components/certificate-object.json#/properties/meta"
- }
- }
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "201 response",
- "content": {
- "application/json": {
- "examples": {
- "default": {
- "value": {
- "expires_on": "2025-01-07 04:30:17",
- "modified_on": "2024-10-09 05:28:51",
- "id": 5,
- "created_on": "2024-10-09 05:28:35",
- "owner_user_id": 1,
- "is_deleted": 0,
- "provider": "letsencrypt",
- "nice_name": "test.example.com",
- "domain_names": ["test.example.com"],
- "meta": {
- "letsencrypt_email": "[email protected]",
- "letsencrypt_agree": true,
- "dns_challenge": false,
- "letsencrypt_certificate": {
- "cn": "test.example.com",
- "issuer": "C = US, O = Let's Encrypt, CN = E5",
- "dates": {
- "from": 1728448218,
- "to": 1736224217
- }
- }
- }
- }
- }
- },
- "schema": {
- "$ref": "../../../components/certificate-object.json"
- }
- }
- }
- }
- }
- }
|