-
Notifications
You must be signed in to change notification settings - Fork 33
/
BigMapTagsParameter.cs
40 lines (37 loc) 路 1.68 KB
/
BigMapTagsParameter.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
锘縰sing System.Collections.Generic;
using Microsoft.AspNetCore.Mvc;
using NJsonSchema.Annotations;
namespace Tzkt.Api
{
[ModelBinder(BinderType = typeof(BigMapTagsBinder))]
[JsonSchemaExtensionData("x-tzkt-extension", "query-parameter")]
[JsonSchemaExtensionData("x-tzkt-query-parameter", "metadata,token_metadata,ledger")]
public class BigMapTagsParameter
{
/// <summary>
/// **Equal** filter mode (optional, i.e. `param.eq=123` is the same as `param=123`). \
/// Specify a comma-separated list of bigmap tags to get bigmaps with exactly the same set of tags.
/// Avoid using this mode and use `.any` or `.all` instead, because it may not work as expected due to internal 'hidden' tags.
///
/// Example: `?tags=metadata` or `?tags=token_metadata,metadata`.
/// </summary>
[JsonSchemaType(typeof(List<string>))]
public int? Eq { get; set; }
/// <summary>
/// **Has any** filter mode. \
/// Specify a comma-separated list of bigmap tags to get bigmaps where at least one of the specified tags is presented.
///
/// Example: `?tags.any=metadata` or `?tags.any=token_metadata,metadata`.
/// </summary>
[JsonSchemaType(typeof(List<string>))]
public int? Any { get; set; }
/// <summary>
/// **Has all** filter mode. \
/// Specify a comma-separated list of bigmap tags to get bigmaps where all of the specified tags are presented.
///
/// Example: `?tags.all=metadata` or `?tags.all=token_metadata,metadata`.
/// </summary>
[JsonSchemaType(typeof(List<string>))]
public int? All { get; set; }
}
}