SDK
SDK C# v2.x
2

GetSpecificationsAsync #

Returns the validation specifications associated to the collection.

Arguments #

Copied to clipboard!
public async Task<JObject> GetSpecificationsAsync(
    string index,
    string collection);
Argument Type Description
index
string
Index name
collection
string
Collection name

Return #

A JObject representing the validation specifications.

Usage #

Copied to clipboard!
try {
  JObject specifications = await kuzzle.Collection.GetSpecificationsAsync("nyc-open-data", "yellow-taxi");
  Console.WriteLine(specifications.ToString(Formatting.None));
  // {"nyc-open-data": {"yellow-taxi": {"strict": false, "fields": {"license": {"type": "string"}}}}}
} catch (Exception e) {
  Console.WriteLine(e);
}