更新文档内容
This commit is contained in:
79
docs/RankAPI.md
Normal file
79
docs/RankAPI.md
Normal file
@@ -0,0 +1,79 @@
|
||||
# \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 "git.ncc.cx/package/openapi-go-answer"
|
||||
)
|
||||
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user