get.json 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. {
  2. "operationId": "getCertificate",
  3. "summary": "Get a Certificate",
  4. "tags": ["certificates"],
  5. "security": [
  6. {
  7. "bearerAuth": ["certificates.view"]
  8. }
  9. ],
  10. "parameters": [
  11. {
  12. "in": "path",
  13. "name": "certID",
  14. "description": "Certificate ID",
  15. "schema": {
  16. "type": "integer",
  17. "minimum": 1
  18. },
  19. "required": true,
  20. "example": 1
  21. }
  22. ],
  23. "responses": {
  24. "200": {
  25. "description": "200 response",
  26. "content": {
  27. "application/json": {
  28. "examples": {
  29. "default": {
  30. "value": {
  31. "id": 4,
  32. "created_on": "2024-10-09T05:31:58.000Z",
  33. "modified_on": "2024-10-09T05:32:11.000Z",
  34. "owner_user_id": 1,
  35. "provider": "letsencrypt",
  36. "nice_name": "test.example.com",
  37. "domain_names": ["test.example.com"],
  38. "expires_on": "2025-01-07T04:34:18.000Z",
  39. "meta": {
  40. "dns_challenge": false
  41. }
  42. }
  43. }
  44. },
  45. "schema": {
  46. "$ref": "../../../../components/certificate-object.json"
  47. }
  48. }
  49. }
  50. }
  51. }
  52. }