75 KiB
\AdminAPI
All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| AnswerAdminApiAnswerPageGet | Get /answer/admin/api/answer/page | AdminAnswerPage admin answer page |
| AnswerAdminApiAnswerStatusPut | Put /answer/admin/api/answer/status | AdminSetAnswerStatus |
| AnswerAdminApiDashboardGet | Get /answer/admin/api/dashboard | DashboardInfo |
| AnswerAdminApiQuestionPageGet | Get /answer/admin/api/question/page | AdminQuestionPage admin question page |
| 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 |
| AnswerAdminApiSettingPrivilegesGet | Get /answer/admin/api/setting/privileges | GetPrivilegesConfig get privileges config |
| AnswerAdminApiSettingPrivilegesPut | Put /answer/admin/api/setting/privileges | update privileges config |
| 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 |
| AnswerAdminApiSiteinfoUsersGet | Get /answer/admin/api/siteinfo/users | get site user config |
| AnswerAdminApiSiteinfoUsersPut | Put /answer/admin/api/siteinfo/users | update site info config about users |
| 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 |
| AnswerAdminApiUserActivationGet | Get /answer/admin/api/user/activation | get user activation |
| 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 |
| AnswerAdminApiUsersActivationPost | Post /answer/admin/api/users/activation | send user activation |
| AnswerAdminApiUsersPageGet | Get /answer/admin/api/users/page | get user page |
| AnswerAdminApiUsersPost | Post /answer/admin/api/users | add users |
AnswerAdminApiAnswerPageGet
HandlerRespBody AnswerAdminApiAnswerPageGet(ctx).Page(page).PageSize(pageSize).Status(status).Query(query).QuestionId(questionId).Execute()
AdminAnswerPage admin answer page
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "git.ncc.cx/package/openapi-go-answer"
)
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 "git.ncc.cx/package/openapi-go-answer"
)
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 "git.ncc.cx/package/openapi-go-answer"
)
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()
AdminQuestionPage admin question page
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "git.ncc.cx/package/openapi-go-answer"
)
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 "git.ncc.cx/package/openapi-go-answer"
)
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 "git.ncc.cx/package/openapi-go-answer"
)
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 "git.ncc.cx/package/openapi-go-answer"
)
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 "git.ncc.cx/package/openapi-go-answer"
)
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]
AnswerAdminApiSettingPrivilegesGet
AnswerAdminApiSettingPrivilegesGet200Response AnswerAdminApiSettingPrivilegesGet(ctx).Execute()
GetPrivilegesConfig get privileges config
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "git.ncc.cx/package/openapi-go-answer"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AdminAPI.AnswerAdminApiSettingPrivilegesGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AnswerAdminApiSettingPrivilegesGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerAdminApiSettingPrivilegesGet`: AnswerAdminApiSettingPrivilegesGet200Response
fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AnswerAdminApiSettingPrivilegesGet`: %v\n", resp)
}
Path Parameters
This endpoint does not need any parameter.
Other Parameters
Other parameters are passed through a pointer to a apiAnswerAdminApiSettingPrivilegesGetRequest struct via the builder pattern
Return type
AnswerAdminApiSettingPrivilegesGet200Response
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]
AnswerAdminApiSettingPrivilegesPut
HandlerRespBody AnswerAdminApiSettingPrivilegesPut(ctx).Data(data).Execute()
update privileges config
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "git.ncc.cx/package/openapi-go-answer"
)
func main() {
data := *openapiclient.NewSchemaUpdatePrivilegesConfigReq(openapiclient.schema.PrivilegeLevel(1)) // SchemaUpdatePrivilegesConfigReq | config
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AdminAPI.AnswerAdminApiSettingPrivilegesPut(context.Background()).Data(data).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AnswerAdminApiSettingPrivilegesPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerAdminApiSettingPrivilegesPut`: HandlerRespBody
fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AnswerAdminApiSettingPrivilegesPut`: %v\n", resp)
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiAnswerAdminApiSettingPrivilegesPutRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| data | SchemaUpdatePrivilegesConfigReq | 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]
AnswerAdminApiSettingSmtpGet
AnswerAdminApiSettingSmtpGet200Response AnswerAdminApiSettingSmtpGet(ctx).Execute()
GetSMTPConfig get smtp config
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "git.ncc.cx/package/openapi-go-answer"
)
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 "git.ncc.cx/package/openapi-go-answer"
)
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 "git.ncc.cx/package/openapi-go-answer"
)
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 "git.ncc.cx/package/openapi-go-answer"
)
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 "git.ncc.cx/package/openapi-go-answer"
)
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 "git.ncc.cx/package/openapi-go-answer"
)
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 "git.ncc.cx/package/openapi-go-answer"
)
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 "git.ncc.cx/package/openapi-go-answer"
)
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 "git.ncc.cx/package/openapi-go-answer"
)
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 "git.ncc.cx/package/openapi-go-answer"
)
func main() {
data := *openapiclient.NewSchemaSiteInterfaceReq("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 "git.ncc.cx/package/openapi-go-answer"
)
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 "git.ncc.cx/package/openapi-go-answer"
)
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 "git.ncc.cx/package/openapi-go-answer"
)
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 "git.ncc.cx/package/openapi-go-answer"
)
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 "git.ncc.cx/package/openapi-go-answer"
)
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 "git.ncc.cx/package/openapi-go-answer"
)
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 "git.ncc.cx/package/openapi-go-answer"
)
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 "git.ncc.cx/package/openapi-go-answer"
)
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]
AnswerAdminApiSiteinfoUsersGet
AnswerAdminApiSiteinfoUsersGet200Response AnswerAdminApiSiteinfoUsersGet(ctx).Execute()
get site user config
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "git.ncc.cx/package/openapi-go-answer"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoUsersGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AnswerAdminApiSiteinfoUsersGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerAdminApiSiteinfoUsersGet`: AnswerAdminApiSiteinfoUsersGet200Response
fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AnswerAdminApiSiteinfoUsersGet`: %v\n", resp)
}
Path Parameters
This endpoint does not need any parameter.
Other Parameters
Other parameters are passed through a pointer to a apiAnswerAdminApiSiteinfoUsersGetRequest struct via the builder pattern
Return type
AnswerAdminApiSiteinfoUsersGet200Response
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]
AnswerAdminApiSiteinfoUsersPut
HandlerRespBody AnswerAdminApiSiteinfoUsersPut(ctx).Data(data).Execute()
update site info config about users
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "git.ncc.cx/package/openapi-go-answer"
)
func main() {
data := *openapiclient.NewSchemaSiteUsersReq("DefaultAvatar_example") // SchemaSiteUsersReq | users info
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoUsersPut(context.Background()).Data(data).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AnswerAdminApiSiteinfoUsersPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerAdminApiSiteinfoUsersPut`: HandlerRespBody
fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AnswerAdminApiSiteinfoUsersPut`: %v\n", resp)
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiAnswerAdminApiSiteinfoUsersPutRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| data | SchemaSiteUsersReq | users 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 "git.ncc.cx/package/openapi-go-answer"
)
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 "git.ncc.cx/package/openapi-go-answer"
)
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 "git.ncc.cx/package/openapi-go-answer"
)
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]
AnswerAdminApiUserActivationGet
AnswerAdminApiUserActivationGet200Response AnswerAdminApiUserActivationGet(ctx).UserId(userId).Execute()
get user activation
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "git.ncc.cx/package/openapi-go-answer"
)
func main() {
userId := "userId_example" // string | user id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AdminAPI.AnswerAdminApiUserActivationGet(context.Background()).UserId(userId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AnswerAdminApiUserActivationGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerAdminApiUserActivationGet`: AnswerAdminApiUserActivationGet200Response
fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AnswerAdminApiUserActivationGet`: %v\n", resp)
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiAnswerAdminApiUserActivationGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| userId | string | user id |
Return type
AnswerAdminApiUserActivationGet200Response
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 "git.ncc.cx/package/openapi-go-answer"
)
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 "git.ncc.cx/package/openapi-go-answer"
)
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 "git.ncc.cx/package/openapi-go-answer"
)
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 "git.ncc.cx/package/openapi-go-answer"
)
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]
AnswerAdminApiUsersActivationPost
HandlerRespBody AnswerAdminApiUsersActivationPost(ctx).Data(data).Execute()
send user activation
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "git.ncc.cx/package/openapi-go-answer"
)
func main() {
data := *openapiclient.NewSchemaSendUserActivationReq("UserId_example") // SchemaSendUserActivationReq | SendUserActivationReq
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AdminAPI.AnswerAdminApiUsersActivationPost(context.Background()).Data(data).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AnswerAdminApiUsersActivationPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerAdminApiUsersActivationPost`: HandlerRespBody
fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AnswerAdminApiUsersActivationPost`: %v\n", resp)
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiAnswerAdminApiUsersActivationPostRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| data | SchemaSendUserActivationReq | SendUserActivationReq |
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]
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 "git.ncc.cx/package/openapi-go-answer"
)
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]
AnswerAdminApiUsersPost
HandlerRespBody AnswerAdminApiUsersPost(ctx).Data(data).Execute()
add users
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "git.ncc.cx/package/openapi-go-answer"
)
func main() {
data := *openapiclient.NewSchemaAddUsersReq() // SchemaAddUsersReq | user
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AdminAPI.AnswerAdminApiUsersPost(context.Background()).Data(data).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AnswerAdminApiUsersPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerAdminApiUsersPost`: HandlerRespBody
fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AnswerAdminApiUsersPost`: %v\n", resp)
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiAnswerAdminApiUsersPostRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| data | SchemaAddUsersReq | 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]