SDK
SDK C# v2.x
2

GetSpecificationsAsync #

Returns the validation specifications associated to the collection.

Arguments #

public async Task<JObject> GetSpecificationsAsync(
    string index,
    string collection);
ArgumentTypeDescription
index
string
Index name
collection
string
Collection name

Return #

A JObject representing the validation specifications.

Usage #

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);
}