Go API client for FastReport Cloud
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
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: v1
- Package version: 2024.2.13
- Build package: org.openapitools.codegen.languages.GoClientCodegen
Install the following dependencies:
go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context
Put the package under your project folder and add the following in import:
import sw "./gofrcloud"
To use a proxy, set the environment variable HTTP_PROXY
:
os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")
Default configuration comes with Servers
field that contains server objects as defined in the OpenAPI specification.
config := sw.NewConfiguration()
config.Servers = sw.ServerConfigurations{
{
URL: "server_url",
Description: "",
},
}
For using other server than the one defined on index 0 set context value sw.ContextServerIndex
of type int
.
ctx := context.WithValue(context.Background(), sw.ContextServerIndex, 1)
Templated server URL is formatted using default variables from configuration or from context value sw.ContextServerVariables
of type map[string]string
.
ctx := context.WithValue(context.Background(), sw.ContextServerVariables, map[string]string{
"basePath": "v2",
})
Note, enum values are always validated and all unused variables are silently ignored.
Each operation can use different server URL defined using OperationServers
map in the Configuration
.
An operation is uniquely identifield by "{classname}Service.{nickname}"
string.
Similar rules for overriding default operation server index and variables applies by using sw.ContextOperationServerIndices
and sw.ContextOperationServerVariables
context maps.
ctx := context.WithValue(context.Background(), sw.ContextOperationServerIndices, map[string]int{
"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), sw.ContextOperationServerVariables, map[string]map[string]string{
"{classname}Service.{nickname}": {
"port": "8443",
},
})
All URIs are relative to http://localhost
Class | Method | HTTP request | Description |
---|---|---|---|
ApiKeysAPI | ApiKeysCreateApiKey | Post /api/manage/v1/ApiKeys | Create a new apikey, 5 apikeys for user. Hardcoded for ddos. |
ApiKeysAPI | ApiKeysDeleteApiKey | Delete /api/manage/v1/ApiKeys | Delete an apikey |
ApiKeysAPI | ApiKeysGetApiKeys | Get /api/manage/v1/ApiKeys | Returns list with all apikeys of current user |
ConfigurationAPI | ConfigurationGet | Get /api/v1/Configuration | returns information about server configuration |
ContactGroupsAPI | ContactGroupsCreate | Post /api/v1/ContactGroups/group | Creates contact group |
ContactGroupsAPI | ContactGroupsDelete | Delete /api/v1/ContactGroups/{id} | Removes contact by id |
ContactGroupsAPI | ContactGroupsGet | Get /api/v1/ContactGroups/{id} | Returns contact group by id |
ContactGroupsAPI | ContactGroupsGetList | Get /api/v1/ContactGroups/subscription/{subscriptionId}/groups | Returns contact groups by subscriptionId |
ContactGroupsAPI | ContactGroupsUpdate | Put /api/v1/ContactGroups/{id} | Updates contact group by id |
ContactsAPI | ContactsCreate | Post /api/v1/Contacts/contact | Creates new contact |
ContactsAPI | ContactsDelete | Delete /api/v1/Contacts/{id} | Removes contact by id |
ContactsAPI | ContactsGet | Get /api/v1/Contacts/{id} | Returns contact group by id |
ContactsAPI | ContactsGetByGroup | Get /api/v1/Contacts/group/{groupId}/contacts | Returns contacts by group id |
ContactsAPI | ContactsGetList | Get /api/v1/Contacts/subscription/{subscriptionId}/contacts | Allows to search for contacts |
ContactsAPI | ContactsUpdate | Put /api/v1/Contacts/{id} | Updates contact by id |
DataSourcesAPI | DataSourcesCountDataSourcesAsync | Get /api/data/v1/DataSources/{subscriptionId}/count | Returns a number of data sources in subscription |
DataSourcesAPI | DataSourcesCreateDataSource | Post /api/data/v1/DataSources | Create new data source |
DataSourcesAPI | DataSourcesDeleteDataSource | Delete /api/data/v1/DataSources/{id} | Delete data source by id |
DataSourcesAPI | DataSourcesFetchData | Get /api/data/v1/DataSources/{id}/fetch | This should connect to a database and set data structure |
DataSourcesAPI | DataSourcesGetAvailableDataSources | Get /api/data/v1/DataSources | Returns all of the data sources, that current user have permission for in a subscription <br /> The method will return minimal infomration about the datasources: <br /> id, name, editedTime, status. |
DataSourcesAPI | DataSourcesGetDataSource | Get /api/data/v1/DataSources/{id} | Get data source by id |
DataSourcesAPI | DataSourcesGetParameterTypes | Get /api/data/v1/DataSources/parameterTypes/{dataSourceType} | Get data source parameter DataType's |
DataSourcesAPI | DataSourcesGetPermissions | Get /api/data/v1/DataSources/{id}/permissions | Get all Data source permissions |
DataSourcesAPI | DataSourcesRenameDataSource | Put /api/data/v1/DataSources/{id}/rename | Rename data source by id |
DataSourcesAPI | DataSourcesUpdateConnectionString | Put /api/data/v1/DataSources/{id}/connectionString | Update data source's connection string by id |
DataSourcesAPI | DataSourcesUpdatePermissions | Post /api/data/v1/DataSources/{id}/permissions | Update permissions |
DataSourcesAPI | DataSourcesUpdateSelectCommands | Put /api/data/v1/DataSources/{id}/selectCommands | Update data source's select commands by id |
DataSourcesAPI | DataSourcesUpdateSubscriptionDataSource | Put /api/data/v1/DataSources/{id}/updateSubscription | Update data source's subscription |
DownloadAPI | DownloadGetExport | Get /download/e/{id} | Returns a export file with specified id |
DownloadAPI | DownloadGetExportThumbnail | Get /download/e/{id}/thumbnail | Returns export's thumbnail |
DownloadAPI | DownloadGetExports | Get /download/es/{archiveName} | Returns a zip archive with selected ids |
DownloadAPI | DownloadGetLastSVGExport | Get /download/lastPreview/{reportId} | returns export, that was created from report with specified id. INTERNAL USAGE ONLY! |
DownloadAPI | DownloadGetReport | Get /download/r/{id} | Returns a prepared file with specified id |
DownloadAPI | DownloadGetReportThumbnail | Get /download/r/{id}/thumbnail | Returns report's thumbnail |
DownloadAPI | DownloadGetReports | Get /download/rs/{archiveName} | Returns a zip archive with selected files |
DownloadAPI | DownloadGetTemplate | Get /download/t/{id} | Returns a Template file with specified id |
DownloadAPI | DownloadGetTemplateThumbnail | Get /download/t/{id}/thumbnail | Returns template's thumbnail |
DownloadAPI | DownloadGetTemplates | Get /download/ts/{archiveName} | Returns a zip archive with selected files |
ExportsAPI | ExportFolderAndFileClearRecycleBin | Delete /api/rp/v1/Exports/{subscriptionId}/ClearRecycleBin | Delete all folders and files from recycle bin |
ExportsAPI | ExportFolderAndFileCopyFiles | Post /api/rp/v1/Exports/{subscriptionId}/CopyFiles | Copy folders and files to a specified folder |
ExportsAPI | ExportFolderAndFileCountRecycleBinFoldersAndFiles | Get /api/rp/v1/Exports/{subscriptionId}/CountRecycleBinFolderAndFiles | Count all folders and files from recycle bin |
ExportsAPI | ExportFolderAndFileDeleteFiles | Post /api/rp/v1/Exports/{subscriptionId}/DeleteFiles | Delete folders and files |
ExportsAPI | ExportFolderAndFileGetCount | Get /api/rp/v1/Exports/Folder/{id}/CountFolderAndFiles | Get count of files and folders what contains in a specified folder |
ExportsAPI | ExportFolderAndFileGetFoldersAndFiles | Get /api/rp/v1/Exports/Folder/{id}/ListFolderAndFiles | Get all folders and files from specified folder |
ExportsAPI | ExportFolderAndFileGetRecycleBinFoldersAndFiles | Get /api/rp/v1/Exports/{subscriptionId}/ListRecycleBinFolderAndFiles | Get all folders and files from recycle bin |
ExportsAPI | ExportFolderAndFileMoveFiles | Post /api/rp/v1/Exports/{subscriptionId}/MoveFiles | Move folders and files to a specified folder |
ExportsAPI | ExportFolderAndFileMoveFilesToBin | Post /api/rp/v1/Exports/{subscriptionId}/ToBin | Move folders and files to bin |
ExportsAPI | ExportFolderAndFileRecoverAllFromRecycleBin | Post /api/rp/v1/Exports/{subscriptionId}/RecoverRecycleBin | Recover all folders and files from recycle bin |
ExportsAPI | ExportFolderAndFileRecoverFiles | Post /api/rp/v1/Exports/{subscriptionId}/RecoverFiles | Recover folders and files from bin |
ExportsAPI | ExportFoldersCalculateFolderSize | Get /api/rp/v1/Exports/Folder/{id}/size | Get specified folder, calculate it's size |
ExportsAPI | ExportFoldersCopyFolder | Post /api/rp/v1/Exports/Folder/{id}/Copy/{folderId} | Move folder to a specified folder |
ExportsAPI | ExportFoldersDeleteFolder | Delete /api/rp/v1/Exports/Folder/{id} | Delete specified folder |
ExportsAPI | ExportFoldersGetBreadcrumbs | Get /api/rp/v1/Exports/Folder/{id}/Breadcrumbs | Get specified folder breadcrumbs |
ExportsAPI | ExportFoldersGetFolder | Get /api/rp/v1/Exports/Folder/{id} | Get specified folder |
ExportsAPI | ExportFoldersGetFolders | Get /api/rp/v1/Exports/Folder/{id}/ListFolders | Get all folders from specified folder |
ExportsAPI | ExportFoldersGetFoldersCount | Get /api/rp/v1/Exports/Folder/{id}/CountFolders | Get count of folders what contains in a specified folder |
ExportsAPI | ExportFoldersGetOrCreate | Get /api/rp/v1/Exports/Folder/getOrCreate | Get specified folder |
ExportsAPI | ExportFoldersGetPermissions | Get /api/rp/v1/Exports/Folder/{id}/permissions | Get all folder permissions |
ExportsAPI | ExportFoldersGetRootFolder | Get /api/rp/v1/Exports/Root | Get user's root folder (without parents) |
ExportsAPI | ExportFoldersMoveFolder | Post /api/rp/v1/Exports/Folder/{id}/Move/{folderId} | Move folder to a specified folder |
ExportsAPI | ExportFoldersMoveFolderToBin | Delete /api/rp/v1/Exports/Folder/{id}/ToBin | Move specified folder to recycle bin |
ExportsAPI | ExportFoldersPostFolder | Post /api/rp/v1/Exports/Folder/{id}/Folder | Create folder |
ExportsAPI | ExportFoldersRecoverFolder | Post /api/rp/v1/Exports/Folder/{id}/Recover | Recover specified folder |
ExportsAPI | ExportFoldersRenameFolder | Put /api/rp/v1/Exports/Folder/{id}/Rename | Rename a folder |
ExportsAPI | ExportFoldersUpdateIcon | Put /api/rp/v1/Exports/Folder/{id}/Icon | Update a folder's icon |
ExportsAPI | ExportFoldersUpdatePermissions | Post /api/rp/v1/Exports/{id}/permissions | Update permissions |
ExportsAPI | ExportFoldersUpdateTags | Put /api/rp/v1/Exports/Folder/{id}/UpdateTags | Update tags |
ExportsAPI | ExportsCopyFile | Post /api/rp/v1/Exports/File/{id}/Copy/{folderId} | Copy file to a specified folder |
ExportsAPI | ExportsCreateSharingKey | Post /api/rp/v1/Exports/File/{id}/sharingKey | Create a new key, that can be used to share access to a file (You need Administrate.Anon permission to create a new key) |
ExportsAPI | ExportsDeleteFile | Delete /api/rp/v1/Exports/File/{id} | Delete specified file |
ExportsAPI | ExportsDeleteSharingKey | Delete /api/rp/v1/Exports/File/{id}/sharingKey | Deletes a sharing key, making links, that utilizing it no longer work |
ExportsAPI | ExportsGetFile | Get /api/rp/v1/Exports/File/{id} | Get export by specified id |
ExportsAPI | ExportsGetFileHistory | Get /api/rp/v1/Exports/File/{id}/History | Returns list of actions, performed on this file |
ExportsAPI | ExportsGetFilesCount | Get /api/rp/v1/Exports/Folder/{id}/CountFiles | Get count of files what contains in a specified folder |
ExportsAPI | ExportsGetFilesList | Get /api/rp/v1/Exports/Folder/{id}/ListFiles | Get all files from specified folder. <br /> User with Get Entity permission can access this method. <br /> The method will returns minimal infomration about the file: <br /> id, name, size, editedTime, createdTime, tags, status, statusReason. |
ExportsAPI | ExportsGetPermissions | Get /api/rp/v1/Exports/File/{id}/permissions | |
ExportsAPI | ExportsGetSharingKeys | Get /api/rp/v1/Exports/File/{id}/sharingKeys | Returns all sharing keys, associated with the file |
ExportsAPI | ExportsMoveFile | Post /api/rp/v1/Exports/File/{id}/Move/{folderId} | Move file to a specified folder |
ExportsAPI | ExportsMoveFileToBin | Delete /api/rp/v1/Exports/File/{id}/ToBin | Move specified file to recycle bin |
ExportsAPI | ExportsRecoverFile | Post /api/rp/v1/Exports/File/{id}/Recover | Recover specified file from bin |
ExportsAPI | ExportsRenameFile | Put /api/rp/v1/Exports/File/{id}/Rename | Rename a file |
ExportsAPI | ExportsUpdateIcon | Put /api/rp/v1/Exports/File/{id}/Icon | Update a files's icon |
ExportsAPI | ExportsUpdatePermissions | Post /api/rp/v1/Exports/File/{id}/permissions | Update permissions |
ExportsAPI | ExportsUpdateTags | Put /api/rp/v1/Exports/File/{id}/UpdateTags | Update tags |
GroupUsersAPI | GroupUsersAddUserToGroup | Put /api/manage/v1/Groups/{id}/Users/{userId} | Add user to the group by identifier |
GroupUsersAPI | GroupUsersGetUsersInGroup | Get /api/manage/v1/Groups/{id}/Users | Returns users in the group by identifier |
GroupUsersAPI | GroupUsersLeaveFromGroup | Delete /api/manage/v1/Groups/{id}/leave | Leave from the group |
GroupUsersAPI | GroupUsersRemoveFromGroup | Delete /api/manage/v1/Groups/{id}/Users/{userId} | Remove user from the group by identifier |
GroupsAPI | GroupsCreateGroup | Post /api/manage/v1/Groups | Create a new user group |
GroupsAPI | GroupsDeleteGroup | Delete /api/manage/v1/Groups/{id} | Delete group by identifier |
GroupsAPI | GroupsGetGroup | Get /api/manage/v1/Groups/{id} | Gets group by identifier |
GroupsAPI | GroupsGetGroupList | Get /api/manage/v1/Groups | Returns a list of current user's groups<br /> This method will return following data about groups : <br /> Id, Name, Created time (UTC), Edited time (UTC), creator id, <br /> editor id, subscription id |
GroupsAPI | GroupsGetPermissions | Get /api/manage/v1/Groups/{id}/permissions | Gets group permissions by identifier |
GroupsAPI | GroupsRenameGroup | Put /api/manage/v1/Groups/{id}/rename | Rename group by identifier |
GroupsAPI | GroupsUpdatePermissions | Post /api/manage/v1/Groups/{id}/permissions | Update permissions |
HealthCheckAPI | HealthCheckDataGet | Get /api/backend/v1/HealthCheck | healthcheck |
ReportsAPI | ReportFolderAndFileClearRecycleBin | Delete /api/rp/v1/Reports/{subscriptionId}/ClearRecycleBin | Delete all folders and files from recycle bin |
ReportsAPI | ReportFolderAndFileCopyFiles | Post /api/rp/v1/Reports/{subscriptionId}/CopyFiles | Copy folders and files to a specified folder |
ReportsAPI | ReportFolderAndFileCountRecycleBinFoldersAndFiles | Get /api/rp/v1/Reports/{subscriptionId}/CountRecycleBinFolderAndFiles | Count all folders and files from recycle bin |
ReportsAPI | ReportFolderAndFileDeleteFiles | Post /api/rp/v1/Reports/{subscriptionId}/DeleteFiles | Delete folders and files |
ReportsAPI | ReportFolderAndFileGetCount | Get /api/rp/v1/Reports/Folder/{id}/CountFolderAndFiles | Get count of files and folders what contains in a specified folder |
ReportsAPI | ReportFolderAndFileGetFoldersAndFiles | Get /api/rp/v1/Reports/Folder/{id}/ListFolderAndFiles | Get all folders and files from specified folder |
ReportsAPI | ReportFolderAndFileGetRecycleBinFoldersAndFiles | Get /api/rp/v1/Reports/{subscriptionId}/ListRecycleBinFolderAndFiles | Get all folders and files from recycle bin |
ReportsAPI | ReportFolderAndFileMoveFiles | Post /api/rp/v1/Reports/{subscriptionId}/MoveFiles | Move folders and files to a specified folder |
ReportsAPI | ReportFolderAndFileMoveFilesToBin | Post /api/rp/v1/Reports/{subscriptionId}/ToBin | Move folders and files to bin |
ReportsAPI | ReportFolderAndFileRecoverAllFromRecycleBin | Post /api/rp/v1/Reports/{subscriptionId}/RecoverRecycleBin | Recover all folders and files from recycle bin |
ReportsAPI | ReportFolderAndFileRecoverFiles | Post /api/rp/v1/Reports/{subscriptionId}/RecoverFiles | Recover folders and files from bin |
ReportsAPI | ReportFoldersCalculateFolderSize | Get /api/rp/v1/Reports/Folder/{id}/size | Get specified folder, calculate it's size |
ReportsAPI | ReportFoldersCopyFolder | Post /api/rp/v1/Reports/Folder/{id}/Copy/{folderId} | Move folder to a specified folder |
ReportsAPI | ReportFoldersDeleteFolder | Delete /api/rp/v1/Reports/Folder/{id} | Delete specified folder |
ReportsAPI | ReportFoldersExport | Post /api/rp/v1/Reports/Folder/{id}/Export | Export specified report folder to a specified format |
ReportsAPI | ReportFoldersGetBreadcrumbs | Get /api/rp/v1/Reports/Folder/{id}/Breadcrumbs | Get specified folder breadcrumbs |
ReportsAPI | ReportFoldersGetFolder | Get /api/rp/v1/Reports/Folder/{id} | Get specified folder |
ReportsAPI | ReportFoldersGetFolders | Get /api/rp/v1/Reports/Folder/{id}/ListFolders | Get all folders from specified folder |
ReportsAPI | ReportFoldersGetFoldersCount | Get /api/rp/v1/Reports/Folder/{id}/CountFolders | Get count of folders what contains in a specified folder |
ReportsAPI | ReportFoldersGetOrCreate | Get /api/rp/v1/Reports/Folder/getOrCreate | Get specified folder |
ReportsAPI | ReportFoldersGetPermissions | Get /api/rp/v1/Reports/Folder/{id}/permissions | Get all folder permissions |
ReportsAPI | ReportFoldersGetRootFolder | Get /api/rp/v1/Reports/Root | Get user's root folder (without parents) |
ReportsAPI | ReportFoldersMoveFolder | Post /api/rp/v1/Reports/Folder/{id}/Move/{folderId} | Move folder to a specified folder |
ReportsAPI | ReportFoldersMoveFolderToBin | Delete /api/rp/v1/Reports/Folder/{id}/ToBin | Move specified folder to recycle bin |
ReportsAPI | ReportFoldersPostFolder | Post /api/rp/v1/Reports/Folder/{id}/Folder | Create folder |
ReportsAPI | ReportFoldersRecoverFolder | Post /api/rp/v1/Reports/Folder/{id}/Recover | Recover specified folder |
ReportsAPI | ReportFoldersRenameFolder | Put /api/rp/v1/Reports/Folder/{id}/Rename | Rename a folder |
ReportsAPI | ReportFoldersUpdateIcon | Put /api/rp/v1/Reports/Folder/{id}/Icon | Update a folder's icon |
ReportsAPI | ReportFoldersUpdatePermissions | Post /api/rp/v1/Reports/{id}/permissions | Update permissions |
ReportsAPI | ReportFoldersUpdateTags | Put /api/rp/v1/Reports/Folder/{id}/UpdateTags | Update tags |
ReportsAPI | ReportsCopyFile | Post /api/rp/v1/Reports/File/{id}/Copy/{folderId} | Copy file to a specified folder |
ReportsAPI | ReportsCreateSharingKey | Post /api/rp/v1/Reports/File/{id}/sharingKey | Create a new key, that can be used to share access to a file (You need Administrate.Anon permission to create a new key) |
ReportsAPI | ReportsDeleteFile | Delete /api/rp/v1/Reports/File/{id} | Delete specified file |
ReportsAPI | ReportsDeleteSharingKey | Delete /api/rp/v1/Reports/File/{id}/sharingKey | Deletes a sharing key, making links, that utilizing it no longer work |
ReportsAPI | ReportsExport | Post /api/rp/v1/Reports/File/{id}/Export | Export specified report to a specified format |
ReportsAPI | ReportsGetFile | Get /api/rp/v1/Reports/File/{id} | Get specified file |
ReportsAPI | ReportsGetFileHistory | Get /api/rp/v1/Reports/File/{id}/History | Returns list of actions, performed on this file |
ReportsAPI | ReportsGetFilesCount | Get /api/rp/v1/Reports/Folder/{id}/CountFiles | Get count of files what contains in a specified folder |
ReportsAPI | ReportsGetFilesList | Get /api/rp/v1/Reports/Folder/{id}/ListFiles | Get all files from specified folder. <br /> User with Get Entity permission can access this method. <br /> The method will returns minimal infomration about the file: <br /> id, name, size, editedTime, createdTime, tags, status, statusReason. |
ReportsAPI | ReportsGetPermissions | Get /api/rp/v1/Reports/File/{id}/permissions | |
ReportsAPI | ReportsGetSharingKeys | Get /api/rp/v1/Reports/File/{id}/sharingKeys | Returns all sharing keys, associated with the file |
ReportsAPI | ReportsMoveFile | Post /api/rp/v1/Reports/File/{id}/Move/{folderId} | Move file to a specified folder |
ReportsAPI | ReportsMoveFileToBin | Delete /api/rp/v1/Reports/File/{id}/ToBin | Move specified file to recycle bin |
ReportsAPI | ReportsRecoverFile | Post /api/rp/v1/Reports/File/{id}/Recover | Recover specified file from bin |
ReportsAPI | ReportsRenameFile | Put /api/rp/v1/Reports/File/{id}/Rename | Rename a file |
ReportsAPI | ReportsStaticPreview | Post /api/rp/v1/Reports/File/{id}/StaticPreview | Make preview for the report. Generate a new or return exist prepared svg files. If template was changed will be returned a new. Pass the `` parameter to check prepared timestamp |
ReportsAPI | ReportsUpdateIcon | Put /api/rp/v1/Reports/File/{id}/Icon | Update a files's icon |
ReportsAPI | ReportsUpdatePermissions | Post /api/rp/v1/Reports/File/{id}/permissions | Update permissions |
ReportsAPI | ReportsUpdateTags | Put /api/rp/v1/Reports/File/{id}/UpdateTags | Update tags |
ReportsAPI | ReportsUploadFile | Post /api/rp/v1/Reports/Folder/{id}/File | Upload a file to the specified folder. The method is deprecated, use the UploadFileV2 method instead! |
ReportsAPI | ReportsUploadFileV2 | Post /api/rp/v2/Reports/Folder/{id}/File | Alternative api for upload a file to the specified folder! |
SubscriptionGroupsAPI | SubscriptionGroupsCountGroupsAsync | Get /api/manage/v1/Subscriptions/{subscriptionId}/count | Returns a number of groups in subscription |
SubscriptionGroupsAPI | SubscriptionGroupsGetGroupsList | Get /api/manage/v1/Subscriptions/{subscriptionId}/groups | returns groups of the subscription or subscription user |
SubscriptionInvitesAPI | SubscriptionInvitesAcceptInvite | Get /api/manage/v1/Subscriptions/{subscriptionId}/invite/{accessToken}/accept | Add a user to the subscription using invite, the added users will be displayed in the list of users of the subscription, and these users will also have an active subscription. |
SubscriptionInvitesAPI | SubscriptionInvitesCreateInvite | Post /api/manage/v1/Subscriptions/{subscriptionId}/invite | Create invite to subscription |
SubscriptionInvitesAPI | SubscriptionInvitesDeleteInvite | Delete /api/manage/v1/Subscriptions/{subscriptionId}/invite/{accesstoken} | Delete invite with specified token |
SubscriptionInvitesAPI | SubscriptionInvitesGetInvites | Get /api/manage/v1/Subscriptions/{subscriptionId}/invites | Get list of invites in a subscription, the added users will be displayed in the list of users of the subscription, and these users will also have an active subscription. |
SubscriptionPlansAPI | SubscriptionPlansGetSubscriptionPlan | Get /api/manage/v1/SubscriptionPlans/{id} | Returns a subscription plan. Not all subscriptions can be issued for customer. |
SubscriptionPlansAPI | SubscriptionPlansGetSubscriptionPlans | Get /api/manage/v1/SubscriptionPlans | Returns a list of active subscription plans that can be issued to the user. |
SubscriptionUsersAPI | SubscriptionUsersAddUser | Put /api/manage/v1/Subscriptions/{subscriptionId}/users/{userId} | Add a user to the subscription, the added users will be displayed in the list of users of the subscription, and these users will also have an active subscription. |
SubscriptionUsersAPI | SubscriptionUsersCountUsersAsync | Get /api/manage/v1/Subscriptions/{subscriptionId}/UsersCount | Returns a number of users in subscription |
SubscriptionUsersAPI | SubscriptionUsersGetUsers | Get /api/manage/v1/Subscriptions/{subscriptionId}/users | Returns all users of subscription |
SubscriptionUsersAPI | SubscriptionUsersLeaveSubscripiton | Delete /api/manage/v1/Subscriptions/{subscriptionId}/leave | Allows user to leave subscription,. |
SubscriptionUsersAPI | SubscriptionUsersRemoveUser | Delete /api/manage/v1/Subscriptions/{subscriptionId}/users/{userId} | Delete a user from the subscription, the added users will be displayed in the list of users of the subscription, and these users will also have an active subscription. |
SubscriptionsAPI | SubscriptionsGetDefaultPermissions | Get /api/manage/v1/Subscriptions/{subscriptionId}/defaultPermissions | Get subscription's default permissions for new entities |
SubscriptionsAPI | SubscriptionsGetMyPermissions | Get /api/manage/v1/Subscriptions/{subId}/mypermissions | Get user's permissions for a subscription by id |
SubscriptionsAPI | SubscriptionsGetPermissions | Get /api/manage/v1/Subscriptions/{id}/permissions | Get permissions for a subscription by id |
SubscriptionsAPI | SubscriptionsGetSubscription | Get /api/manage/v1/Subscriptions/{id} | Returns the subscription by id |
SubscriptionsAPI | SubscriptionsGetSubscriptions | Get /api/manage/v1/Subscriptions | Returns a list of all subscriptions of current user |
SubscriptionsAPI | SubscriptionsRenameSubscription | Put /api/manage/v1/Subscriptions/{subscriptionId}/rename | Rename subscription |
SubscriptionsAPI | SubscriptionsUpdateDefaultPermissions | Put /api/manage/v1/Subscriptions/{subscriptionId}/defaultPermissions | Change subscription's default permissions for new entities |
SubscriptionsAPI | SubscriptionsUpdateLocale | Put /api/manage/v1/Subscriptions/{subscriptionId}/Locale | Update subscription's default locale |
SubscriptionsAPI | SubscriptionsUpdatePermissions | Post /api/manage/v1/Subscriptions/{id}/permissions | Update permissions |
TasksAPI | TasksCreateTask | Post /api/tasks/v1/Tasks | Create a new task |
TasksAPI | TasksDeleteTask | Delete /api/tasks/v1/Tasks/{taskId} | Delete a task from a storage |
TasksAPI | TasksGet | Get /api/tasks/v1/Tasks/{taskId} | Get a task by a specified id |
TasksAPI | TasksGetList | Get /api/tasks/v1/Tasks | Get tasks list |
TasksAPI | TasksGetPermissions | Get /api/tasks/v1/Tasks/{id}/permissions | Get all Task permissions |
TasksAPI | TasksRenameTask | Put /api/tasks/v1/Tasks/{taskId}/rename | Rename a task |
TasksAPI | TasksRunTask | Post /api/tasks/v1/Tasks/run | Run a task from request body |
TasksAPI | TasksRunTaskById | Post /api/tasks/v1/Tasks/{taskId}/run | Run a task by id |
TasksAPI | TasksUpdatePermissions | Post /api/tasks/v1/Tasks/{id}/permissions | Update permissions |
TasksAPI | TasksUpdateTask | Put /api/tasks/v1/Tasks/{taskId} | Update a task |
TemplatesAPI | TemplateFolderAndFileClearRecycleBin | Delete /api/rp/v1/Templates/{subscriptionId}/ClearRecycleBin | Delete all folders and files from recycle bin |
TemplatesAPI | TemplateFolderAndFileCopyFiles | Post /api/rp/v1/Templates/{subscriptionId}/CopyFiles | Copy folders and files to a specified folder |
TemplatesAPI | TemplateFolderAndFileCountRecycleBinFoldersAndFiles | Get /api/rp/v1/Templates/{subscriptionId}/CountRecycleBinFolderAndFiles | Count all folders and files from recycle bin |
TemplatesAPI | TemplateFolderAndFileDeleteFiles | Post /api/rp/v1/Templates/{subscriptionId}/DeleteFiles | Delete folders and files |
TemplatesAPI | TemplateFolderAndFileGetCount | Get /api/rp/v1/Templates/Folder/{id}/CountFolderAndFiles | Get count of files and folders what contains in a specified folder |
TemplatesAPI | TemplateFolderAndFileGetFoldersAndFiles | Get /api/rp/v1/Templates/Folder/{id}/ListFolderAndFiles | Get all folders and files from specified folder |
TemplatesAPI | TemplateFolderAndFileGetRecycleBinFoldersAndFiles | Get /api/rp/v1/Templates/{subscriptionId}/ListRecycleBinFolderAndFiles | Get all folders and files from recycle bin |
TemplatesAPI | TemplateFolderAndFileMoveFiles | Post /api/rp/v1/Templates/{subscriptionId}/MoveFiles | Move folders and files to a specified folder |
TemplatesAPI | TemplateFolderAndFileMoveFilesToBin | Post /api/rp/v1/Templates/{subscriptionId}/ToBin | Move folders and files to bin |
TemplatesAPI | TemplateFolderAndFileRecoverAllFromRecycleBin | Post /api/rp/v1/Templates/{subscriptionId}/RecoverRecycleBin | Recover all folders and files from recycle bin |
TemplatesAPI | TemplateFolderAndFileRecoverFiles | Post /api/rp/v1/Templates/{subscriptionId}/RecoverFiles | Recover folders and files from bin |
TemplatesAPI | TemplateFoldersCalculateFolderSize | Get /api/rp/v1/Templates/Folder/{id}/size | Get specified folder, calculate it's size |
TemplatesAPI | TemplateFoldersCopyFolder | Post /api/rp/v1/Templates/Folder/{id}/Copy/{folderId} | Move folder to a specified folder |
TemplatesAPI | TemplateFoldersDeleteFolder | Delete /api/rp/v1/Templates/Folder/{id} | Delete specified folder |
TemplatesAPI | TemplateFoldersExport | Post /api/rp/v1/Templates/Folder/{id}/Export | Export specified template folder to a specified format |
TemplatesAPI | TemplateFoldersGetBreadcrumbs | Get /api/rp/v1/Templates/Folder/{id}/Breadcrumbs | Get specified folder breadcrumbs |
TemplatesAPI | TemplateFoldersGetFolder | Get /api/rp/v1/Templates/Folder/{id} | Get specified folder |
TemplatesAPI | TemplateFoldersGetFolders | Get /api/rp/v1/Templates/Folder/{id}/ListFolders | Get all folders from specified folder |
TemplatesAPI | TemplateFoldersGetFoldersCount | Get /api/rp/v1/Templates/Folder/{id}/CountFolders | Get count of folders what contains in a specified folder |
TemplatesAPI | TemplateFoldersGetOrCreate | Get /api/rp/v1/Templates/Folder/getOrCreate | Get specified folder |
TemplatesAPI | TemplateFoldersGetPermissions | Get /api/rp/v1/Templates/Folder/{id}/permissions | Get all folder permissions |
TemplatesAPI | TemplateFoldersGetRootFolder | Get /api/rp/v1/Templates/Root | Get user's root folder (without parents) |
TemplatesAPI | TemplateFoldersMoveFolder | Post /api/rp/v1/Templates/Folder/{id}/Move/{folderId} | Move folder to a specified folder |
TemplatesAPI | TemplateFoldersMoveFolderToBin | Delete /api/rp/v1/Templates/Folder/{id}/ToBin | Move specified folder to recycle bin |
TemplatesAPI | TemplateFoldersPostFolder | Post /api/rp/v1/Templates/Folder/{id}/Folder | Create folder |
TemplatesAPI | TemplateFoldersPrepare | Post /api/rp/v1/Templates/Folder/{id}/Prepare | Prepare specified template folder to report folder |
TemplatesAPI | TemplateFoldersRecoverFolder | Post /api/rp/v1/Templates/Folder/{id}/Recover | Recover specified folder |
TemplatesAPI | TemplateFoldersRenameFolder | Put /api/rp/v1/Templates/Folder/{id}/Rename | Rename a folder |
TemplatesAPI | TemplateFoldersUpdateIcon | Put /api/rp/v1/Templates/Folder/{id}/Icon | Update a folder's icon |
TemplatesAPI | TemplateFoldersUpdatePermissions | Post /api/rp/v1/Templates/{id}/permissions | Update permissions |
TemplatesAPI | TemplateFoldersUpdateTags | Put /api/rp/v1/Templates/Folder/{id}/UpdateTags | Update tags |
TemplatesAPI | TemplatesCopyFile | Post /api/rp/v1/Templates/File/{id}/Copy/{folderId} | Copy file to a specified folder |
TemplatesAPI | TemplatesCreateSharingKey | Post /api/rp/v1/Templates/File/{id}/sharingKey | Create a new key, that can be used to share access to a file (You need Administrate.Anon permission to create a new key) |
TemplatesAPI | TemplatesDeleteFile | Delete /api/rp/v1/Templates/File/{id} | Delete specified file |
TemplatesAPI | TemplatesDeleteSharingKey | Delete /api/rp/v1/Templates/File/{id}/sharingKey | Deletes a sharing key, making links, that utilizing it no longer work |
TemplatesAPI | TemplatesExport | Post /api/rp/v1/Templates/File/{id}/Export | Export specified report template to a specified format |
TemplatesAPI | TemplatesGetFile | Get /api/rp/v1/Templates/File/{id} | Get specified file |
TemplatesAPI | TemplatesGetFileHistory | Get /api/rp/v1/Templates/File/{id}/History | Returns list of actions, performed on this file |
TemplatesAPI | TemplatesGetFilesCount | Get /api/rp/v1/Templates/Folder/{id}/CountFiles | Get count of files what contains in a specified folder |
TemplatesAPI | TemplatesGetFilesList | Get /api/rp/v1/Templates/Folder/{id}/ListFiles | Get all files from specified folder. <br /> User with Get Entity permission can access this method. <br /> The method will returns minimal infomration about the file: <br /> id, name, size, editedTime, createdTime, tags, status, statusReason. |
TemplatesAPI | TemplatesGetPermissions | Get /api/rp/v1/Templates/File/{id}/permissions | |
TemplatesAPI | TemplatesGetSharingKeys | Get /api/rp/v1/Templates/File/{id}/sharingKeys | Returns all sharing keys, associated with the file |
TemplatesAPI | TemplatesMoveFile | Post /api/rp/v1/Templates/File/{id}/Move/{folderId} | Move file to a specified folder |
TemplatesAPI | TemplatesMoveFileToBin | Delete /api/rp/v1/Templates/File/{id}/ToBin | Move specified file to recycle bin |
TemplatesAPI | TemplatesPrepare | Post /api/rp/v1/Templates/File/{id}/Prepare | Prepare specified template to report |
TemplatesAPI | TemplatesRecoverFile | Post /api/rp/v1/Templates/File/{id}/Recover | Recover specified file from bin |
TemplatesAPI | TemplatesRenameFile | Put /api/rp/v1/Templates/File/{id}/Rename | Rename a file |
TemplatesAPI | TemplatesStaticPreview | Post /api/rp/v1/Templates/File/{id}/StaticPreview | Make preview for the report. Generate a new or return exist prepared svg files. If template was changed will be returned a new. Pass the `` parameter to check prepared timestamp |
TemplatesAPI | TemplatesUpdateContent | Put /api/rp/v1/Templates/File/{id}/Content | Updates contnet of the template. The method is deprecated, use the UpdateContentV2 method instead! |
TemplatesAPI | TemplatesUpdateContentV2 | Put /api/rp/v2/Templates/File/{id}/Content | Updates contnet of the template. |
TemplatesAPI | TemplatesUpdateIcon | Put /api/rp/v1/Templates/File/{id}/Icon | Update a files's icon |
TemplatesAPI | TemplatesUpdatePermissions | Post /api/rp/v1/Templates/File/{id}/permissions | Update permissions |
TemplatesAPI | TemplatesUpdateTags | Put /api/rp/v1/Templates/File/{id}/UpdateTags | Update tags |
TemplatesAPI | TemplatesUploadFile | Post /api/rp/v1/Templates/Folder/{id}/File | Upload a file to the specified folder. The method is deprecated, use the UploadFileV2 method instead! |
TemplatesAPI | TemplatesUploadFileV2 | Post /api/rp/v2/Templates/Folder/{id}/File | Alternative api for upload a file to the specified folder! |
UserNotificationsAPI | UserNotificationsClearNotifications | Delete /api/manage/v1/notifications | Use this endpoint to "clear" your notifications |
UserNotificationsAPI | UserNotificationsGetNotifications | Get /api/manage/v1/notifications | Use this endpoint to recieve notifications |
UserProfileAPI | UserProfileGetMyProfile | Get /api/manage/v1/UserProfile | Return current profile of the current user |
UserProfileAPI | UserProfileGetUserProfile | Get /api/manage/v1/UserProfile/{userId} | Return user profile by user identifier. If the user did not provide information about himself or blocked, then the endpoint will return an empty model. (only id) |
UserProfileAPI | UserProfileUpdateMyProfile | Put /api/manage/v1/UserProfile | Update profile of the current user |
UserSettingsAPI | UserSettingsAcceptAgreements | Post /api/manage/v1/UserSettings/accept | Use this endpoint to accept current version of service license agreement |
UserSettingsAPI | UserSettingsGetCurrentUserSettings | Get /api/manage/v1/UserSettings | Return current user settings. |
UserSettingsAPI | UserSettingsUpdateMySettings | Put /api/manage/v1/UserSettings | Update settings of the current user |
- AcceptAgreementsVM
- AdminAdministrate
- AdminCreate
- AdminCreateAdminGetAdminUpdateAdminDeleteAdminExecuteAdminAdministratePermission
- AdminDelete
- AdminExecute
- AdminExportFolderCreateVM
- AdminFolderCreateVM
- AdminGet
- AdminPermission
- AdminReportFolderCreateVM
- AdminSubscriptionVM
- AdminSubscriptionsVM
- AdminTemplateFolderCreateVM
- AdminUpdate
- AdminUpdateCurrentSubscriptionPlanVM
- AnalysisResultVM
- AnalysisResultsVM
- ApiKeyVM
- ApiKeysVM
- AppMixinsVM
- AuditActionVM
- AuditActionsVM
- AuditActiveStatsVM
- AuditFilePropertyChangedVM
- AuditStatVM
- AuditStatsVM
- AuditSubscriptionActionVM
- AuditTaskActionVM
- AuditType
- AuthConfigVM
- BreadcrumbsModel
- BreadcrumbsVM
- CheckUserByPasswordInternalVM
- ClearNotificationsVM
- CloudBaseVM
- ContactGroupVM
- ContactGroupsVM
- ContactVM
- ContactsVM
- CountVM
- CreateApiKeyVM
- CreateAuditActionVM
- CreateContactGroupVM
- CreateContactVM
- CreateDataSourceAdminVM
- CreateDataSourceVM
- CreateEmailTaskVM
- CreateExportReportTaskVM
- CreateExportTemplateTaskVM
- CreateFTPUploadTaskVM
- CreateFetchTaskVM
- CreateFileShareVM
- CreateGroupAdminVM
- CreateGroupVM
- CreateIfNotExistInternalVM
- CreatePrepareTemplateTaskVM
- CreateSubscriptionInviteVM
- CreateSubscriptionPeriodVM
- CreateSubscriptionPlanVM
- CreateSubscriptionVM
- CreateTaskBaseVM
- CreateTaskEndVM
- CreateThumbnailReportTaskVM
- CreateThumbnailTemplateTaskVM
- CreateTransformTaskBaseVM
- CreateTransportTaskBaseVM
- CreateWebhookTaskVM
- DataSourceAdministrate
- DataSourceConnectionType
- DataSourceCreate
- DataSourceDelete
- DataSourceExecute
- DataSourceGet
- DataSourceParameterTypeVM
- DataSourceParameterTypesVM
- DataSourcePermissionCRUDVM
- DataSourcePermissionsCRUDVM
- DataSourcePermissionsVM
- DataSourceSelectCommandParameterVM
- DataSourceSelectCommandVM
- DataSourceSorting
- DataSourceStatus
- DataSourceUpdate
- DataSourceVM
- DataSourcesVM
- DefaultPermissionsVM
- DeleteApiKeyVM
- EmailTaskVM
- EntityType
- ExportCreateAdminVM
- ExportCreateVM
- ExportFolderCreateVM
- ExportFormat
- ExportReportTaskVM
- ExportReportVM
- ExportTemplateTaskVM
- ExportTemplateVM
- ExportVM
- ExportsVM
- FTPUploadTaskVM
- FetchTaskVM
- FileAdministrate
- FileContentVM
- FileCreate
- FileCreateFormVM
- FileCreateVM
- FileDelete
- FileExecute
- FileGet
- FileIconVM
- FileKind
- FilePermissionCRUDVM
- FilePermissionsCRUDVM
- FilePermissionsVM
- FileRenameVM
- FileShareVM
- FileSharingKeysVM
- FileSorting
- FileStatus
- FileStatusReason
- FileStatusUpdateInternalVM
- FileStatusVM
- FileTagsUpdateVM
- FileThumbnailUpdateInternalVM
- FileType
- FileUpdate
- FileUpdateVM
- FileVM
- FilesVM
- FilesVMBase
- FolderCreateVM
- FolderIconVM
- FolderRenameVM
- FolderSizeVM
- FolderTagsUpdateVM
- FrontendAppVM
- GroupAdministrate
- GroupCreate
- GroupDelete
- GroupExecute
- GroupGet
- GroupPermissionCRUDVM
- GroupPermissionsCRUDVM
- GroupPermissionsVM
- GroupUpdate
- GroupUserVM
- GroupUsersVM
- GroupVM
- GroupsVM
- HttpValidationProblemDetails
- InputFileVM
- InvitedUser
- MyPermissionsVM
- OutputFileVM
- PrepareTemplateTaskVM
- PrepareTemplateVM
- PreviewReportVM
- PreviewTemplateVM
- ProblemDetails
- ProblemLevel
- ProblemType
- ProfileVisibility
- RegisterUserVM
- RenameDataSourceVM
- RenameGroupVM
- RenameSubscriptionVM
- ReportCreateAdminVM
- ReportCreateFormVM
- ReportCreateVM
- ReportFolderCreateVM
- ReportInfo
- ReportVM
- ReportsVM
- RestOfSpaceVM
- RunEmailTaskVM
- RunExportReportTaskVM
- RunExportTemplateTaskVM
- RunFTPUploadTaskVM
- RunFetchTaskVM
- RunInputFileVM
- RunPrepareTemplateTaskVM
- RunTaskBaseVM
- RunThumbnailReportTaskVM
- RunThumbnailTemplateTaskVM
- RunTransformTaskBaseVM
- RunTransportTaskBaseVM
- RunWebhookTaskVM
- SaveMode
- SelectedFilesVM
- ServerConfigurationVM
- SolvationReportVM
- SubscriptionAdministrate
- SubscriptionCreate
- SubscriptionDelete
- SubscriptionExecute
- SubscriptionFolder
- SubscriptionGet
- SubscriptionInviteVM
- SubscriptionInvitesVM
- SubscriptionPeriodVM
- SubscriptionPermissionCRUDVM
- SubscriptionPermissionsCRUDVM
- SubscriptionPermissionsVM
- SubscriptionPlanVM
- SubscriptionPlansVM
- SubscriptionUpdate
- SubscriptionUserVM
- SubscriptionUsersVM
- SubscriptionVM
- SubscriptionsVM
- TaskAdministrate
- TaskBaseVM
- TaskCreate
- TaskDelete
- TaskEnd
- TaskExecute
- TaskGet
- TaskIdsVM
- TaskMessageIdVM
- TaskPermissionCRUDVM
- TaskPermissionsCRUDVM
- TaskPermissionsVM
- TaskSettingsVM
- TaskUpdate
- TasksVM
- TemplateContentVM
- TemplateCreateAdminVM
- TemplateCreateFormVM
- TemplateCreateVM
- TemplateFolderCreateVM
- TemplateVM
- TemplatesVM
- ThumbnailReportTaskVM
- ThumbnailTemplateTaskVM
- TimePeriodType
- TransformTaskBaseVM
- TransportTaskBaseVM
- UpdateContactGroupVM
- UpdateContactVM
- UpdateContentInternalVM
- UpdateDataSourceConnectionStringVM
- UpdateDataSourcePermissionsVM
- UpdateDataSourceSelectCommandsVM
- UpdateDataSourceSubscriptionVM
- UpdateDataSourceVM
- UpdateDataVM
- UpdateDefaultPermissionsVM
- UpdateEmailTaskVM
- UpdateExportReportTaskVM
- UpdateExportTemplateTaskVM
- UpdateFTPUploadTaskVM
- UpdateFetchTaskVM
- UpdateFileContentFormVM
- UpdateFileContentInternalVM
- UpdateFileContentVM
- UpdateFilePermissionsVM
- UpdateGroupPermissionsVM
- UpdateGroupVM
- UpdatePrepareTemplateTaskVM
- UpdateSubscriptionLocaleVM
- UpdateSubscriptionPermissionsVM
- UpdateSubscriptionPlanVM
- UpdateSubscriptionVM
- UpdateTaskBaseVM
- UpdateTaskPermissionsVM
- UpdateThumbnailReportTaskVM
- UpdateThumbnailTemplateTaskVM
- UpdateTransformTaskBaseVM
- UpdateTransportTaskBaseVM
- UpdateUserProfileVM
- UpdateUserSettingsVM
- UpdateUserVM
- UpdateWebhookTaskVM
- UserIsAdminVM
- UserProfileVM
- UserResultVM
- UserSettingsVM
- UserVM
- UsersVM
- WebhookTaskVM
- Type: HTTP Bearer token authentication
Example
auth := context.WithValue(context.Background(), sw.ContextAccessToken, "BEARERTOKENSTRING")
r, err := client.Service.Operation(auth, args)
- Type: HTTP basic authentication
Example
auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{
UserName: "username",
Password: "password",
})
r, err := client.Service.Operation(auth, args)
Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:
PtrBool
PtrInt
PtrInt32
PtrInt64
PtrFloat
PtrFloat32
PtrFloat64
PtrString
PtrTime
Here you can find an example of how to use this module.
Fast Reports team https://www.fast-report.com/en/