Remark:
This project is part of a project Vault
dotnet add package ivy.vault --version 1.0.0
// app: market
// space: coop
// fullpath: /@/coop/market/prices
// auth: NO
using var vault = Vault
.Create("vault.api")
.Space("coop")
.App("market");
var prices = await vault.FieldAsync<Price[]>("prices");
// app: market
// space: coop
// fullpath: /@/coop/market/features
// auth: NO
using var vault = Vault
.Create("vault.api")
.Space("coop")
.App("market");
var features = await vault.FieldAsync<List<FeatureFlag>>("features");
features.RemoveWhen(x => x.name == "task");
await vault.UpdateAsync("features", features);
// app: market
// space: coop
// fullpath: /@/coop/market/prices
// auth: YES
using var vault = Vault
.Create("vault.api")
.Space("coop")
.WithToken(SPACE_TOKEN)
.App("market")
.WithToken(APP_TOKEN);
var prices = await vault.FieldAsync<Price[]>("prices");
class VaultBadRequestException // Application or Field path not found.
class VaultAccessDeniedException // Access Code is not correct.