- route definition
- Url: /api/v1/schemas
- Method: GET
- Request:
SchemasListRequest - Response:
SchemasListResponse
- request definition
type SchemasListRequest struct {
Page int `form:"page,optional"`
PageSize int `form:"pageSize,optional"`
}
- response definition
type SchemasListResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}
- route definition
- Url: /api/v1/schemas
- Method: POST
- Request:
SchemaCreateRequest - Response:
SchemaCreateResponse
- request definition
type SchemaCreateRequest struct {
Name string `json:"name"`
Schema interface{} `json:"schema"`
}
- response definition
type SchemaCreateResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}
- route definition
- Url: /api/v1/schemas/:id
- Method: GET
- Request:
SchemaDetailRequest - Response:
SchemaDetailResponse
- request definition
type SchemaDetailRequest struct {
ID string `path:"id"`
}
- response definition
type SchemaDetailResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}
- route definition
- Url: /api/v1/schemas/:id
- Method: PUT
- Request:
SchemaUpdateRequest - Response:
SchemaUpdateResponse
- request definition
type SchemaUpdateRequest struct {
ID string `path:"id"`
Schema interface{} `json:"schema"`
}
- response definition
type SchemaUpdateResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}
- route definition
- Url: /api/v1/schemas/:id
- Method: DELETE
- Request:
SchemaDeleteRequest - Response:
SchemaDeleteResponse
- request definition
type SchemaDeleteRequest struct {
ID string `path:"id"`
}
- response definition
type SchemaDeleteResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}
- route definition
- Url: /api/v1/schemas/:id/ui-config
- Method: GET
- Request:
SchemaUIConfigRequest - Response:
SchemaUIConfigResponse
- request definition
type SchemaUIConfigRequest struct {
ID string `path:"id"`
}
- response definition
type SchemaUIConfigResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}
- route definition
- Url: /api/v1/schemas/:id/ui-config
- Method: PUT
- Request:
SchemaUIConfigUpdateRequest - Response:
SchemaUIConfigUpdateResponse
- request definition
type SchemaUIConfigUpdateRequest struct {
ID string `path:"id"`
Config interface{} `json:"config"`
}
- response definition
type SchemaUIConfigUpdateResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}
- route definition
- Url: /api/v1/schemas/:id/validate
- Method: POST
- Request:
SchemaValidateRequest - Response:
SchemaValidateResponse
- request definition
type SchemaValidateRequest struct {
ID string `path:"id"`
Data interface{} `json:"data"`
}
- response definition
type SchemaValidateResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}
- route definition
- Url: /api/v1/schemas/raw-validate
- Method: POST
- Request:
SchemaRawValidateRequest - Response:
SchemaRawValidateResponse
- request definition
type SchemaRawValidateRequest struct {
Schema interface{} `json:"schema"`
Data interface{} `json:"data"`
}
- response definition
type SchemaRawValidateResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}