Skip to content

Latest commit

 

History

History
142 lines (92 loc) · 4.21 KB

GeneralApi.md

File metadata and controls

142 lines (92 loc) · 4.21 KB

\GeneralApi

All URIs are relative to https://api.rekki.com/api

Method HTTP request Description
PostLogMessage Post /integration/v1/log Post a log message for the supplier for internal debugging. There is no need to handle response from this endpoint
PostLogMessageV3 Post /integration/v3/log Post a log message for the supplier for internal debugging. There is no need to handle response from this endpoint

PostLogMessage

string PostLogMessage(ctx).XREKKIAuthorizationType(xREKKIAuthorizationType).Input(input).Execute()

Post a log message for the supplier for internal debugging. There is no need to handle response from this endpoint

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    xREKKIAuthorizationType := "xREKKIAuthorizationType_example" // string | Required header
    input := openapiclient.main.LogMessage{Level: "Level_example", Message: "Message_example"} // MainLogMessage | Payload

    configuration := openapiclient.NewConfiguration()
    api_client := openapiclient.NewAPIClient(configuration)
    resp, r, err := api_client.GeneralApi.PostLogMessage(context.Background(), xREKKIAuthorizationType, input).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `GeneralApi.PostLogMessage``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `PostLogMessage`: string
    fmt.Fprintf(os.Stdout, "Response from `GeneralApi.PostLogMessage`: %v\n", resp)
}

Path Parameters

Other Parameters

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

Name Type Description Notes
xREKKIAuthorizationType string Required header
input MainLogMessage Payload

Return type

string

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]

PostLogMessageV3

string PostLogMessageV3(ctx).XREKKIAuthorizationType(xREKKIAuthorizationType).Input(input).Execute()

Post a log message for the supplier for internal debugging. There is no need to handle response from this endpoint

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    xREKKIAuthorizationType := "xREKKIAuthorizationType_example" // string | Required header
    input := openapiclient.v3.LogMessage{Level: "Level_example", Message: "Message_example"} // V3LogMessage | Payload

    configuration := openapiclient.NewConfiguration()
    api_client := openapiclient.NewAPIClient(configuration)
    resp, r, err := api_client.GeneralApi.PostLogMessageV3(context.Background(), xREKKIAuthorizationType, input).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `GeneralApi.PostLogMessageV3``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `PostLogMessageV3`: string
    fmt.Fprintf(os.Stdout, "Response from `GeneralApi.PostLogMessageV3`: %v\n", resp)
}

Path Parameters

Other Parameters

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

Name Type Description Notes
xREKKIAuthorizationType string Required header
input V3LogMessage Payload

Return type

string

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]