- route definition
- Url: /api/v1/certificates
- Method: GET
- Request:
CertificatesListRequest - Response:
CertificatesListResponse
- request definition
type CertificatesListRequest struct {
Page int `form:"page,optional"`
PageSize int `form:"pageSize,optional"`
Status string `form:"status,optional"`
}
- response definition
type CertificatesListResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}
- route definition
- Url: /api/v1/certificates
- Method: POST
- Request:
CertificateAddRequest - Response:
CertificateAddResponse
- request definition
type CertificateAddRequest struct {
Domain string `json:"domain"`
Certificate string `json:"certificate,optional"`
PrivateKey string `json:"privateKey,optional"`
}
- response definition
type CertificateAddResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}
- route definition
- Url: /api/v1/certificates/:id
- Method: GET
- Request:
CertificateDetailRequest - Response:
CertificateDetailResponse
- request definition
type CertificateDetailRequest struct {
ID string `path:"id"`
}
- response definition
type CertificateDetailResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}
- route definition
- Url: /api/v1/certificates/:id
- Method: DELETE
- Request:
CertificateDeleteRequest - Response:
CertificateDeleteResponse
- request definition
type CertificateDeleteRequest struct {
ID string `path:"id"`
}
- response definition
type CertificateDeleteResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}
- route definition
- Url: /api/v1/certificates/:id/check
- Method: POST
- Request:
CertificateCheckRequest - Response:
CertificateCheckResponse
- request definition
type CertificateCheckRequest struct {
ID string `path:"id"`
}
- response definition
type CertificateCheckResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}
- route definition
- Url: /api/v1/certificates/alerts
- Method: POST
- Request:
CertificateAlertAddRequest - Response:
CertificateAlertAddResponse
- request definition
type CertificateAlertAddRequest struct {
Domain string `json:"domain"`
Threshold int `json:"threshold,optional"`
}
- response definition
type CertificateAlertAddResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}
- route definition
- Url: /api/v1/certificates/alerts
- Method: GET
- Request:
CertificateAlertsListRequest - Response:
CertificateAlertsListResponse
- request definition
type CertificateAlertsListRequest struct {
Page int `form:"page,optional"`
PageSize int `form:"pageSize,optional"`
}
- response definition
type CertificateAlertsListResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}
- route definition
- Url: /api/v1/certificates/check-all
- Method: POST
- Request:
CertificateCheckAllRequest - Response:
CertificateCheckAllResponse
- request definition
type CertificateCheckAllRequest struct {
}
- response definition
type CertificateCheckAllResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}
- route definition
- Url: /api/v1/certificates/domain-info
- Method: GET
- Request:
CertificateDomainInfoRequest - Response:
CertificateDomainInfoResponse
- request definition
type CertificateDomainInfoRequest struct {
Domain string `form:"domain"`
}
- response definition
type CertificateDomainInfoResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}
- route definition
- Url: /api/v1/certificates/expiring
- Method: GET
- Request:
CertificateExpiringRequest - Response:
CertificateExpiringResponse
- request definition
type CertificateExpiringRequest struct {
Days int `form:"days,optional"`
}
- response definition
type CertificateExpiringResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}
- route definition
- Url: /api/v1/certificates/stats
- Method: GET
- Request:
CertificateStatsRequest - Response:
CertificateStatsResponse
- request definition
type CertificateStatsRequest struct {
}
- response definition
type CertificateStatsResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}