417 lines
11 KiB
Markdown
417 lines
11 KiB
Markdown
# \ApiAnswerApi
|
|
|
|
All URIs are relative to *http://localhost*
|
|
|
|
Method | HTTP request | Description
|
|
------------- | ------------- | -------------
|
|
[**AnswerApiV1AnswerAcceptancePost**](ApiAnswerApi.md#AnswerApiV1AnswerAcceptancePost) | **Post** /answer/api/v1/answer/acceptance | Accepted
|
|
[**AnswerApiV1AnswerDelete**](ApiAnswerApi.md#AnswerApiV1AnswerDelete) | **Delete** /answer/api/v1/answer | delete answer
|
|
[**AnswerApiV1AnswerInfoGet**](ApiAnswerApi.md#AnswerApiV1AnswerInfoGet) | **Get** /answer/api/v1/answer/info | Get Answer
|
|
[**AnswerApiV1AnswerPageGet**](ApiAnswerApi.md#AnswerApiV1AnswerPageGet) | **Get** /answer/api/v1/answer/page | AnswerList
|
|
[**AnswerApiV1AnswerPost**](ApiAnswerApi.md#AnswerApiV1AnswerPost) | **Post** /answer/api/v1/answer | Insert Answer
|
|
[**AnswerApiV1AnswerPut**](ApiAnswerApi.md#AnswerApiV1AnswerPut) | **Put** /answer/api/v1/answer | Update Answer
|
|
|
|
|
|
|
|
## AnswerApiV1AnswerAcceptancePost
|
|
|
|
> string AnswerApiV1AnswerAcceptancePost(ctx).Data(data).Execute()
|
|
|
|
Accepted
|
|
|
|
|
|
|
|
### Example
|
|
|
|
```go
|
|
package main
|
|
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
"os"
|
|
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
|
|
)
|
|
|
|
func main() {
|
|
data := *openapiclient.NewSchemaAnswerAcceptedReq() // SchemaAnswerAcceptedReq | AnswerAcceptedReq
|
|
|
|
configuration := openapiclient.NewConfiguration()
|
|
apiClient := openapiclient.NewAPIClient(configuration)
|
|
resp, r, err := apiClient.ApiAnswerApi.AnswerApiV1AnswerAcceptancePost(context.Background()).Data(data).Execute()
|
|
if err != nil {
|
|
fmt.Fprintf(os.Stderr, "Error when calling `ApiAnswerApi.AnswerApiV1AnswerAcceptancePost``: %v\n", err)
|
|
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
|
}
|
|
// response from `AnswerApiV1AnswerAcceptancePost`: string
|
|
fmt.Fprintf(os.Stdout, "Response from `ApiAnswerApi.AnswerApiV1AnswerAcceptancePost`: %v\n", resp)
|
|
}
|
|
```
|
|
|
|
### Path Parameters
|
|
|
|
|
|
|
|
### Other Parameters
|
|
|
|
Other parameters are passed through a pointer to a apiAnswerApiV1AnswerAcceptancePostRequest struct via the builder pattern
|
|
|
|
|
|
Name | Type | Description | Notes
|
|
------------- | ------------- | ------------- | -------------
|
|
**data** | [**SchemaAnswerAcceptedReq**](SchemaAnswerAcceptedReq.md) | AnswerAcceptedReq |
|
|
|
|
### Return type
|
|
|
|
**string**
|
|
|
|
### Authorization
|
|
|
|
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
|
|
### HTTP request headers
|
|
|
|
- **Content-Type**: application/json
|
|
- **Accept**: application/json
|
|
|
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
|
[[Back to Model list]](../README.md#documentation-for-models)
|
|
[[Back to README]](../README.md)
|
|
|
|
|
|
## AnswerApiV1AnswerDelete
|
|
|
|
> HandlerRespBody AnswerApiV1AnswerDelete(ctx).Data(data).Execute()
|
|
|
|
delete answer
|
|
|
|
|
|
|
|
### Example
|
|
|
|
```go
|
|
package main
|
|
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
"os"
|
|
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
|
|
)
|
|
|
|
func main() {
|
|
data := *openapiclient.NewSchemaRemoveAnswerReq("Id_example") // SchemaRemoveAnswerReq | answer
|
|
|
|
configuration := openapiclient.NewConfiguration()
|
|
apiClient := openapiclient.NewAPIClient(configuration)
|
|
resp, r, err := apiClient.ApiAnswerApi.AnswerApiV1AnswerDelete(context.Background()).Data(data).Execute()
|
|
if err != nil {
|
|
fmt.Fprintf(os.Stderr, "Error when calling `ApiAnswerApi.AnswerApiV1AnswerDelete``: %v\n", err)
|
|
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
|
}
|
|
// response from `AnswerApiV1AnswerDelete`: HandlerRespBody
|
|
fmt.Fprintf(os.Stdout, "Response from `ApiAnswerApi.AnswerApiV1AnswerDelete`: %v\n", resp)
|
|
}
|
|
```
|
|
|
|
### Path Parameters
|
|
|
|
|
|
|
|
### Other Parameters
|
|
|
|
Other parameters are passed through a pointer to a apiAnswerApiV1AnswerDeleteRequest struct via the builder pattern
|
|
|
|
|
|
Name | Type | Description | Notes
|
|
------------- | ------------- | ------------- | -------------
|
|
**data** | [**SchemaRemoveAnswerReq**](SchemaRemoveAnswerReq.md) | answer |
|
|
|
|
### Return type
|
|
|
|
[**HandlerRespBody**](HandlerRespBody.md)
|
|
|
|
### Authorization
|
|
|
|
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
|
|
### HTTP request headers
|
|
|
|
- **Content-Type**: application/json
|
|
- **Accept**: application/json
|
|
|
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
|
[[Back to Model list]](../README.md#documentation-for-models)
|
|
[[Back to README]](../README.md)
|
|
|
|
|
|
## AnswerApiV1AnswerInfoGet
|
|
|
|
> string AnswerApiV1AnswerInfoGet(ctx).Id(id).Execute()
|
|
|
|
Get Answer
|
|
|
|
|
|
|
|
### Example
|
|
|
|
```go
|
|
package main
|
|
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
"os"
|
|
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
|
|
)
|
|
|
|
func main() {
|
|
id := "id_example" // string | Answer TagID (default to "1")
|
|
|
|
configuration := openapiclient.NewConfiguration()
|
|
apiClient := openapiclient.NewAPIClient(configuration)
|
|
resp, r, err := apiClient.ApiAnswerApi.AnswerApiV1AnswerInfoGet(context.Background()).Id(id).Execute()
|
|
if err != nil {
|
|
fmt.Fprintf(os.Stderr, "Error when calling `ApiAnswerApi.AnswerApiV1AnswerInfoGet``: %v\n", err)
|
|
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
|
}
|
|
// response from `AnswerApiV1AnswerInfoGet`: string
|
|
fmt.Fprintf(os.Stdout, "Response from `ApiAnswerApi.AnswerApiV1AnswerInfoGet`: %v\n", resp)
|
|
}
|
|
```
|
|
|
|
### Path Parameters
|
|
|
|
|
|
|
|
### Other Parameters
|
|
|
|
Other parameters are passed through a pointer to a apiAnswerApiV1AnswerInfoGetRequest struct via the builder pattern
|
|
|
|
|
|
Name | Type | Description | Notes
|
|
------------- | ------------- | ------------- | -------------
|
|
**id** | **string** | Answer TagID | [default to "1"]
|
|
|
|
### Return type
|
|
|
|
**string**
|
|
|
|
### Authorization
|
|
|
|
No authorization required
|
|
|
|
### HTTP request headers
|
|
|
|
- **Content-Type**: Not defined
|
|
- **Accept**: application/json
|
|
|
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
|
[[Back to Model list]](../README.md#documentation-for-models)
|
|
[[Back to README]](../README.md)
|
|
|
|
|
|
## AnswerApiV1AnswerPageGet
|
|
|
|
> string AnswerApiV1AnswerPageGet(ctx).QuestionId(questionId).Order(order).Page(page).PageSize(pageSize).Execute()
|
|
|
|
AnswerList
|
|
|
|
|
|
|
|
### Example
|
|
|
|
```go
|
|
package main
|
|
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
"os"
|
|
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
|
|
)
|
|
|
|
func main() {
|
|
questionId := "questionId_example" // string | question_id
|
|
order := "order_example" // string | order
|
|
page := "page_example" // string | page
|
|
pageSize := "pageSize_example" // string | page_size
|
|
|
|
configuration := openapiclient.NewConfiguration()
|
|
apiClient := openapiclient.NewAPIClient(configuration)
|
|
resp, r, err := apiClient.ApiAnswerApi.AnswerApiV1AnswerPageGet(context.Background()).QuestionId(questionId).Order(order).Page(page).PageSize(pageSize).Execute()
|
|
if err != nil {
|
|
fmt.Fprintf(os.Stderr, "Error when calling `ApiAnswerApi.AnswerApiV1AnswerPageGet``: %v\n", err)
|
|
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
|
}
|
|
// response from `AnswerApiV1AnswerPageGet`: string
|
|
fmt.Fprintf(os.Stdout, "Response from `ApiAnswerApi.AnswerApiV1AnswerPageGet`: %v\n", resp)
|
|
}
|
|
```
|
|
|
|
### Path Parameters
|
|
|
|
|
|
|
|
### Other Parameters
|
|
|
|
Other parameters are passed through a pointer to a apiAnswerApiV1AnswerPageGetRequest struct via the builder pattern
|
|
|
|
|
|
Name | Type | Description | Notes
|
|
------------- | ------------- | ------------- | -------------
|
|
**questionId** | **string** | question_id |
|
|
**order** | **string** | order |
|
|
**page** | **string** | page |
|
|
**pageSize** | **string** | page_size |
|
|
|
|
### Return type
|
|
|
|
**string**
|
|
|
|
### Authorization
|
|
|
|
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
|
|
### HTTP request headers
|
|
|
|
- **Content-Type**: Not defined
|
|
- **Accept**: application/json
|
|
|
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
|
[[Back to Model list]](../README.md#documentation-for-models)
|
|
[[Back to README]](../README.md)
|
|
|
|
|
|
## AnswerApiV1AnswerPost
|
|
|
|
> string AnswerApiV1AnswerPost(ctx).Data(data).Execute()
|
|
|
|
Insert Answer
|
|
|
|
|
|
|
|
### Example
|
|
|
|
```go
|
|
package main
|
|
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
"os"
|
|
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
|
|
)
|
|
|
|
func main() {
|
|
data := *openapiclient.NewSchemaAnswerAddReq("Content_example") // SchemaAnswerAddReq | AnswerAddReq
|
|
|
|
configuration := openapiclient.NewConfiguration()
|
|
apiClient := openapiclient.NewAPIClient(configuration)
|
|
resp, r, err := apiClient.ApiAnswerApi.AnswerApiV1AnswerPost(context.Background()).Data(data).Execute()
|
|
if err != nil {
|
|
fmt.Fprintf(os.Stderr, "Error when calling `ApiAnswerApi.AnswerApiV1AnswerPost``: %v\n", err)
|
|
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
|
}
|
|
// response from `AnswerApiV1AnswerPost`: string
|
|
fmt.Fprintf(os.Stdout, "Response from `ApiAnswerApi.AnswerApiV1AnswerPost`: %v\n", resp)
|
|
}
|
|
```
|
|
|
|
### Path Parameters
|
|
|
|
|
|
|
|
### Other Parameters
|
|
|
|
Other parameters are passed through a pointer to a apiAnswerApiV1AnswerPostRequest struct via the builder pattern
|
|
|
|
|
|
Name | Type | Description | Notes
|
|
------------- | ------------- | ------------- | -------------
|
|
**data** | [**SchemaAnswerAddReq**](SchemaAnswerAddReq.md) | AnswerAddReq |
|
|
|
|
### Return type
|
|
|
|
**string**
|
|
|
|
### Authorization
|
|
|
|
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
|
|
### HTTP request headers
|
|
|
|
- **Content-Type**: application/json
|
|
- **Accept**: application/json
|
|
|
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
|
[[Back to Model list]](../README.md#documentation-for-models)
|
|
[[Back to README]](../README.md)
|
|
|
|
|
|
## AnswerApiV1AnswerPut
|
|
|
|
> string AnswerApiV1AnswerPut(ctx).Data(data).Execute()
|
|
|
|
Update Answer
|
|
|
|
|
|
|
|
### Example
|
|
|
|
```go
|
|
package main
|
|
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
"os"
|
|
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
|
|
)
|
|
|
|
func main() {
|
|
data := *openapiclient.NewSchemaAnswerUpdateReq("Content_example") // SchemaAnswerUpdateReq | AnswerUpdateReq
|
|
|
|
configuration := openapiclient.NewConfiguration()
|
|
apiClient := openapiclient.NewAPIClient(configuration)
|
|
resp, r, err := apiClient.ApiAnswerApi.AnswerApiV1AnswerPut(context.Background()).Data(data).Execute()
|
|
if err != nil {
|
|
fmt.Fprintf(os.Stderr, "Error when calling `ApiAnswerApi.AnswerApiV1AnswerPut``: %v\n", err)
|
|
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
|
}
|
|
// response from `AnswerApiV1AnswerPut`: string
|
|
fmt.Fprintf(os.Stdout, "Response from `ApiAnswerApi.AnswerApiV1AnswerPut`: %v\n", resp)
|
|
}
|
|
```
|
|
|
|
### Path Parameters
|
|
|
|
|
|
|
|
### Other Parameters
|
|
|
|
Other parameters are passed through a pointer to a apiAnswerApiV1AnswerPutRequest struct via the builder pattern
|
|
|
|
|
|
Name | Type | Description | Notes
|
|
------------- | ------------- | ------------- | -------------
|
|
**data** | [**SchemaAnswerUpdateReq**](SchemaAnswerUpdateReq.md) | AnswerUpdateReq |
|
|
|
|
### Return type
|
|
|
|
**string**
|
|
|
|
### Authorization
|
|
|
|
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
|
|
### HTTP request headers
|
|
|
|
- **Content-Type**: application/json
|
|
- **Accept**: application/json
|
|
|
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
|
[[Back to Model list]](../README.md#documentation-for-models)
|
|
[[Back to README]](../README.md)
|
|
|