# README

Go API client for openapi

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 5.3.0.0
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context
go get github.com/antihax/optional

Put the package under your project folder and add the following in import:

import "./openapi"

Documentation for API Endpoints

All URIs are relative to https://squidex.dev.embracecloud.io/api

ClassMethodHTTP requestDescription
AppsApiAppClientsDeleteClientDelete /apps/{app}/clients/{id}Revoke an app client.
AppsApiAppClientsGetClientsGet /apps/{app}/clientsGet app clients.
AppsApiAppClientsPostClientPost /apps/{app}/clientsCreate a new app client.
AppsApiAppClientsPutClientPut /apps/{app}/clients/{id}Updates an app client.
AppsApiAppContributorsDeleteContributorDelete /apps/{app}/contributors/{id}Remove contributor.
AppsApiAppContributorsDeleteMyselfDelete /apps/{app}/contributors/meRemove yourself.
AppsApiAppContributorsGetContributorsGet /apps/{app}/contributorsGet app contributors.
AppsApiAppContributorsPostContributorPost /apps/{app}/contributorsAssign contributor to app.
AppsApiAppLanguagesDeleteLanguageDelete /apps/{app}/languages/{language}Deletes an app language.
AppsApiAppLanguagesGetLanguagesGet /apps/{app}/languagesGet app languages.
AppsApiAppLanguagesPostLanguagePost /apps/{app}/languagesAttaches an app language.
AppsApiAppLanguagesPutLanguagePut /apps/{app}/languages/{language}Updates an app language.
AppsApiAppPatternsDeletePatternDelete /apps/{app}/patterns/{id}Delete an app pattern.
AppsApiAppPatternsGetPatternsGet /apps/{app}/patternsGet app patterns.
AppsApiAppPatternsPostPatternPost /apps/{app}/patternsCreate a new app pattern.
AppsApiAppPatternsPutPatternPut /apps/{app}/patterns/{id}Update an app pattern.
AppsApiAppRolesDeleteRoleDelete /apps/{app}/roles/{roleName}Remove role from app.
AppsApiAppRolesGetPermissionsGet /apps/{app}/roles/permissionsGet app permissions.
AppsApiAppRolesGetRolesGet /apps/{app}/rolesGet app roles.
AppsApiAppRolesPostRolePost /apps/{app}/rolesAdd role to app.
AppsApiAppRolesPutRolePut /apps/{app}/roles/{roleName}Update an app role.
AppsApiAppWorkflowsDeleteWorkflowDelete /apps/{app}/workflows/{id}Delete a workflow.
AppsApiAppWorkflowsGetWorkflowsGet /apps/{app}/workflowsGet app workflow.
AppsApiAppWorkflowsPostWorkflowPost /apps/{app}/workflowsCreate a workflow.
AppsApiAppWorkflowsPutWorkflowPut /apps/{app}/workflows/{id}Update a workflow.
AppsApiAppsDeleteAppDelete /apps/{app}Archive the app.
AppsApiAppsDeleteImageDelete /apps/{app}/imageRemove the app image.
AppsApiAppsGetAppGet /apps/{app}Get an app by name.
AppsApiAppsGetAppsGet /appsGet your apps.
AppsApiAppsGetImageGet /apps/{app}/imageGet the app image.
AppsApiAppsPostAppPost /appsCreate a new app.
AppsApiAppsUpdateAppPut /apps/{app}Update the app.
AppsApiAppsUploadImagePost /apps/{app}/imageUpload the app image.
AssetsApiAssetContentGetAssetContentGet /assets/{id}Get the asset content.
AssetsApiAssetContentGetAssetContentBySlugGet /assets/{app}/{idOrSlug}/{more}Get the asset content.
AssetsApiAssetFoldersDeleteAssetFolderDelete /apps/{app}/assets/folders/{id}Delete an asset folder.
AssetsApiAssetFoldersGetAssetFoldersGet /apps/{app}/assets/foldersGet asset folders.
AssetsApiAssetFoldersPostAssetFolderPost /apps/{app}/assets/foldersUpload a new asset.
AssetsApiAssetFoldersPutAssetFolderPut /apps/{app}/assets/folders/{id}Updates the asset folder.
AssetsApiAssetFoldersPutAssetFolderParentPut /apps/{app}/assets/folders/{id}/parentMoves the asset folder.
AssetsApiAssetsDeleteAssetDelete /apps/{app}/assets/{id}Delete an asset.
AssetsApiAssetsGetAssetGet /apps/{app}/assets/{id}Get an asset by id.
AssetsApiAssetsGetAssetsGet /apps/{app}/assetsGet assets.
AssetsApiAssetsGetAssetsPostPost /apps/{app}/assets/queryGet assets.
AssetsApiAssetsGetTagsGet /apps/{app}/assets/tagsGet assets tags.
AssetsApiAssetsPostAssetPost /apps/{app}/assetsUpload a new asset.
AssetsApiAssetsPutAssetPut /apps/{app}/assets/{id}Updates the asset.
AssetsApiAssetsPutAssetContentPut /apps/{app}/assets/{id}/contentReplace asset content.
AssetsApiAssetsPutAssetParentPut /apps/{app}/assets/{id}/parentMoves the asset.
BackupsApiBackupContentGetBackupContentGet /apps/{app}/backups/{id}Get the backup content.
BackupsApiBackupsDeleteBackupDelete /apps/{app}/backups/{id}Delete a backup.
BackupsApiBackupsGetBackupsGet /apps/{app}/backupsGet all backup jobs.
BackupsApiBackupsPostBackupPost /apps/{app}/backupsStart a new backup.
BackupsApiRestoreGetRestoreJobGet /apps/restoreGet current restore status.
BackupsApiRestorePostRestoreJobPost /apps/restoreRestore a backup.
CommentsApiCommentsDeleteCommentDelete /apps/{app}/comments/{commentsId}/{commentId}Deletes the comment.
CommentsApiCommentsGetCommentsGet /apps/{app}/comments/{commentsId}Get all comments.
CommentsApiCommentsPostCommentPost /apps/{app}/comments/{commentsId}Create a new comment.
CommentsApiCommentsPutCommentPut /apps/{app}/comments/{commentsId}/{commentId}Updates the comment.
HistoryApiHistoryGetHistoryGet /apps/{app}/historyGet historical events.
LanguagesApiLanguagesGetLanguagesGet /languagesGet supported languages.
NewsApiNewsGetNewsGet /news/featuresGet features since version.
NotificationsApiUserNotificationsDeleteCommentDelete /users/{userId}/notifications/{commentId}Deletes the notification.
NotificationsApiUserNotificationsGetNotificationsGet /users/{userId}/notificationsGet all notifications.
PingApiPingGetAppPingGet /ping/{app}Get ping status.
PingApiPingGetInfoGet /infoGet API information.
PingApiPingGetPingGet /pingGet ping status of the API.
PlansApiAppPlansGetPlansGet /apps/{app}/plansGet app plan information.
PlansApiAppPlansPutPlanPut /apps/{app}/planChange the app plan.
RulesApiRulesDeleteEventDelete /apps/{app}/rules/events/{id}Cancels an event.
RulesApiRulesDeleteRuleDelete /apps/{app}/rules/{id}Delete a rule.
RulesApiRulesDeleteRuleRunDelete /apps/{app}/rules/runCancel the current run.
RulesApiRulesDisableRulePut /apps/{app}/rules/{id}/disableDisable a rule.
RulesApiRulesEnableRulePut /apps/{app}/rules/{id}/enableEnable a rule.
RulesApiRulesGetActionsGet /rules/actionsGet supported rule actions.
RulesApiRulesGetEventsGet /apps/{app}/rules/eventsGet rule events.
RulesApiRulesGetRulesGet /apps/{app}/rulesGet rules.
RulesApiRulesPostRulePost /apps/{app}/rulesCreate a new rule.
RulesApiRulesPutEventPut /apps/{app}/rules/events/{id}Retry the event immediately.
RulesApiRulesPutRulePut /apps/{app}/rules/{id}Update a rule.
RulesApiRulesPutRuleRunPut /apps/{app}/rules/{id}/runRun a rule.
RulesApiRulesTriggerRulePut /apps/{app}/rules/{id}/triggerTrigger a rule.
SchemasApiSchemaFieldsDeleteFieldDelete /apps/{app}/schemas/{name}/fields/{id}Delete a schema field.
SchemasApiSchemaFieldsDeleteNestedFieldDelete /apps/{app}/schemas/{name}/fields/{parentId}/nested/{id}Delete a nested field.
SchemasApiSchemaFieldsDisableFieldPut /apps/{app}/schemas/{name}/fields/{id}/disableDisable a schema field.
SchemasApiSchemaFieldsDisableNestedFieldPut /apps/{app}/schemas/{name}/fields/{parentId}/nested/{id}/disableDisable a nested field.
SchemasApiSchemaFieldsEnableFieldPut /apps/{app}/schemas/{name}/fields/{id}/enableEnable a schema field.
SchemasApiSchemaFieldsEnableNestedFieldPut /apps/{app}/schemas/{name}/fields/{parentId}/nested/{id}/enableEnable a nested field.
SchemasApiSchemaFieldsHideFieldPut /apps/{app}/schemas/{name}/fields/{id}/hideHide a schema field.
SchemasApiSchemaFieldsHideNestedFieldPut /apps/{app}/schemas/{name}/fields/{parentId}/nested/{id}/hideHide a nested field.
SchemasApiSchemaFieldsLockFieldPut /apps/{app}/schemas/{name}/fields/{id}/lockLock a schema field.
SchemasApiSchemaFieldsLockNestedFieldPut /apps/{app}/schemas/{name}/fields/{parentId}/nested/{id}/lockLock a nested field.
SchemasApiSchemaFieldsPostFieldPost /apps/{app}/schemas/{name}/fieldsAdd a schema field.
SchemasApiSchemaFieldsPostNestedFieldPost /apps/{app}/schemas/{name}/fields/{parentId}/nestedAdd a nested field.
SchemasApiSchemaFieldsPutFieldPut /apps/{app}/schemas/{name}/fields/{id}Update a schema field.
SchemasApiSchemaFieldsPutNestedFieldPut /apps/{app}/schemas/{name}/fields/{parentId}/nested/{id}Update a nested field.
SchemasApiSchemaFieldsPutNestedFieldOrderingPut /apps/{app}/schemas/{name}/fields/{parentId}/nested/orderingReorders the nested fields.
SchemasApiSchemaFieldsPutSchemaFieldOrderingPut /apps/{app}/schemas/{name}/fields/orderingReorders the fields.
SchemasApiSchemaFieldsPutSchemaUIFieldsPut /apps/{app}/schemas/{name}/fields/uiConfigure UI fields.
SchemasApiSchemaFieldsShowFieldPut /apps/{app}/schemas/{name}/fields/{id}/showShow a schema field.
SchemasApiSchemaFieldsShowNestedFieldPut /apps/{app}/schemas/{name}/fields/{parentId}/nested/{id}/showShow a nested field.
SchemasApiSchemasDeleteSchemaDelete /apps/{app}/schemas/{name}Delete a schema.
SchemasApiSchemasGetSchemaGet /apps/{app}/schemas/{name}Get a schema by name.
SchemasApiSchemasGetSchemasGet /apps/{app}/schemasGet schemas.
SchemasApiSchemasPostSchemaPost /apps/{app}/schemasCreate a new schema.
SchemasApiSchemasPublishSchemaPut /apps/{app}/schemas/{name}/publishPublish a schema.
SchemasApiSchemasPutCategoryPut /apps/{app}/schemas/{name}/categoryUpdate a schema category.
SchemasApiSchemasPutPreviewUrlsPut /apps/{app}/schemas/{name}/preview-urlsUpdate the preview urls.
SchemasApiSchemasPutRulesPut /apps/{app}/schemas/{name}/rulesUpdate the rules.
SchemasApiSchemasPutSchemaPut /apps/{app}/schemas/{name}Update a schema.
SchemasApiSchemasPutSchemaSyncPut /apps/{app}/schemas/{name}/syncSynchronize a schema.
SchemasApiSchemasPutScriptsPut /apps/{app}/schemas/{name}/scriptsUpdate the scripts.
SchemasApiSchemasUnpublishSchemaPut /apps/{app}/schemas/{name}/unpublishUnpublish a schema.
SearchApiSearchGetSearchResultsGet /apps/{app}/searchGet search results.
StatisticsApiUsagesGetCurrentStorageSizeGet /apps/{app}/usages/storage/todayGet total asset size.
StatisticsApiUsagesGetLogGet /apps/{app}/usages/logGet api calls as log file.
StatisticsApiUsagesGetStorageSizesGet /apps/{app}/usages/storage/{fromDate}/{toDate}Get asset usage by date.
StatisticsApiUsagesGetUsagesGet /apps/{app}/usages/calls/{fromDate}/{toDate}Get api calls in date range.
TranslationsApiTranslationsPostTranslationPost /apps/{app}/translationsTranslate a text.
UsersApiUsersGetUserGet /users/{id}Get user by id.
UsersApiUsersGetUserPictureGet /users/{id}/pictureGet user picture by id.
UsersApiUsersGetUserResourcesGet /Get the user resources.
UsersApiUsersGetUsersGet /usersGet users by query.

Documentation For Models

Documentation For Authorization

squidex-oauth-auth

  • Type: OAuth
  • Flow: application
  • Authorization URL:
  • Scopes:
  • squidex-api: Read and write access to the API

Example

auth := context.WithValue(context.Background(), sw.ContextAccessToken, "ACCESSTOKENSTRING")
r, err := client.Service.Operation(auth, args)

Or via OAuth2 module to automatically refresh tokens and perform user authentication.

import "golang.org/x/oauth2"

/* Perform OAuth2 round trip request and obtain a token */

tokenSource := oauth2cfg.TokenSource(createContext(httpClient), &token)
auth := context.WithValue(oauth2.NoContext, sw.ContextOAuth2, tokenSource)
r, err := client.Service.Operation(auth, args)

Author