New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/gridly-spreadsheet-cms/gridly-go-sdk

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/gridly-spreadsheet-cms/gridly-go-sdk

  • v1.4.0
  • Source
  • Go
  • Socket score

Version published
Created
Source

Go API client for gridly

Gridly API documentation

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.9.0
  • Package version: 1.4.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen For more information, please visit https://www.gridly.com

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

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

import gridly "github.com/gridly-spreadsheet-CMS/gridly-go-sdk"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value sw.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), gridly.ContextServerIndex, 1)

Templated Server URL

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(), gridly.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified 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(), gridly.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), gridly.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to https://api.gridly.com

ClassMethodHTTP requestDescription
BranchApiCreatePost /v1/branchescreate
BranchApiCreateDiffCheckPost /v1/branches/diffcheckcreateDiffCheck
BranchApiDeleteDelete /v1/branches/{branchId}delete
BranchApiGetGet /v1/branches/{branchId}get
BranchApiGetDiffCheckGet /v1/branches/diffcheck/{taskId}getDiffCheck
BranchApiListGet /v1/brancheslist
BranchApiMergePost /v1/branches/{branchId}/mergemerge
CdnApiListGet /v1/cdnslist
CdnApiPublishPut /v1/cdns/{cdnId}/publishpublish
CdnApiUnPublishPut /v1/cdns/{cdnId}/unpublishunPublish
DatabaseApiCreatePost /v1/databasescreate
DatabaseApiDeleteDelete /v1/databases/{dbId}delete
DatabaseApiDuplicatePost /v1/databases/{dbId}/duplicateduplicate
DatabaseApiGetGet /v1/databases/{dbId}get
DatabaseApiListGet /v1/databaseslist
DatabaseApiUpdatePut /v1/databases/{dbId}update
GlossaryApiCreatePost /v1/glossariesCreate a new glossary
GlossaryApiDeleteDelete /v1/glossaries/{id}Delete a glossary
GlossaryApiExportFileGet /v1/glossaries/{id}/exportExport a glossary
GlossaryApiGetGet /v1/glossaries/{id}get glossary info
GlossaryApiGetAllGet /v1/glossariesList all glossaries
GlossaryApiImportFilePost /v1/glossaries/{id}/importImport a glossary from file
GlossaryApiUpdatePut /v1/glossaries/{id}Update glossary info
GridApiCreatePost /v1/gridscreate
GridApiCreateCategoryPost /v1/grids/{gridId}/settings/categoriescreateCategory
GridApiDeleteDelete /v1/grids/{gridId}delete
GridApiDeleteCategoryDelete /v1/grids/{gridId}/settings/categories/{categoryId}deleteCategory
GridApiDeleteFileDelete /v1/grids/{gridId}/settings/categories/{categoryId}/files/{fileId}deleteFile
GridApiGetGet /v1/grids/{gridId}get
GridApiGetSettingGet /v1/grids/{gridId}/settingsgetSetting
GridApiListGet /v1/gridslist
GridApiListFilesGet /v1/grids/{gridId}/settings/fileslistFiles
GridApiListTemplateGridsGet /v1/template-gridslistTemplateGrids
GridApiUpdatePatch /v1/grids/{gridId}update
GridApiUpdateCategoryPut /v1/grids/{gridId}/settings/categories/{categoryId}updateCategory
GridApiUpdateSettingPatch /v1/grids/{gridId}/settingsupdateSetting
GridApiUploadSettingFilePost /v1/grids/{gridId}/settings/categories/{categoryId}/filesuploadSettingFile
PathApiCreatePost /v1/views/{viewId}/pathscreate
PathApiDeleteDelete /v1/views/{viewId}/pathsdelete
PathApiListGet /v1/views/{viewId}/paths/treelist
PathApiMovePost /v1/views/{viewId}/paths/movemove
PathApiUpdatePut /v1/views/{viewId}/paths/{path}update
ProjectApiCreatePost /v1/projectscreate
ProjectApiDeleteDelete /v1/projects/{projectId}delete
ProjectApiFindOneGet /v1/projects/{projectId}findOne
ProjectApiListGet /v1/projectslist
ProjectApiUpdatePut /v1/projects/{projectId}update
RecordApiCreatePost /v1/views/{viewId}/recordscreate
RecordApiDeleteDelete /v1/views/{viewId}/recordsdelete
RecordApiFetchGet /v1/views/{viewId}/recordsfetch
RecordApiFetchHistoriesGet /v1/views/{viewId}/records/{recordId}/historiesfetchHistories
RecordApiUpdatePatch /v1/views/{viewId}/recordsupdate
RecordApiUpdateRecordPatch /v1/views/{viewId}/records/{id}updateRecord
ShareViewApiCreatePut /v1/views/{viewId}/sharescreate
ShareViewApiDeleteDelete /v1/views/{viewId}/sharesdelete
ShareViewApiGetGet /v1/views/{viewId}/sharesget
TaskApiGetGet /v1/tasks/{taskId}get
TransmemApiCleanupPut /v1/transmems/{tmId}/cleanupErases all the translation data of the provided tmId
TransmemApiCreatePost /v1/transmemsCreate a new translation memory
TransmemApiCreateWithFilePost /v1/transmems/uploadCreate a new translation memory by uploading tmx file
TransmemApiDeleteDelete /v1/transmems/{tmId}Delete a translation memory by id
TransmemApiExportGet /v1/transmems/{tmId}/exportExport translation memory tmx file
TransmemApiGetGet /v1/transmems/{tmId}Get translation memory info by id
TransmemApiImportTmxPost /v1/transmems/{tmId}/importImport a translation memory from tmx file
TransmemApiListTMGet /v1/transmemsList all available translation memories or create default one if there is no translation memory
TransmemApiUpdatePut /v1/transmems/{tmId}Update a translation memory
ViewApiCreatePost /v1/viewscreate
ViewApiExportGet /v1/views/{viewId}/exportexport
ViewApiGetGet /v1/views/{viewId}get
ViewApiGetStatisticGet /v1/views/{viewId}/statisticgetStatistic
ViewApiImportViewPost /v1/views/{viewId}/importimportView
ViewApiListGet /v1/viewslist
ViewApiMergePost /v1/views/{viewId}/mergemerge
ViewColumnApiAddPost /v1/views/{viewId}/columns/{columnId}/addadd
ViewColumnApiBulkCreatePost /v1/views/{viewId}/columns/bulkbulkCreate
ViewColumnApiCreatePost /v1/views/{viewId}/columnscreate
ViewColumnApiDeleteDelete /v1/views/{viewId}/columns/{columnId}delete
ViewColumnApiGetGet /v1/views/{viewId}/columns/{columnId}get
ViewColumnApiRemovePost /v1/views/{viewId}/columns/{columnId}/removeremove
ViewColumnApiUpdatePatch /v1/views/{viewId}/columns/{columnId}update
ViewDependencyApiCreatePost /v1/views/{viewId}/dependenciescreate
ViewDependencyApiDeleteDelete /v1/views/{viewId}/dependenciesdelete
ViewDependencyApiDeleteByIdDelete /v1/views/{viewId}/dependencies/{dependencyId}deleteById
ViewDependencyApiGetGet /v1/views/{viewId}/dependencies/{dependencyId}get
ViewDependencyApiListGet /v1/views/{viewId}/dependencieslist
ViewDependencyApiUpdatePut /v1/views/{viewId}/dependencies/{dependencyId}update
ViewFileApiDeleteDelete /v1/views/{viewId}/filesdelete
ViewFileApiDownloadGet /v1/views/{viewId}/files/{fileId}download
ViewFileApiUploadPost /v1/views/{viewId}/filesupload
ViewFileApiUploadZipPost /v1/views/{viewId}/files/zipuploadZip

Documentation For Models

Documentation For Authorization

ApiKey

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

Note, each API key must be added to a map of map[string]APIKey where the key is: Authorization and passed in as the auth context for each request.

Documentation for Utility Methods

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

Author

support@gridly.com

FAQs

Package last updated on 15 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc