155 lines
4.6 KiB
Markdown
155 lines
4.6 KiB
Markdown
# \PersonalAPI
|
|
|
|
All URIs are relative to *http://localhost*
|
|
|
|
Method | HTTP request | Description
|
|
------------- | ------------- | -------------
|
|
[**AnswerApiV1PersonalAnswerPageGet**](PersonalAPI.md#AnswerApiV1PersonalAnswerPageGet) | **Get** /answer/api/v1/personal/answer/page | list personal answers
|
|
[**PersonalQuestionPageGet**](PersonalAPI.md#PersonalQuestionPageGet) | **Get** /personal/question/page | list personal questions
|
|
|
|
|
|
|
|
## AnswerApiV1PersonalAnswerPageGet
|
|
|
|
> HandlerRespBody AnswerApiV1PersonalAnswerPageGet(ctx).Username(username).Order(order).Page(page).PageSize(pageSize).Execute()
|
|
|
|
list personal answers
|
|
|
|
|
|
|
|
### Example
|
|
|
|
```go
|
|
package main
|
|
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
"os"
|
|
openapiclient "git.ncc.cx/package/openapi-go-answer"
|
|
)
|
|
|
|
func main() {
|
|
username := "username_example" // string | username (default to "string")
|
|
order := "order_example" // string | order
|
|
page := "page_example" // string | page (default to "0")
|
|
pageSize := "pageSize_example" // string | page_size (default to "20")
|
|
|
|
configuration := openapiclient.NewConfiguration()
|
|
apiClient := openapiclient.NewAPIClient(configuration)
|
|
resp, r, err := apiClient.PersonalAPI.AnswerApiV1PersonalAnswerPageGet(context.Background()).Username(username).Order(order).Page(page).PageSize(pageSize).Execute()
|
|
if err != nil {
|
|
fmt.Fprintf(os.Stderr, "Error when calling `PersonalAPI.AnswerApiV1PersonalAnswerPageGet``: %v\n", err)
|
|
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
|
}
|
|
// response from `AnswerApiV1PersonalAnswerPageGet`: HandlerRespBody
|
|
fmt.Fprintf(os.Stdout, "Response from `PersonalAPI.AnswerApiV1PersonalAnswerPageGet`: %v\n", resp)
|
|
}
|
|
```
|
|
|
|
### Path Parameters
|
|
|
|
|
|
|
|
### Other Parameters
|
|
|
|
Other parameters are passed through a pointer to a apiAnswerApiV1PersonalAnswerPageGetRequest struct via the builder pattern
|
|
|
|
|
|
Name | Type | Description | Notes
|
|
------------- | ------------- | ------------- | -------------
|
|
**username** | **string** | username | [default to "string"]
|
|
**order** | **string** | order |
|
|
**page** | **string** | page | [default to "0"]
|
|
**pageSize** | **string** | page_size | [default to "20"]
|
|
|
|
### Return type
|
|
|
|
[**HandlerRespBody**](HandlerRespBody.md)
|
|
|
|
### 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)
|
|
|
|
|
|
## PersonalQuestionPageGet
|
|
|
|
> HandlerRespBody PersonalQuestionPageGet(ctx).Username(username).Order(order).Page(page).PageSize(pageSize).Execute()
|
|
|
|
list personal questions
|
|
|
|
|
|
|
|
### Example
|
|
|
|
```go
|
|
package main
|
|
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
"os"
|
|
openapiclient "git.ncc.cx/package/openapi-go-answer"
|
|
)
|
|
|
|
func main() {
|
|
username := "username_example" // string | username (default to "string")
|
|
order := "order_example" // string | order
|
|
page := "page_example" // string | page (default to "0")
|
|
pageSize := "pageSize_example" // string | page_size (default to "20")
|
|
|
|
configuration := openapiclient.NewConfiguration()
|
|
apiClient := openapiclient.NewAPIClient(configuration)
|
|
resp, r, err := apiClient.PersonalAPI.PersonalQuestionPageGet(context.Background()).Username(username).Order(order).Page(page).PageSize(pageSize).Execute()
|
|
if err != nil {
|
|
fmt.Fprintf(os.Stderr, "Error when calling `PersonalAPI.PersonalQuestionPageGet``: %v\n", err)
|
|
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
|
}
|
|
// response from `PersonalQuestionPageGet`: HandlerRespBody
|
|
fmt.Fprintf(os.Stdout, "Response from `PersonalAPI.PersonalQuestionPageGet`: %v\n", resp)
|
|
}
|
|
```
|
|
|
|
### Path Parameters
|
|
|
|
|
|
|
|
### Other Parameters
|
|
|
|
Other parameters are passed through a pointer to a apiPersonalQuestionPageGetRequest struct via the builder pattern
|
|
|
|
|
|
Name | Type | Description | Notes
|
|
------------- | ------------- | ------------- | -------------
|
|
**username** | **string** | username | [default to "string"]
|
|
**order** | **string** | order |
|
|
**page** | **string** | page | [default to "0"]
|
|
**pageSize** | **string** | page_size | [default to "20"]
|
|
|
|
### Return type
|
|
|
|
[**HandlerRespBody**](HandlerRespBody.md)
|
|
|
|
### 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)
|
|
|