No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
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 For more information, please visit https://www.harness.io
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/optional
Put the package under your project folder and add the following in import:
import "./api"
All URIs are relative to http://localhost:3000/api/1.0
Class | Method | HTTP request | Description |
---|---|---|---|
AdminApi | CreateFeatureFlag | Post /admin/feature-flag | Create feature flag. |
AdminApi | CreateTarget | Post /admin/target | Create target. |
AdminApi | CreateTargetSegment | Post /admin/target-segment | Create target segment. |
AdminApi | DeleteFeatureFlag | Delete /admin/feature-flag/{id} | Delete feature flag. |
AdminApi | DeleteTarget | Delete /admin/target/{id} | Delete target. |
AdminApi | DeleteTargetSegment | Delete /admin/target-segment/{id} | Delete target segment. |
AdminApi | GetAllFeatureFlags | Get /admin/feature-flag | Retrieve all feature flags. |
AdminApi | GetAllTargetSegments | Get /admin/target-segment | Retrieve all target segments. |
AdminApi | GetAllTargets | Get /admin/target | Retrieve all targets. |
AdminApi | GetFeatureFlag | Get /admin/feature-flag/{id} | Retrieve feature flag. |
AdminApi | GetTarget | Get /admin/target/{id} | Retrieve target. |
AdminApi | GetTargetSegment | Get /admin/target-segment/{id} | Retrieve target segment. |
AdminApi | ModifyFeatureFlag | Patch /admin/feature-flag/{id} | Modify feature flag. |
AdminApi | ModifyTarget | Patch /admin/target/{id} | Modify target. |
AdminApi | ModifyTargetSegment | Patch /admin/target-segment/{id} | Modify target segment. |
HealthApi | GetHealthStatus | Get /health | Request basic health status. |
- 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)