3.7 KiB
3.7 KiB
\ReportApi
All URIs are relative to http://127.0.0.1:80
| Method | HTTP request | Description |
|---|---|---|
| AnswerApiV1ReportPost | Post /answer/api/v1/report | add report |
| AnswerApiV1ReportTypeListGet | Get /answer/api/v1/report/type/list | get report type list |
AnswerApiV1ReportPost
HandlerRespBody AnswerApiV1ReportPost(ctx).Data(data).Execute()
add report
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
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
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerApiV1ReportTypeListGet
AnswerApiV1ReportTypeListGet200Response AnswerApiV1ReportTypeListGet(ctx).Source(source).Execute()
get report type list
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
source := "source_example" // string | report source
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ReportApi.AnswerApiV1ReportTypeListGet(context.Background()).Source(source).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ReportApi.AnswerApiV1ReportTypeListGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerApiV1ReportTypeListGet`: AnswerApiV1ReportTypeListGet200Response
fmt.Fprintf(os.Stdout, "Response from `ReportApi.AnswerApiV1ReportTypeListGet`: %v\n", resp)
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiAnswerApiV1ReportTypeListGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| source | string | report source |
Return type
AnswerApiV1ReportTypeListGet200Response
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]