Files
openapi-go-answer/docs/ReportAPI.md
2023-09-26 16:20:01 +08:00

1.9 KiB

\ReportAPI

All URIs are relative to http://localhost

Method HTTP request Description
AnswerApiV1ReportPost Post /answer/api/v1/report add report

AnswerApiV1ReportPost

HandlerRespBody AnswerApiV1ReportPost(ctx).Data(data).Execute()

add report

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "git.ncc.cx/package/openapi-go-answer"
)

func main() {
    data := *openapiclient.NewSchemaAddReportReq("ObjectId_example", int32(123)) // SchemaAddReportReq | report

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

Path Parameters

Other Parameters

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

Name Type Description Notes
data SchemaAddReportReq report

Return type

HandlerRespBody

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]