All URIs are relative to https://api.aerostack.dev/v1
| Method | HTTP request | Description |
|---|---|---|
| ServicesInvoke | Post /services/invoke | Invoke another service |
ServicesInvoke200Response ServicesInvoke(ctx).ServicesInvokeRequest(servicesInvokeRequest).Execute()
Invoke another service
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)
}Other parameters are passed through a pointer to a apiServicesInvokeRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| servicesInvokeRequest | ServicesInvokeRequest |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]