All URIs are relative to https://api.omnistrate.cloud
Method | HTTP request | Description |
---|---|---|
DemoApiDemo | Post /2022-09-01-00/demo | Demo demo-api |
DemoApiDemo(ctx).DemoRequest(demoRequest).Execute()
Demo demo-api
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/omnistrate-oss/omnistrate-sdk-go/v1"
)
func main() {
demoRequest := *openapiclient.NewDemoRequest("ABC", "abc@gmail.com", "John Doe") // DemoRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.DemoApiAPI.DemoApiDemo(context.Background()).DemoRequest(demoRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DemoApiAPI.DemoApiDemo``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Other parameters are passed through a pointer to a apiDemoApiDemoRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
demoRequest | DemoRequest |
(empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/vnd.goa.error
[Back to top] [Back to API list] [Back to Model list] [Back to README]