Skip to content

Latest commit

 

History

History
73 lines (46 loc) · 1.95 KB

ServicesAPI.md

File metadata and controls

73 lines (46 loc) · 1.95 KB

\ServicesAPI

All URIs are relative to https://api.aerostack.dev/v1

Method HTTP request Description
ServicesInvoke Post /services/invoke Invoke another service

ServicesInvoke

ServicesInvoke200Response ServicesInvoke(ctx).ServicesInvokeRequest(servicesInvokeRequest).Execute()

Invoke another service

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)

func main() {
	servicesInvokeRequest := *openapiclient.NewServicesInvokeRequest("billing-webhook", map[string]interface{}(123)) // ServicesInvokeRequest | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ServicesAPI.ServicesInvoke(context.Background()).ServicesInvokeRequest(servicesInvokeRequest).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ServicesAPI.ServicesInvoke``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ServicesInvoke`: ServicesInvoke200Response
	fmt.Fprintf(os.Stdout, "Response from `ServicesAPI.ServicesInvoke`: %v\n", resp)
}

Path Parameters

Other Parameters

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

Name Type Description Notes
servicesInvokeRequest ServicesInvokeRequest

Return type

ServicesInvoke200Response

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

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