62 KiB
\AdminApi
All URIs are relative to http://127.0.0.1:80
| Method | HTTP request | Description |
|---|---|---|
| AnswerAdminApiAnswerPageGet | Get /answer/admin/api/answer/page | AdminSearchAnswerList |
| AnswerAdminApiAnswerStatusPut | Put /answer/admin/api/answer/status | AdminSetAnswerStatus |
| AnswerAdminApiDashboardGet | Get /answer/admin/api/dashboard | DashboardInfo |
| AnswerAdminApiQuestionPageGet | Get /answer/admin/api/question/page | AdminSearchList |
| AnswerAdminApiQuestionStatusPut | Put /answer/admin/api/question/status | AdminSetQuestionStatus |
| AnswerAdminApiReportPut | Put /answer/admin/api/report/ | handle flag |
| AnswerAdminApiReportsPageGet | Get /answer/admin/api/reports/page | list report page |
| AnswerAdminApiRolesGet | Get /answer/admin/api/roles | get role list |
| AnswerAdminApiSettingSmtpGet | Get /answer/admin/api/setting/smtp | GetSMTPConfig get smtp config |
| AnswerAdminApiSettingSmtpPut | Put /answer/admin/api/setting/smtp | update smtp config |
| AnswerAdminApiSiteinfoBrandingGet | Get /answer/admin/api/siteinfo/branding | get site interface |
| AnswerAdminApiSiteinfoBrandingPut | Put /answer/admin/api/siteinfo/branding | update site info branding |
| AnswerAdminApiSiteinfoCustomCssHtmlGet | Get /answer/admin/api/siteinfo/custom-css-html | get site info custom html css config |
| AnswerAdminApiSiteinfoCustomCssHtmlPut | Put /answer/admin/api/siteinfo/custom-css-html | update site custom css html config |
| AnswerAdminApiSiteinfoGeneralGet | Get /answer/admin/api/siteinfo/general | get site general information |
| AnswerAdminApiSiteinfoGeneralPut | Put /answer/admin/api/siteinfo/general | update site general information |
| AnswerAdminApiSiteinfoInterfaceGet | Get /answer/admin/api/siteinfo/interface | get site interface |
| AnswerAdminApiSiteinfoInterfacePut | Put /answer/admin/api/siteinfo/interface | update site info interface |
| AnswerAdminApiSiteinfoLegalGet | Get /answer/admin/api/siteinfo/legal | Set the legal information for the site |
| AnswerAdminApiSiteinfoLegalPut | Put /answer/admin/api/siteinfo/legal | update site legal info |
| AnswerAdminApiSiteinfoLoginGet | Get /answer/admin/api/siteinfo/login | get site info login config |
| AnswerAdminApiSiteinfoLoginPut | Put /answer/admin/api/siteinfo/login | update site login |
| AnswerAdminApiSiteinfoSeoGet | Get /answer/admin/api/siteinfo/seo | get site seo information |
| AnswerAdminApiSiteinfoSeoPut | Put /answer/admin/api/siteinfo/seo | update site seo information |
| AnswerAdminApiSiteinfoThemeGet | Get /answer/admin/api/siteinfo/theme | get site info theme config |
| AnswerAdminApiSiteinfoThemePut | Put /answer/admin/api/siteinfo/theme | update site custom css html config |
| AnswerAdminApiSiteinfoWriteGet | Get /answer/admin/api/siteinfo/write | get site interface |
| AnswerAdminApiSiteinfoWritePut | Put /answer/admin/api/siteinfo/write | update site write info |
| AnswerAdminApiThemeOptionsGet | Get /answer/admin/api/theme/options | Get theme options |
| AnswerAdminApiUserPasswordPut | Put /answer/admin/api/user/password | update user password |
| AnswerAdminApiUserPost | Post /answer/admin/api/user | add user |
| AnswerAdminApiUserRolePut | Put /answer/admin/api/user/role | update user role |
| AnswerAdminApiUserStatusPut | Put /answer/admin/api/user/status | update user |
| AnswerAdminApiUsersPageGet | Get /answer/admin/api/users/page | get user page |
AnswerAdminApiAnswerPageGet
HandlerRespBody AnswerAdminApiAnswerPageGet(ctx).Page(page).PageSize(pageSize).Status(status).Query(query).QuestionId(questionId).Execute()
AdminSearchAnswerList
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
page := int32(56) // int32 | page size (optional)
pageSize := int32(56) // int32 | page size (optional)
status := "status_example" // string | user status (optional)
query := "query_example" // string | answer id or question title (optional)
questionId := "questionId_example" // string | question id (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AdminApi.AnswerAdminApiAnswerPageGet(context.Background()).Page(page).PageSize(pageSize).Status(status).Query(query).QuestionId(questionId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiAnswerPageGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerAdminApiAnswerPageGet`: HandlerRespBody
fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiAnswerPageGet`: %v\n", resp)
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiAnswerAdminApiAnswerPageGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| page | int32 | page size | |
| pageSize | int32 | page size | |
| status | string | user status | |
| query | string | answer id or question title | |
| questionId | string | question id |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerAdminApiAnswerStatusPut
HandlerRespBody AnswerAdminApiAnswerStatusPut(ctx).Data(data).Execute()
AdminSetAnswerStatus
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
data := *openapiclient.NewSchemaAdminSetAnswerStatusRequest() // SchemaAdminSetAnswerStatusRequest | AdminSetAnswerStatusRequest
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AdminApi.AnswerAdminApiAnswerStatusPut(context.Background()).Data(data).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiAnswerStatusPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerAdminApiAnswerStatusPut`: HandlerRespBody
fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiAnswerStatusPut`: %v\n", resp)
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiAnswerAdminApiAnswerStatusPutRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| data | SchemaAdminSetAnswerStatusRequest | AdminSetAnswerStatusRequest |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerAdminApiDashboardGet
HandlerRespBody AnswerAdminApiDashboardGet(ctx).Execute()
DashboardInfo
Example
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.AdminApi.AnswerAdminApiDashboardGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiDashboardGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerAdminApiDashboardGet`: HandlerRespBody
fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiDashboardGet`: %v\n", resp)
}
Path Parameters
This endpoint does not need any parameter.
Other Parameters
Other parameters are passed through a pointer to a apiAnswerAdminApiDashboardGetRequest struct via the builder pattern
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerAdminApiQuestionPageGet
HandlerRespBody AnswerAdminApiQuestionPageGet(ctx).Page(page).PageSize(pageSize).Status(status).Query(query).Execute()
AdminSearchList
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
page := int32(56) // int32 | page size (optional)
pageSize := int32(56) // int32 | page size (optional)
status := "status_example" // string | user status (optional)
query := "query_example" // string | question id or title (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AdminApi.AnswerAdminApiQuestionPageGet(context.Background()).Page(page).PageSize(pageSize).Status(status).Query(query).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiQuestionPageGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerAdminApiQuestionPageGet`: HandlerRespBody
fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiQuestionPageGet`: %v\n", resp)
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiAnswerAdminApiQuestionPageGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| page | int32 | page size | |
| pageSize | int32 | page size | |
| status | string | user status | |
| query | string | question id or title |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerAdminApiQuestionStatusPut
HandlerRespBody AnswerAdminApiQuestionStatusPut(ctx).Data(data).Execute()
AdminSetQuestionStatus
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
data := *openapiclient.NewSchemaAdminSetQuestionStatusRequest() // SchemaAdminSetQuestionStatusRequest | AdminSetQuestionStatusRequest
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AdminApi.AnswerAdminApiQuestionStatusPut(context.Background()).Data(data).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiQuestionStatusPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerAdminApiQuestionStatusPut`: HandlerRespBody
fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiQuestionStatusPut`: %v\n", resp)
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiAnswerAdminApiQuestionStatusPutRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| data | SchemaAdminSetQuestionStatusRequest | AdminSetQuestionStatusRequest |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerAdminApiReportPut
HandlerRespBody AnswerAdminApiReportPut(ctx).Data(data).Execute()
handle flag
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
data := *openapiclient.NewSchemaReportHandleReq(int32(123), "Id_example") // SchemaReportHandleReq | flag
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AdminApi.AnswerAdminApiReportPut(context.Background()).Data(data).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiReportPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerAdminApiReportPut`: HandlerRespBody
fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiReportPut`: %v\n", resp)
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiAnswerAdminApiReportPutRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| data | SchemaReportHandleReq | flag |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerAdminApiReportsPageGet
HandlerRespBody AnswerAdminApiReportsPageGet(ctx).Status(status).ObjectType(objectType).Page(page).PageSize(pageSize).Execute()
list report page
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
status := "status_example" // string | status
objectType := "objectType_example" // string | object_type
page := int32(56) // int32 | page size (optional)
pageSize := int32(56) // int32 | page size (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AdminApi.AnswerAdminApiReportsPageGet(context.Background()).Status(status).ObjectType(objectType).Page(page).PageSize(pageSize).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiReportsPageGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerAdminApiReportsPageGet`: HandlerRespBody
fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiReportsPageGet`: %v\n", resp)
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiAnswerAdminApiReportsPageGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| status | string | status | |
| objectType | string | object_type | |
| page | int32 | page size | |
| pageSize | int32 | page size |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerAdminApiRolesGet
AnswerAdminApiRolesGet200Response AnswerAdminApiRolesGet(ctx).Execute()
get role list
Example
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.AdminApi.AnswerAdminApiRolesGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiRolesGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerAdminApiRolesGet`: AnswerAdminApiRolesGet200Response
fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiRolesGet`: %v\n", resp)
}
Path Parameters
This endpoint does not need any parameter.
Other Parameters
Other parameters are passed through a pointer to a apiAnswerAdminApiRolesGetRequest struct via the builder pattern
Return type
AnswerAdminApiRolesGet200Response
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerAdminApiSettingSmtpGet
AnswerAdminApiSettingSmtpGet200Response AnswerAdminApiSettingSmtpGet(ctx).Execute()
GetSMTPConfig get smtp config
Example
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.AdminApi.AnswerAdminApiSettingSmtpGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSettingSmtpGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerAdminApiSettingSmtpGet`: AnswerAdminApiSettingSmtpGet200Response
fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSettingSmtpGet`: %v\n", resp)
}
Path Parameters
This endpoint does not need any parameter.
Other Parameters
Other parameters are passed through a pointer to a apiAnswerAdminApiSettingSmtpGetRequest struct via the builder pattern
Return type
AnswerAdminApiSettingSmtpGet200Response
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerAdminApiSettingSmtpPut
HandlerRespBody AnswerAdminApiSettingSmtpPut(ctx).Data(data).Execute()
update smtp config
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
data := *openapiclient.NewSchemaUpdateSMTPConfigReq() // SchemaUpdateSMTPConfigReq | smtp config
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AdminApi.AnswerAdminApiSettingSmtpPut(context.Background()).Data(data).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSettingSmtpPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerAdminApiSettingSmtpPut`: HandlerRespBody
fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSettingSmtpPut`: %v\n", resp)
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiAnswerAdminApiSettingSmtpPutRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| data | SchemaUpdateSMTPConfigReq | smtp config |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerAdminApiSiteinfoBrandingGet
AnswerAdminApiSiteinfoBrandingGet200Response AnswerAdminApiSiteinfoBrandingGet(ctx).Execute()
get site interface
Example
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.AdminApi.AnswerAdminApiSiteinfoBrandingGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoBrandingGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerAdminApiSiteinfoBrandingGet`: AnswerAdminApiSiteinfoBrandingGet200Response
fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoBrandingGet`: %v\n", resp)
}
Path Parameters
This endpoint does not need any parameter.
Other Parameters
Other parameters are passed through a pointer to a apiAnswerAdminApiSiteinfoBrandingGetRequest struct via the builder pattern
Return type
AnswerAdminApiSiteinfoBrandingGet200Response
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerAdminApiSiteinfoBrandingPut
HandlerRespBody AnswerAdminApiSiteinfoBrandingPut(ctx).Data(data).Execute()
update site info branding
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
data := *openapiclient.NewSchemaSiteBrandingReq() // SchemaSiteBrandingReq | branding info
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AdminApi.AnswerAdminApiSiteinfoBrandingPut(context.Background()).Data(data).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoBrandingPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerAdminApiSiteinfoBrandingPut`: HandlerRespBody
fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoBrandingPut`: %v\n", resp)
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiAnswerAdminApiSiteinfoBrandingPutRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| data | SchemaSiteBrandingReq | branding info |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerAdminApiSiteinfoCustomCssHtmlGet
AnswerAdminApiSiteinfoCustomCssHtmlGet200Response AnswerAdminApiSiteinfoCustomCssHtmlGet(ctx).Execute()
get site info custom html css config
Example
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.AdminApi.AnswerAdminApiSiteinfoCustomCssHtmlGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoCustomCssHtmlGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerAdminApiSiteinfoCustomCssHtmlGet`: AnswerAdminApiSiteinfoCustomCssHtmlGet200Response
fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoCustomCssHtmlGet`: %v\n", resp)
}
Path Parameters
This endpoint does not need any parameter.
Other Parameters
Other parameters are passed through a pointer to a apiAnswerAdminApiSiteinfoCustomCssHtmlGetRequest struct via the builder pattern
Return type
AnswerAdminApiSiteinfoCustomCssHtmlGet200Response
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerAdminApiSiteinfoCustomCssHtmlPut
HandlerRespBody AnswerAdminApiSiteinfoCustomCssHtmlPut(ctx).Data(data).Execute()
update site custom css html config
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
data := *openapiclient.NewSchemaSiteCustomCssHTMLReq() // SchemaSiteCustomCssHTMLReq | login info
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AdminApi.AnswerAdminApiSiteinfoCustomCssHtmlPut(context.Background()).Data(data).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoCustomCssHtmlPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerAdminApiSiteinfoCustomCssHtmlPut`: HandlerRespBody
fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoCustomCssHtmlPut`: %v\n", resp)
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiAnswerAdminApiSiteinfoCustomCssHtmlPutRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| data | SchemaSiteCustomCssHTMLReq | login info |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerAdminApiSiteinfoGeneralGet
AnswerAdminApiSiteinfoGeneralGet200Response AnswerAdminApiSiteinfoGeneralGet(ctx).Execute()
get site general information
Example
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.AdminApi.AnswerAdminApiSiteinfoGeneralGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoGeneralGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerAdminApiSiteinfoGeneralGet`: AnswerAdminApiSiteinfoGeneralGet200Response
fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoGeneralGet`: %v\n", resp)
}
Path Parameters
This endpoint does not need any parameter.
Other Parameters
Other parameters are passed through a pointer to a apiAnswerAdminApiSiteinfoGeneralGetRequest struct via the builder pattern
Return type
AnswerAdminApiSiteinfoGeneralGet200Response
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerAdminApiSiteinfoGeneralPut
HandlerRespBody AnswerAdminApiSiteinfoGeneralPut(ctx).Data(data).Execute()
update site general information
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
data := *openapiclient.NewSchemaSiteGeneralReq("ContactEmail_example", "Name_example", "SiteUrl_example") // SchemaSiteGeneralReq | general
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AdminApi.AnswerAdminApiSiteinfoGeneralPut(context.Background()).Data(data).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoGeneralPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerAdminApiSiteinfoGeneralPut`: HandlerRespBody
fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoGeneralPut`: %v\n", resp)
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiAnswerAdminApiSiteinfoGeneralPutRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| data | SchemaSiteGeneralReq | general |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerAdminApiSiteinfoInterfaceGet
AnswerAdminApiSiteinfoInterfaceGet200Response AnswerAdminApiSiteinfoInterfaceGet(ctx).Execute()
get site interface
Example
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.AdminApi.AnswerAdminApiSiteinfoInterfaceGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoInterfaceGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerAdminApiSiteinfoInterfaceGet`: AnswerAdminApiSiteinfoInterfaceGet200Response
fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoInterfaceGet`: %v\n", resp)
}
Path Parameters
This endpoint does not need any parameter.
Other Parameters
Other parameters are passed through a pointer to a apiAnswerAdminApiSiteinfoInterfaceGetRequest struct via the builder pattern
Return type
AnswerAdminApiSiteinfoInterfaceGet200Response
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerAdminApiSiteinfoInterfacePut
HandlerRespBody AnswerAdminApiSiteinfoInterfacePut(ctx).Data(data).Execute()
update site info interface
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
data := *openapiclient.NewSchemaSiteInterfaceReq("DefaultAvatar_example", "Language_example", "TimeZone_example") // SchemaSiteInterfaceReq | general
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AdminApi.AnswerAdminApiSiteinfoInterfacePut(context.Background()).Data(data).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoInterfacePut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerAdminApiSiteinfoInterfacePut`: HandlerRespBody
fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoInterfacePut`: %v\n", resp)
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiAnswerAdminApiSiteinfoInterfacePutRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| data | SchemaSiteInterfaceReq | general |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerAdminApiSiteinfoLegalGet
AnswerAdminApiSiteinfoLegalGet200Response AnswerAdminApiSiteinfoLegalGet(ctx).Execute()
Set the legal information for the site
Example
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.AdminApi.AnswerAdminApiSiteinfoLegalGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoLegalGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerAdminApiSiteinfoLegalGet`: AnswerAdminApiSiteinfoLegalGet200Response
fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoLegalGet`: %v\n", resp)
}
Path Parameters
This endpoint does not need any parameter.
Other Parameters
Other parameters are passed through a pointer to a apiAnswerAdminApiSiteinfoLegalGetRequest struct via the builder pattern
Return type
AnswerAdminApiSiteinfoLegalGet200Response
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerAdminApiSiteinfoLegalPut
HandlerRespBody AnswerAdminApiSiteinfoLegalPut(ctx).Data(data).Execute()
update site legal info
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
data := *openapiclient.NewSchemaSiteLegalReq() // SchemaSiteLegalReq | write info
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AdminApi.AnswerAdminApiSiteinfoLegalPut(context.Background()).Data(data).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoLegalPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerAdminApiSiteinfoLegalPut`: HandlerRespBody
fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoLegalPut`: %v\n", resp)
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiAnswerAdminApiSiteinfoLegalPutRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| data | SchemaSiteLegalReq | write info |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerAdminApiSiteinfoLoginGet
AnswerAdminApiSiteinfoLoginGet200Response AnswerAdminApiSiteinfoLoginGet(ctx).Execute()
get site info login config
Example
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.AdminApi.AnswerAdminApiSiteinfoLoginGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoLoginGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerAdminApiSiteinfoLoginGet`: AnswerAdminApiSiteinfoLoginGet200Response
fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoLoginGet`: %v\n", resp)
}
Path Parameters
This endpoint does not need any parameter.
Other Parameters
Other parameters are passed through a pointer to a apiAnswerAdminApiSiteinfoLoginGetRequest struct via the builder pattern
Return type
AnswerAdminApiSiteinfoLoginGet200Response
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerAdminApiSiteinfoLoginPut
HandlerRespBody AnswerAdminApiSiteinfoLoginPut(ctx).Data(data).Execute()
update site login
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
data := *openapiclient.NewSchemaSiteLoginReq() // SchemaSiteLoginReq | login info
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AdminApi.AnswerAdminApiSiteinfoLoginPut(context.Background()).Data(data).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoLoginPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerAdminApiSiteinfoLoginPut`: HandlerRespBody
fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoLoginPut`: %v\n", resp)
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiAnswerAdminApiSiteinfoLoginPutRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| data | SchemaSiteLoginReq | login info |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerAdminApiSiteinfoSeoGet
AnswerAdminApiSiteinfoSeoGet200Response AnswerAdminApiSiteinfoSeoGet(ctx).Execute()
get site seo information
Example
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.AdminApi.AnswerAdminApiSiteinfoSeoGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoSeoGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerAdminApiSiteinfoSeoGet`: AnswerAdminApiSiteinfoSeoGet200Response
fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoSeoGet`: %v\n", resp)
}
Path Parameters
This endpoint does not need any parameter.
Other Parameters
Other parameters are passed through a pointer to a apiAnswerAdminApiSiteinfoSeoGetRequest struct via the builder pattern
Return type
AnswerAdminApiSiteinfoSeoGet200Response
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerAdminApiSiteinfoSeoPut
HandlerRespBody AnswerAdminApiSiteinfoSeoPut(ctx).Data(data).Execute()
update site seo information
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
data := *openapiclient.NewSchemaSiteSeoReq(int32(123), "Robots_example") // SchemaSiteSeoReq | seo
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AdminApi.AnswerAdminApiSiteinfoSeoPut(context.Background()).Data(data).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoSeoPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerAdminApiSiteinfoSeoPut`: HandlerRespBody
fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoSeoPut`: %v\n", resp)
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiAnswerAdminApiSiteinfoSeoPutRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| data | SchemaSiteSeoReq | seo |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerAdminApiSiteinfoThemeGet
AnswerAdminApiSiteinfoThemeGet200Response AnswerAdminApiSiteinfoThemeGet(ctx).Execute()
get site info theme config
Example
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.AdminApi.AnswerAdminApiSiteinfoThemeGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoThemeGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerAdminApiSiteinfoThemeGet`: AnswerAdminApiSiteinfoThemeGet200Response
fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoThemeGet`: %v\n", resp)
}
Path Parameters
This endpoint does not need any parameter.
Other Parameters
Other parameters are passed through a pointer to a apiAnswerAdminApiSiteinfoThemeGetRequest struct via the builder pattern
Return type
AnswerAdminApiSiteinfoThemeGet200Response
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerAdminApiSiteinfoThemePut
HandlerRespBody AnswerAdminApiSiteinfoThemePut(ctx).Data(data).Execute()
update site custom css html config
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
data := *openapiclient.NewSchemaSiteThemeReq("Theme_example") // SchemaSiteThemeReq | login info
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AdminApi.AnswerAdminApiSiteinfoThemePut(context.Background()).Data(data).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoThemePut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerAdminApiSiteinfoThemePut`: HandlerRespBody
fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoThemePut`: %v\n", resp)
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiAnswerAdminApiSiteinfoThemePutRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| data | SchemaSiteThemeReq | login info |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerAdminApiSiteinfoWriteGet
AnswerAdminApiSiteinfoWriteGet200Response AnswerAdminApiSiteinfoWriteGet(ctx).Execute()
get site interface
Example
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.AdminApi.AnswerAdminApiSiteinfoWriteGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoWriteGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerAdminApiSiteinfoWriteGet`: AnswerAdminApiSiteinfoWriteGet200Response
fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoWriteGet`: %v\n", resp)
}
Path Parameters
This endpoint does not need any parameter.
Other Parameters
Other parameters are passed through a pointer to a apiAnswerAdminApiSiteinfoWriteGetRequest struct via the builder pattern
Return type
AnswerAdminApiSiteinfoWriteGet200Response
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerAdminApiSiteinfoWritePut
HandlerRespBody AnswerAdminApiSiteinfoWritePut(ctx).Data(data).Execute()
update site write info
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
data := *openapiclient.NewSchemaSiteWriteReq() // SchemaSiteWriteReq | write info
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AdminApi.AnswerAdminApiSiteinfoWritePut(context.Background()).Data(data).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoWritePut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerAdminApiSiteinfoWritePut`: HandlerRespBody
fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoWritePut`: %v\n", resp)
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiAnswerAdminApiSiteinfoWritePutRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| data | SchemaSiteWriteReq | write info |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerAdminApiThemeOptionsGet
HandlerRespBody AnswerAdminApiThemeOptionsGet(ctx).Execute()
Get theme options
Example
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.AdminApi.AnswerAdminApiThemeOptionsGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiThemeOptionsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerAdminApiThemeOptionsGet`: HandlerRespBody
fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiThemeOptionsGet`: %v\n", resp)
}
Path Parameters
This endpoint does not need any parameter.
Other Parameters
Other parameters are passed through a pointer to a apiAnswerAdminApiThemeOptionsGetRequest struct via the builder pattern
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerAdminApiUserPasswordPut
HandlerRespBody AnswerAdminApiUserPasswordPut(ctx).Data(data).Execute()
update user password
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
data := *openapiclient.NewSchemaUpdateUserPasswordReq("Password_example", "UserId_example") // SchemaUpdateUserPasswordReq | user
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AdminApi.AnswerAdminApiUserPasswordPut(context.Background()).Data(data).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiUserPasswordPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerAdminApiUserPasswordPut`: HandlerRespBody
fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiUserPasswordPut`: %v\n", resp)
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiAnswerAdminApiUserPasswordPutRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| data | SchemaUpdateUserPasswordReq | user |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerAdminApiUserPost
HandlerRespBody AnswerAdminApiUserPost(ctx).Data(data).Execute()
add user
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
data := *openapiclient.NewSchemaAddUserReq("DisplayName_example", "Email_example", "Password_example") // SchemaAddUserReq | user
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AdminApi.AnswerAdminApiUserPost(context.Background()).Data(data).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiUserPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerAdminApiUserPost`: HandlerRespBody
fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiUserPost`: %v\n", resp)
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiAnswerAdminApiUserPostRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| data | SchemaAddUserReq | user |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerAdminApiUserRolePut
HandlerRespBody AnswerAdminApiUserRolePut(ctx).Data(data).Execute()
update user role
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
data := *openapiclient.NewSchemaUpdateUserRoleReq(int32(123), "UserId_example") // SchemaUpdateUserRoleReq | user
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AdminApi.AnswerAdminApiUserRolePut(context.Background()).Data(data).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiUserRolePut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerAdminApiUserRolePut`: HandlerRespBody
fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiUserRolePut`: %v\n", resp)
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiAnswerAdminApiUserRolePutRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| data | SchemaUpdateUserRoleReq | user |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerAdminApiUserStatusPut
HandlerRespBody AnswerAdminApiUserStatusPut(ctx).Data(data).Execute()
update user
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
data := *openapiclient.NewSchemaUpdateUserStatusReq("Status_example", "UserId_example") // SchemaUpdateUserStatusReq | user
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AdminApi.AnswerAdminApiUserStatusPut(context.Background()).Data(data).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiUserStatusPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerAdminApiUserStatusPut`: HandlerRespBody
fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiUserStatusPut`: %v\n", resp)
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiAnswerAdminApiUserStatusPutRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| data | SchemaUpdateUserStatusReq | user |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerAdminApiUsersPageGet
AnswerAdminApiUsersPageGet200Response AnswerAdminApiUsersPageGet(ctx).Page(page).PageSize(pageSize).Query(query).Staff(staff).Status(status).Execute()
get user page
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
page := int32(56) // int32 | page size (optional)
pageSize := int32(56) // int32 | page size (optional)
query := "query_example" // string | search query: email, username or id:[id] (optional)
staff := true // bool | staff user (optional)
status := "status_example" // string | user status (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AdminApi.AnswerAdminApiUsersPageGet(context.Background()).Page(page).PageSize(pageSize).Query(query).Staff(staff).Status(status).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiUsersPageGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerAdminApiUsersPageGet`: AnswerAdminApiUsersPageGet200Response
fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiUsersPageGet`: %v\n", resp)
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiAnswerAdminApiUsersPageGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| page | int32 | page size | |
| pageSize | int32 | page size | |
| query | string | search query: email, username or id:[id] | |
| staff | bool | staff user | |
| status | string | user status |
Return type
AnswerAdminApiUsersPageGet200Response
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]