Files
openapi-go-answer/docs/LangApi.md
2023-08-18 10:03:31 +08:00

262 lines
6.7 KiB
Markdown

# \LangApi
All URIs are relative to *http://127.0.0.1:80*
Method | HTTP request | Description
------------- | ------------- | -------------
[**AnswerAdminApiLanguageOptionsGet**](LangApi.md#AnswerAdminApiLanguageOptionsGet) | **Get** /answer/admin/api/language/options | Get language options
[**AnswerApiV1LanguageConfigGet**](LangApi.md#AnswerApiV1LanguageConfigGet) | **Get** /answer/api/v1/language/config | get language config mapping
[**AnswerApiV1LanguageOptionsGet**](LangApi.md#AnswerApiV1LanguageOptionsGet) | **Get** /answer/api/v1/language/options | Get language options
[**InstallationLanguageOptionsGet**](LangApi.md#InstallationLanguageOptionsGet) | **Get** /installation/language/options | get installation language options
## AnswerAdminApiLanguageOptionsGet
> HandlerRespBody AnswerAdminApiLanguageOptionsGet(ctx).Execute()
Get language options
### Example
```go
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.LangApi.AnswerAdminApiLanguageOptionsGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LangApi.AnswerAdminApiLanguageOptionsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerAdminApiLanguageOptionsGet`: HandlerRespBody
fmt.Fprintf(os.Stdout, "Response from `LangApi.AnswerAdminApiLanguageOptionsGet`: %v\n", resp)
}
```
### Path Parameters
This endpoint does not need any parameter.
### Other Parameters
Other parameters are passed through a pointer to a apiAnswerAdminApiLanguageOptionsGetRequest struct via the builder pattern
### Return type
[**HandlerRespBody**](HandlerRespBody.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)
## AnswerApiV1LanguageConfigGet
> HandlerRespBody AnswerApiV1LanguageConfigGet(ctx).AcceptLanguage(acceptLanguage).Execute()
get language config mapping
### Example
```go
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
acceptLanguage := "acceptLanguage_example" // string | Accept-Language
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.LangApi.AnswerApiV1LanguageConfigGet(context.Background()).AcceptLanguage(acceptLanguage).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LangApi.AnswerApiV1LanguageConfigGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerApiV1LanguageConfigGet`: HandlerRespBody
fmt.Fprintf(os.Stdout, "Response from `LangApi.AnswerApiV1LanguageConfigGet`: %v\n", resp)
}
```
### Path Parameters
### Other Parameters
Other parameters are passed through a pointer to a apiAnswerApiV1LanguageConfigGetRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**acceptLanguage** | **string** | Accept-Language |
### Return type
[**HandlerRespBody**](HandlerRespBody.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)
## AnswerApiV1LanguageOptionsGet
> HandlerRespBody AnswerApiV1LanguageOptionsGet(ctx).Execute()
Get language options
### Example
```go
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.LangApi.AnswerApiV1LanguageOptionsGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LangApi.AnswerApiV1LanguageOptionsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerApiV1LanguageOptionsGet`: HandlerRespBody
fmt.Fprintf(os.Stdout, "Response from `LangApi.AnswerApiV1LanguageOptionsGet`: %v\n", resp)
}
```
### Path Parameters
This endpoint does not need any parameter.
### Other Parameters
Other parameters are passed through a pointer to a apiAnswerApiV1LanguageOptionsGetRequest struct via the builder pattern
### Return type
[**HandlerRespBody**](HandlerRespBody.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)
## InstallationLanguageOptionsGet
> InstallationLanguageOptionsGet200Response InstallationLanguageOptionsGet(ctx).Execute()
get installation language options
### Example
```go
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.LangApi.InstallationLanguageOptionsGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LangApi.InstallationLanguageOptionsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `InstallationLanguageOptionsGet`: InstallationLanguageOptionsGet200Response
fmt.Fprintf(os.Stdout, "Response from `LangApi.InstallationLanguageOptionsGet`: %v\n", resp)
}
```
### Path Parameters
This endpoint does not need any parameter.
### Other Parameters
Other parameters are passed through a pointer to a apiInstallationLanguageOptionsGetRequest struct via the builder pattern
### Return type
[**InstallationLanguageOptionsGet200Response**](InstallationLanguageOptionsGet200Response.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)