更新文档内容
This commit is contained in:
154
docs/PersonalApi.md
Normal file
154
docs/PersonalApi.md
Normal file
@@ -0,0 +1,154 @@
|
||||
# \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 "github.com/GIT_USER_ID/GIT_REPO_ID"
|
||||
)
|
||||
|
||||
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 "github.com/GIT_USER_ID/GIT_REPO_ID"
|
||||
)
|
||||
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user