apim

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2021 License: AGPL-3.0 Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const APIMAddr = "apim.marathon.l4lb.thisdcos.directory:3083"

Variables

View Source
var APIDocWebsocket = apis.ApiSpec{
	Path:         "/api/apim-ws/api-docs/filetree/<inode>",
	BackendPath:  "/api/apim-ws/api-docs/filetree/<inode>",
	Host:         APIMAddr,
	Scheme:       "ws",
	Method:       http.MethodGet,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  nil,
	ResponseType: nil,
	Doc:          "api doc websocket",
}
View Source
var CreateAPIAsset = apis.ApiSpec{
	Path:         "/api/api-assets",
	BackendPath:  "/api/api-assets",
	Host:         APIMAddr,
	Scheme:       "http",
	Method:       http.MethodPost,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  apistructs.APIAssetCreateRequest{},
	ResponseType: nil,
	Doc:          "创建 API 资料",
}
View Source
var CreateAPIAssetVersion = apis.ApiSpec{
	Path:         "/api/api-assets/<assetID>/versions",
	BackendPath:  "/api/api-assets/<assetID>/versions",
	Host:         APIMAddr,
	Scheme:       "http",
	Method:       http.MethodPost,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  apistructs.APIAssetVersionCreateRequest{},
	ResponseType: apistructs.CreateAPIAssetVersionBody{},
	Doc:          "新增 API 资料版本",
}
View Source
var CreateAccess = apis.ApiSpec{
	Path:         "/api/api-access",
	BackendPath:  "/api/api-access",
	Host:         APIMAddr,
	Scheme:       "http",
	Method:       http.MethodPost,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  apistructs.CreateAccessReq{},
	ResponseType: nil,
	Doc:          "create access",
}
View Source
var CreateAttempTest = apis.ApiSpec{
	Path:         "/api/api-assets/<assetID>/swagger-versions/<swaggerVersion>/attempt-test",
	BackendPath:  "/api/api-assets/<assetID>/swagger-versions/<swaggerVersion>/attempt-test",
	Host:         APIMAddr,
	Scheme:       "http",
	Method:       http.MethodPost,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  apistructs.APITestReq{},
	ResponseType: apistructs.Header{},
	Doc:          "list access",
}
View Source
var CreateClient = apis.ApiSpec{
	Path:         "/api/api-clients",
	BackendPath:  "/api/api-clients",
	Host:         APIMAddr,
	Scheme:       "http",
	Method:       http.MethodPost,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  apistructs.CreateClientReq{},
	ResponseType: nil,
	Doc:          "create client",
}
View Source
var CreateContract = apis.ApiSpec{
	Path:         "/api/api-clients/<clientID>/contracts",
	BackendPath:  "/api/api-clients/<clientID>/contracts",
	Host:         APIMAddr,
	Scheme:       "http",
	Method:       http.MethodPost,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  apistructs.CreateContractReq{},
	ResponseType: nil,
	Doc:          "create contract",
}
View Source
var CreateInstantiation = apis.ApiSpec{
	Path:         "/api/api-assets/<assetID>/swagger-versions/<swaggerVersion>/minors/<minor>/instantiations",
	BackendPath:  "/api/api-assets/<assetID>/swagger-versions/<swaggerVersion>/minors/<minor>/instantiations",
	Host:         APIMAddr,
	Scheme:       "http",
	Method:       http.MethodPost,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  apistructs.CreateInstantiationReq{},
	ResponseType: nil,
	Doc:          "create instantiation",
}
View Source
var CreateSLA = apis.ApiSpec{
	Path:         "/api/api-assets/<assetID>/swagger-versions/<swaggerVersion>/slas",
	BackendPath:  "/api/api-assets/<assetID>/swagger-versions/<swaggerVersion>/slas",
	Host:         APIMAddr,
	Scheme:       "http",
	Method:       http.MethodPost,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  apistructs.CreateSLAReq{},
	ResponseType: apistructs.Header{},
	Doc:          "create SLA",
}
View Source
var DeleteAPIAssetVersion = apis.ApiSpec{
	Path:         "/api/api-assets/<assetID>/versions/<versionID>",
	BackendPath:  "/api/api-assets/<assetID>/versions/<versionID>",
	Method:       http.MethodDelete,
	Host:         APIMAddr,
	Scheme:       "http",
	CheckLogin:   true,
	Doc:          "删除指定版本的 API 资料",
	RequestType:  nil,
	ResponseType: nil,
}
View Source
var DeleteAPIAssets = apis.ApiSpec{
	Path:         "/api/api-assets/<assetID>",
	BackendPath:  "/api/api-assets/<assetID>",
	Method:       http.MethodDelete,
	Host:         APIMAddr,
	Scheme:       "http",
	CheckLogin:   true,
	Doc:          "删除 API 资料",
	RequestType:  nil,
	ResponseType: nil,
}
View Source
var DeleteAccess = apis.ApiSpec{
	Path:         "/api/api-access/<accessID>",
	BackendPath:  "/api/api-access/<accessID>",
	Host:         APIMAddr,
	Scheme:       "http",
	Method:       http.MethodDelete,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  nil,
	ResponseType: nil,
	Doc:          "delete access",
}
View Source
var DeleteClient = apis.ApiSpec{
	Path:         "/api/api-clients/<clientID>",
	BackendPath:  "/api/api-clients/<clientID>",
	Host:         APIMAddr,
	Scheme:       "http",
	Method:       http.MethodDelete,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  nil,
	ResponseType: nil,
	Doc:          "delete client",
}
View Source
var DeleteContract = apis.ApiSpec{
	Path:         "/api/api-clients/<clientID>/contracts/<contractID>",
	BackendPath:  "/api/api-clients/<clientID>/contracts/<contractID>",
	Host:         APIMAddr,
	Scheme:       "http",
	Method:       http.MethodDelete,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  apistructs.GetContractReq{},
	ResponseType: nil,
	Doc:          "delete contract",
}
View Source
var DeleteSLA = apis.ApiSpec{
	Path:         "/api/api-assets/<assetID>/swagger-versions/<swaggerVersion>/slas/<slaID>",
	BackendPath:  "/api/api-assets/<assetID>/swagger-versions/<swaggerVersion>/slas/<slaID>",
	Host:         APIMAddr,
	Scheme:       "http",
	Method:       http.MethodDelete,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  apistructs.DeleteSLAReq{},
	ResponseType: apistructs.Header{},
	Doc:          "delete SLA",
}
View Source
var ExportSpec = apis.ApiSpec{
	Path:         "/api/api-assets/<assetID>/versions/<versionID>/export",
	BackendPath:  "/api/api-assets/<assetID>/versions/<versionID>/export",
	Host:         APIMAddr,
	Scheme:       "http",
	Method:       http.MethodGet,
	CheckLogin:   true,
	RequestType:  apistructs.DownloadSpecTextReq{},
	ResponseType: nil,
	Doc:          "导出 swagger 文本",
}
View Source
var FileTreeCreateNode = apis.ApiSpec{
	Path:         "/api/apim/<treeName>/filetree",
	BackendPath:  "/api/apim/<treeName>/filetree",
	Host:         APIMAddr,
	Scheme:       "http",
	Method:       http.MethodPost,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  apistructs.APIDocCreateNodeReq{},
	ResponseType: nil,
	Doc:          "create file tree node",
}
View Source
var FileTreeDeleteNode = apis.ApiSpec{
	Path:         "/api/apim/<treeName>/filetree/<inode>",
	BackendPath:  "/api/apim/<treeName>/filetree/<inode>",
	Host:         APIMAddr,
	Scheme:       "http",
	Method:       http.MethodDelete,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  nil,
	ResponseType: nil,
	Doc:          "delete file tree node",
}
View Source
var FileTreeGetNode = apis.ApiSpec{
	Path:         "/api/apim/<treeName>/filetree/<inode>",
	BackendPath:  "/api/apim/<treeName>/filetree/<inode>",
	Host:         APIMAddr,
	Scheme:       "http",
	Method:       http.MethodGet,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  nil,
	ResponseType: nil,
	Doc:          "get file tree node",
}
View Source
var FileTreeListNodes = apis.ApiSpec{
	Path:         "/api/apim/<treeName>/filetree",
	BackendPath:  "/api/apim/<treeName>/filetree",
	Host:         APIMAddr,
	Scheme:       "http",
	Method:       http.MethodGet,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  nil,
	ResponseType: nil,
	Doc:          "list file tree nodes",
}
View Source
var FileTreeMvCpNode = apis.ApiSpec{
	Path:         "/api/apim/<treeName>/filetree/<inode>/actions/<action>",
	BackendPath:  "/api/apim/<treeName>/filetree/<inode>/actions/<action>",
	Host:         APIMAddr,
	Scheme:       "http",
	Method:       http.MethodPost,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  nil,
	ResponseType: nil,
	Doc:          "mv or cp file tree node",
}
View Source
var FileTreeUpdateNode = apis.ApiSpec{
	Path:         "/api/apim/<treeName>/filetree/<inode>",
	BackendPath:  "/api/apim/<treeName>/filetree/<inode>",
	Host:         APIMAddr,
	Scheme:       "http",
	Method:       http.MethodPut,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  nil,
	ResponseType: nil,
	Doc:          "update file tree node",
}
View Source
var GetAPIAssetVersion = apis.ApiSpec{
	Path:         "/api/api-assets/<assetID>/versions/<versionID>",
	BackendPath:  "/api/api-assets/<assetID>/versions/<versionID>",
	Host:         APIMAddr,
	Scheme:       "http",
	Method:       http.MethodGet,
	CheckLogin:   true,
	RequestType:  apistructs.GetAPIAssetVersionReq{},
	ResponseType: apistructs.GetAssetVersionRsp{},
	Doc:          "查询 API 资料版本详情",
}
View Source
var GetAPIAssets = apis.ApiSpec{
	Path:         "/api/api-assets/<assetID>",
	BackendPath:  "/api/api-assets/<assetID>",
	Host:         APIMAddr,
	Scheme:       "http",
	Method:       http.MethodGet,
	CheckLogin:   true,
	RequestType:  apistructs.GetAPIAssetReq{},
	ResponseType: apistructs.APIAssetGetResponse{},
	Doc:          "查询 API 资料",
}
View Source
var GetAccess = apis.ApiSpec{
	Path:         "/api/api-access/<accessID>",
	BackendPath:  "/api/api-access/<accessID>",
	Host:         APIMAddr,
	Scheme:       "http",
	Method:       http.MethodGet,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  nil,
	ResponseType: nil,
	Doc:          "get access",
}
View Source
var GetClient = apis.ApiSpec{
	Path:         "/api/api-clients/<clientID>",
	BackendPath:  "/api/api-clients/<clientID>",
	Host:         APIMAddr,
	Scheme:       "http",
	Method:       http.MethodGet,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  apistructs.GetClientReq{},
	ResponseType: nil,
	Doc:          "get client",
}
View Source
var GetContract = apis.ApiSpec{
	Path:         "/api/api-clients/<clientID>/contracts/<contractID>",
	BackendPath:  "/api/api-clients/<clientID>/contracts/<contractID>",
	Host:         APIMAddr,
	Scheme:       "http",
	Method:       http.MethodGet,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  apistructs.GetContractReq{},
	ResponseType: nil,
	Doc:          "get contract",
}
View Source
var GetInstantiations = apis.ApiSpec{
	Path:         "/api/api-assets/<assetID>/swagger-versions/<swaggerVersion>/minors/<minor>/instantiations",
	BackendPath:  "/api/api-assets/<assetID>/swagger-versions/<swaggerVersion>/minors/<minor>/instantiations",
	Host:         APIMAddr,
	Scheme:       "http",
	Method:       http.MethodGet,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  apistructs.GetInstantiationsReq{},
	ResponseType: apistructs.GetAddonInstanceDetailResponse{},
	Doc:          "get instantiations",
}
View Source
var GetOperation = apis.ApiSpec{
	Path:         "/api/apim/operations/<id>",
	BackendPath:  "/api/apim/operations/<id>",
	Host:         APIMAddr,
	Scheme:       "http",
	Method:       http.MethodGet,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  apistructs.GetOperationReq{},
	ResponseType: apistructs.BaseResponse{},
	Doc:          "搜索集市中的接口",
}
View Source
var GetSLA = apis.ApiSpec{
	Path:         "/api/api-assets/<assetID>/swagger-versions/<swaggerVersion>/slas/<slaID>",
	BackendPath:  "/api/api-assets/<assetID>/swagger-versions/<swaggerVersion>/slas/<slaID>",
	Host:         APIMAddr,
	Scheme:       "http",
	Method:       http.MethodGet,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  apistructs.ListSLAsReq{},
	ResponseType: apistructs.ListSLAsRsp{},
	Doc:          "get SLA",
}
View Source
var ListAPIAssetVersions = apis.ApiSpec{
	Path:         "/api/api-assets/<assetID>/versions",
	BackendPath:  "/api/api-assets/<assetID>/versions",
	Host:         APIMAddr,
	Scheme:       "http",
	Method:       http.MethodGet,
	CheckLogin:   true,
	RequestType:  apistructs.GetAPIAssetVersionReq{},
	ResponseType: apistructs.GetAssetVersionRsp{},
	Doc:          "查询 API 资料版本列表",
}
View Source
var ListAPIGateways = apis.ApiSpec{
	Path:         "api/api-assets/<assetID>/api-gateways",
	BackendPath:  "api/api-assets/<assetID>/api-gateways",
	Host:         APIMAddr,
	Scheme:       "http",
	Method:       http.MethodGet,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  apistructs.ListAPIGatewaysReq{},
	ResponseType: map[string]interface{}{"total": 0, "list": nil},
	Doc:          "list api-gateways",
}
View Source
var ListAccess = apis.ApiSpec{
	Path:         "/api/api-access",
	BackendPath:  "/api/api-access",
	Host:         APIMAddr,
	Scheme:       "http",
	Method:       http.MethodGet,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  apistructs.ListAccessReq{},
	ResponseType: apistructs.ListAccessRsp{},
	Doc:          "list access",
}
View Source
var ListContract = apis.ApiSpec{
	Path:         "/api/api-clients/<clientID>/contracts",
	BackendPath:  "/api/api-clients/<clientID>/contracts",
	Host:         APIMAddr,
	Scheme:       "http",
	Method:       http.MethodGet,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  apistructs.ListContractsReq{},
	ResponseType: apistructs.ListContractsRsp{},
	Doc:          "list contract",
}
View Source
var ListContractRecords = apis.ApiSpec{
	Path:         "/api/api-clients/<clientID>/contracts/<contractID>/operation-records",
	BackendPath:  "/api/api-clients/<clientID>/contracts/<contractID>/operation-records",
	Host:         APIMAddr,
	Scheme:       "http",
	Method:       http.MethodGet,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  apistructs.ListContractRecordsReq{},
	ResponseType: apistructs.ListContractRecordsRsp{},
	Doc:          "list contract records",
}
View Source
var ListInstantiations = apis.ApiSpec{
	Path:         "/api/api-instantiations",
	BackendPath:  "/api/api-instantiations",
	Host:         APIMAddr,
	Scheme:       "http",
	Method:       http.MethodGet,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  nil,
	ResponseType: nil,
	Doc:          "get instantiations",
}
View Source
var ListMyClients = apis.ApiSpec{
	Path:         "/api/api-clients",
	BackendPath:  "/api/api-clients",
	Host:         APIMAddr,
	Scheme:       "http",
	Method:       http.MethodGet,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  apistructs.ListMyClientsReq{},
	ResponseType: nil,
	Doc:          "list my client",
}
View Source
var ListProjectAPIGateways = apis.ApiSpec{
	Path:         "api/api-gateways/<projectID>",
	BackendPath:  "api/api-gateways/<projectID>",
	Host:         APIMAddr,
	Scheme:       "http",
	Method:       http.MethodGet,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  apistructs.ListProjectAPIGatewaysReq{},
	ResponseType: map[string]interface{}{"total": 0, "list": nil},
	Doc:          "list api-gateways",
}
View Source
var ListRuntimeServices = apis.ApiSpec{
	Path:         "/api/api-app-services/<appID>",
	BackendPath:  "/api/api-app-services/<appID>",
	Host:         APIMAddr,
	Scheme:       "http",
	Method:       http.MethodGet,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  nil,
	ResponseType: apistructs.Header{},
	Doc:          "list access",
}
View Source
var ListSLA = apis.ApiSpec{
	Path:         "/api/api-assets/<assetID>/swagger-versions/<swaggerVersion>/slas",
	BackendPath:  "/api/api-assets/<assetID>/swagger-versions/<swaggerVersion>/slas",
	Host:         APIMAddr,
	Scheme:       "http",
	Method:       http.MethodGet,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  apistructs.GetSLAReq{},
	ResponseType: apistructs.GetSLARsp{},
	Doc:          "list SLA",
}
View Source
var ListSwaggerVersionClients = apis.ApiSpec{
	Path:         "/api/api-assets/<assetID>/swagger-versions/<swaggerVersion>/clients",
	BackendPath:  "/api/api-assets/<assetID>/swagger-versions/<swaggerVersion>/clients",
	Host:         APIMAddr,
	Scheme:       "http",
	Method:       http.MethodGet,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  apistructs.ListSwaggerVersionClientsReq{},
	ResponseType: apistructs.ListSwaggerVersionRsp{},
	Doc:          "list swagger version clients",
}
View Source
var ListSwaggerVersions = apis.ApiSpec{
	Path:         "/api/api-assets/<assetID>/swagger-versions",
	BackendPath:  "/api/api-assets/<assetID>/swagger-versions",
	Host:         APIMAddr,
	Scheme:       "http",
	Method:       http.MethodGet,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  apistructs.ListSwaggerVersionsReq{},
	ResponseType: apistructs.ListSwaggerVersionRsp{},
	Doc:          "list swagger versions",
}
View Source
var PagingAPIAssets = apis.ApiSpec{
	Path:         "/api/api-assets",
	BackendPath:  "/api/api-assets",
	Host:         APIMAddr,
	Scheme:       "http",
	Method:       http.MethodGet,
	CheckLogin:   true,
	RequestType:  apistructs.PagingAPIAssetsReq{},
	ResponseType: apistructs.APIAssetPagingResponse{},
	Doc:          "分页查询 API 资料",
}
View Source
var ProxyMetrics = apis.ApiSpec{
	Path:         "/api/apim/metrics/<*>",
	BackendPath:  "/api/apim/metrics/<*>",
	Host:         APIMAddr,
	Scheme:       "http",
	Method:       http.MethodGet,
	CheckLogin:   true,
	RequestType:  nil,
	ResponseType: nil,
	Doc:          "转发 metrics 请求",
}
View Source
var SearchOperations = apis.ApiSpec{
	Path:         "/api/apim/operations",
	BackendPath:  "/api/apim/operations",
	Host:         APIMAddr,
	Scheme:       "http",
	Method:       http.MethodGet,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  apistructs.SearchOperationsReq{},
	ResponseType: apistructs.BaseResponse{},
	Doc:          "搜索集市中的接口",
}
View Source
var UpdateAPIAssset = apis.ApiSpec{
	Path:         "/api/api-assets/<assetID>",
	BackendPath:  "/api/api-assets/<assetID>",
	Host:         APIMAddr,
	Scheme:       "http",
	Method:       http.MethodPut,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  apistructs.UpdateAPIAssetReq{},
	ResponseType: nil,
	Doc:          "修改 API 资料",
}
View Source
var UpdateAccess = apis.ApiSpec{
	Path:         "/api/api-access/<accessID>",
	BackendPath:  "/api/api-access/<accessID>",
	Host:         APIMAddr,
	Scheme:       "http",
	Method:       http.MethodPut,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  nil,
	ResponseType: nil,
	Doc:          "update access",
}
View Source
var UpdateAssetVersion = apis.ApiSpec{
	Path:         "/api/api-assets/<assetID>/versions/<versionID>",
	BackendPath:  "/api/api-assets/<assetID>/versions/<versionID>",
	Method:       http.MethodPut,
	Host:         APIMAddr,
	Scheme:       "http",
	CheckLogin:   true,
	Doc:          "修改指定版本的 API 资料",
	RequestType:  apistructs.UpdateAssetVersionReq{},
	ResponseType: apistructs.Header{},
}
View Source
var UpdateClient = apis.ApiSpec{
	Path:         "/api/api-clients/<clientID>",
	BackendPath:  "/api/api-clients/<clientID>",
	Host:         APIMAddr,
	Scheme:       "http",
	Method:       http.MethodPut,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  apistructs.UpdateClientReq{},
	ResponseType: map[string]interface{}{"client": "", "sk": ""},
	Doc:          "get client",
}
View Source
var UpdateContract = apis.ApiSpec{
	Path:         "/api/api-clients/<clientID>/contracts/<contractID>",
	BackendPath:  "/api/api-clients/<clientID>/contracts/<contractID>",
	Host:         APIMAddr,
	Scheme:       "http",
	Method:       http.MethodPut,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  nil,
	ResponseType: nil,
	Doc:          "update contract",
}
View Source
var UpdateInstantiation = apis.ApiSpec{
	Path:         "/api/api-assets/<assetID>/swagger-versions/<swaggerVersion>/minors/<minor>/instantiations/<instantiationID>",
	BackendPath:  "/api/api-assets/<assetID>/swagger-versions/<swaggerVersion>/minors/<minor>/instantiations/<instantiationID>",
	Host:         APIMAddr,
	Scheme:       "http",
	Method:       http.MethodPut,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  apistructs.UpdateInstantiationReq{},
	ResponseType: nil,
	Doc:          "update instantiation",
}
View Source
var UpdateSLA = apis.ApiSpec{
	Path:         "/api/api-assets/<assetID>/swagger-versions/<swaggerVersion>/slas/<slaID>",
	BackendPath:  "/api/api-assets/<assetID>/swagger-versions/<swaggerVersion>/slas/<slaID>",
	Host:         APIMAddr,
	Scheme:       "http",
	Method:       http.MethodPut,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  apistructs.UpdateSLAReq{},
	ResponseType: apistructs.Header{},
	Doc:          "update SLA",
}
View Source
var ValidateSwagger = apis.ApiSpec{
	Path:         "/api/apim/validate-swagger",
	BackendPath:  "/api/apim/validate-swagger",
	Host:         APIMAddr,
	Scheme:       "http",
	Method:       http.MethodPost,
	CheckLogin:   false,
	CheckToken:   false,
	RequestType:  map[string]string{"content": ""},
	ResponseType: nil,
	Doc:          "validate swagger",
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL