SDK
SDK C# v1.x
1

You are currently looking at the documentation of a previous version of Kuzzle. We strongly recommend that you use the latest version. You can also use the version selector in the top menu.

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