GetSpecificationsAsync #
Returns the validation specifications associated to the collection.
Arguments #
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 #
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);
}
Edit this page on Github(opens new window)