Exemplo n.º 1
0
 public async Task CreateViewAsync(ArangoHandle database, ArangoView view,
                                   CancellationToken cancellationToken = default)
 {
     await SendAsync <JObject>(HttpMethod.Post,
                               $"{Server}/_db/{DbName(database)}/_api/view",
                               JsonConvert.SerializeObject(view),
                               cancellationToken : cancellationToken);
 }
Exemplo n.º 2
0
 public async Task CreateAsync(ArangoHandle database, ArangoView view,
                               CancellationToken cancellationToken = default)
 {
     await SendAsync <ArangoVoid>(database, HttpMethod.Post,
                                  ApiPath(database, "view"),
                                  view,
                                  cancellationToken : cancellationToken);
 }
Exemplo n.º 3
0
 public async Task CreateAsync(ArangoHandle database, ArangoView view,
                               CancellationToken cancellationToken = default)
 {
     await SendAsync <JObject>(HttpMethod.Post,
                               ApiPath(database, "view"),
                               Serialize(view),
                               cancellationToken : cancellationToken);
 }