SDK
SDK Golang v3.x
2

GetSpecifications #

Returns the validation specifications associated to the collection.

Arguments #

Copied to clipboard!
GetSpecifications(index string, collection string, options types.QueryOptions) (json.RawMessage, error)
Arguments Type Description
index
string
Index name
collection
string
Collection name
options
types.QueryOptions
Query options

options #

Additional query options

Property Type Description Default
queuable
bool
Make this request queuable or not true

Return #

Return a json representation of the specifications and an error is something was wrong.

Usage #

Copied to clipboard!
specifications, err := kuzzle.Collection.GetSpecifications("nyc-open-data", "yellow-taxi", nil)
if err != nil {
  log.Fatal(err)
} else if specifications != nil {
  fmt.Println("Success")
}