80 lines
2.2 KiB
Markdown
80 lines
2.2 KiB
Markdown
# \RankApi
|
|
|
|
All URIs are relative to *http://localhost*
|
|
|
|
Method | HTTP request | Description
|
|
------------- | ------------- | -------------
|
|
[**AnswerApiV1PersonalRankPageGet**](RankApi.md#AnswerApiV1PersonalRankPageGet) | **Get** /answer/api/v1/personal/rank/page | user personal rank list
|
|
|
|
|
|
|
|
## AnswerApiV1PersonalRankPageGet
|
|
|
|
> AnswerApiV1PersonalRankPageGet200Response AnswerApiV1PersonalRankPageGet(ctx).Page(page).PageSize(pageSize).Username(username).Execute()
|
|
|
|
user personal rank list
|
|
|
|
|
|
|
|
### Example
|
|
|
|
```go
|
|
package main
|
|
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
"os"
|
|
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
|
|
)
|
|
|
|
func main() {
|
|
page := int32(56) // int32 | page (optional)
|
|
pageSize := int32(56) // int32 | page size (optional)
|
|
username := "username_example" // string | username (optional)
|
|
|
|
configuration := openapiclient.NewConfiguration()
|
|
apiClient := openapiclient.NewAPIClient(configuration)
|
|
resp, r, err := apiClient.RankApi.AnswerApiV1PersonalRankPageGet(context.Background()).Page(page).PageSize(pageSize).Username(username).Execute()
|
|
if err != nil {
|
|
fmt.Fprintf(os.Stderr, "Error when calling `RankApi.AnswerApiV1PersonalRankPageGet``: %v\n", err)
|
|
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
|
}
|
|
// response from `AnswerApiV1PersonalRankPageGet`: AnswerApiV1PersonalRankPageGet200Response
|
|
fmt.Fprintf(os.Stdout, "Response from `RankApi.AnswerApiV1PersonalRankPageGet`: %v\n", resp)
|
|
}
|
|
```
|
|
|
|
### Path Parameters
|
|
|
|
|
|
|
|
### Other Parameters
|
|
|
|
Other parameters are passed through a pointer to a apiAnswerApiV1PersonalRankPageGetRequest struct via the builder pattern
|
|
|
|
|
|
Name | Type | Description | Notes
|
|
------------- | ------------- | ------------- | -------------
|
|
**page** | **int32** | page |
|
|
**pageSize** | **int32** | page size |
|
|
**username** | **string** | username |
|
|
|
|
### Return type
|
|
|
|
[**AnswerApiV1PersonalRankPageGet200Response**](AnswerApiV1PersonalRankPageGet200Response.md)
|
|
|
|
### 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)
|
|
|