Skip to content

Latest commit

 

History

History
71 lines (44 loc) · 1.6 KB

DemoApiAPI.md

File metadata and controls

71 lines (44 loc) · 1.6 KB

\DemoApiAPI

All URIs are relative to https://api.omnistrate.cloud

Method HTTP request Description
DemoApiDemo Post /2022-09-01-00/demo Demo demo-api

DemoApiDemo

DemoApiDemo(ctx).DemoRequest(demoRequest).Execute()

Demo demo-api

Example

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)
	}
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiDemoApiDemoRequest struct via the builder pattern

Name Type Description Notes
demoRequest DemoRequest

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/vnd.goa.error

[Back to top] [Back to API list] [Back to Model list] [Back to README]