All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| PostWebhook | Post /webhooks/vcs/github |
PostWebhook(ctx).Body(body).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/Interhyp/metadata-service-api"
)
func main() {
body := map[string]interface{}{ ... } // map[string]interface{} |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.WebhooksAPI.PostWebhook(context.Background()).Body(body).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `WebhooksAPI.PostWebhook``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}Other parameters are passed through a pointer to a apiPostWebhookRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| body | map[string]interface{} |
(empty response body)
No authorization required
- Content-Type: application/json
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]