配置服务API
This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.
- API version: 1.0.0
- Package version: 1.0.0
- Build package: org.openapitools.codegen.languages.GoClientCodegen
Install the following dependencies:
go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context
go get github.com/antihax/optionalPut the package under your project folder and add the following in import:
import "./config"All URIs are relative to https://api.lucfish.com/configuration/v1
| Class | Method | HTTP request | Description |
|---|---|---|---|
| ConfigApi | BatchDeleteConfigs | Post /config/batchDelete | 批量删除配置 |
| ConfigApi | BatchRetrieveByKeysConfigs | Post /config/batchRetrieveByKeys | 查询配置 |
| ConfigApi | BatchRetrieveByResourcesConfigs | Post /config/batchRetrieveByResources | 查询配置 |
| ConfigApi | BatchRetrieveConfigs | Post /config/batchRetrieve | 批量查询配置 |
| ConfigApi | CreateConfig | Post /config | 创建配置 |
| ConfigApi | CursorConfigs | Post /config/cursor | Cursor查询配置 |
| ConfigApi | DeleteConfig | Delete /config/{id} | 删除配置 |
| ConfigApi | GetConfig | Get /config/{id} | 查询配置 |
| ConfigApi | PageConfigs | Post /config/page | Page查询配置 |
| ConfigApi | RetrieveByKeyConfig | Post /config/retrieveByKey | 查询配置 |
| ConfigApi | UpdateConfig | Put /config | 更新配置 |
| ConfigApi | UpdateConfigTemplate | Put /configTemplate | 更新配置模版 |
| ConfigGroupApi | BatchDeleteGroups | Post /configGroup/batchDelete | 批量删除组 |
| ConfigGroupApi | BatchRetrieveGroups | Post /configGroup/batchRetrieve | 批量查询组 |
| ConfigGroupApi | CreateGroup | Post /configGroup | 创建组 |
| ConfigGroupApi | CursorGroups | Post /configGroup/cursor | Cursor查询组 |
| ConfigGroupApi | DeleteGroup | Delete /configGroup/{id} | 删除组 |
| ConfigGroupApi | GetGroup | Get /configGroup/{id} | 查询组 |
| ConfigGroupApi | PageGroups | Post /configGroup/page | Page查询组 |
| ConfigGroupApi | RetrieveByNameGroup | Post /configGroup/retrieveByName | 查询组 |
| ConfigGroupApi | UpdateGroup | Put /configGroup | 更新组 |
| ConfigTemplateApi | BatchDeleteConfigTemplates | Post /configTemplate/batchDelete | 批量删除配置模版 |
| ConfigTemplateApi | BatchRetrieveByGroupConfigTemplates | Post /configTemplate/batchRetrieveByGroup | 查询配置模版 |
| ConfigTemplateApi | BatchRetrieveByKeysConfigTemplates | Post /configTemplate/batchRetrieveByKeys | 查询配置模版 |
| ConfigTemplateApi | BatchRetrieveConfigTemplates | Post /configTemplate/batchRetrieve | 批量查询配置模版 |
| ConfigTemplateApi | CreateConfigTemplate | Post /configTemplate | 创建配置模版 |
| ConfigTemplateApi | CursorConfigTemplates | Post /configTemplate/cursor | Cursor查询配置模版 |
| ConfigTemplateApi | DeleteConfigTemplate | Delete /configTemplate/{id} | 删除配置模版 |
| ConfigTemplateApi | GetConfigTemplate | Get /configTemplate/{id} | 查询配置模版 |
| ConfigTemplateApi | PageConfigTemplate | Post /configTemplate/page | Page查询配置模版 |
| ConfigTemplateApi | RetrieveByKeyConfigTemplate | Post /configTemplate/retrieveByKey | 查询配置模版 |
- BatchRetrieveByKeysReq
- BatchRetrieveByResourcesReq
- BatchRetrieveConfigGroupsResponse
- BatchRetrieveConfigTemplateByKeysReq
- BatchRetrieveConfigTemplateByKeysResponse
- BatchRetrieveConfigTemplatesByGroupResponse
- BatchRetrieveConfigTemplatesByKeysResponse
- BatchRetrieveConfigTemplatesResponse
- BatchRetrieveConfigsByKeysResponse
- BatchRetrieveConfigsByResourcesResponse
- BatchRetrieveConfigsResponse
- Config
- ConfigGroup
- ConfigTemplate
- CreateConfigGroupReq
- CreateConfigGroupResponse
- CreateConfigReq
- CreateConfigResponse
- CreateConfigTemplateReq
- CreateConfigTemplateResponse
- CursorConfigGroupsResponse
- CursorConfigGroupsResponseData
- CursorConfigTemplatesResponse
- CursorConfigTemplatesResponseData
- CursorConfigsResponse
- CursorConfigsResponseData
- CursorExtra
- CursorQuery
- DeleteResponse
- GetConfigGroupResponse
- GetConfigResponse
- GetConfigTemplateResponse
- IdsReq
- PageConfigGroupsResponse
- PageConfigGroupsResponseData
- PageConfigTemplatesResponse
- PageConfigTemplatesResponseData
- PageConfigsResponse
- PageConfigsResponseData
- PageQuery
- RetrieveConfigByKeyReq
- RetrieveConfigByKeyResponse
- RetrieveConfigGroupByNameResponse
- RetrieveConfigTemplateByKeyResponse
- SortSpec
- UpdateConfigGroupReq
- UpdateConfigGroupResponse
- UpdateConfigReq
- UpdateConfigResponse
- UpdateConfigTemplateReq
- UpdateConfigTemplateResponse
- Type: HTTP basic authentication
Example
auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{
UserName: "username",
Password: "password",
})
r, err := client.Service.Operation(auth, args)