-
Notifications
You must be signed in to change notification settings - Fork 33
/
StringParameter.cs
71 lines (64 loc) 路 2.68 KB
/
StringParameter.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
锘縰sing System.Collections.Generic;
using Microsoft.AspNetCore.Mvc;
using NJsonSchema.Annotations;
namespace Tzkt.Api
{
[ModelBinder(BinderType = typeof(StringBinder))]
[JsonSchemaExtensionData("x-tzkt-extension", "query-parameter")]
public class StringParameter
{
/// <summary>
/// **Equal** filter mode (optional, i.e. `param.eq=123` is the same as `param=123`). \
/// Specify a string to get items where the specified field is equal to the specified value.
///
/// Example: `?parameters=abc`.
/// </summary>
public string Eq { get; set; }
/// <summary>
/// **Not equal** filter mode. \
/// Specify a string to get items where the specified field is not equal to the specified value.
///
/// Example: `?parameters.ne=abc`.
/// </summary>
public string Ne { get; set; }
/// <summary>
/// **Same as** filter mode. \
/// Specify a string template to get items where the specified field matches the specified template. \
/// This mode supports wildcard `*`. Use `\*` as an escape symbol.
///
/// Example: `?parameters.as=*mid*` or `?parameters.as=*end`.
/// </summary>
public string As { get; set; }
/// <summary>
/// **Unlike** filter mode. \
/// Specify a string template to get items where the specified field doesn't match the specified template.
/// This mode supports wildcard `*`. Use `\*` as an escape symbol.
///
/// Example: `?parameters.un=*mid*` or `?parameters.un=*end`.
/// </summary>
public string Un { get; set; }
/// <summary>
/// **In list** (any of) filter mode. \
/// Specify a comma-separated list of strings to get items where the specified field is equal to one of the specified values. \
/// Use `\,` as an escape symbol.
///
/// Example: `?errors.in=bla,bal,abl`.
/// </summary>
public List<string> In { get; set; }
/// <summary>
/// **Not in list** (none of) filter mode. \
/// Specify a comma-separated list of strings to get items where the specified field is not equal to all the specified values. \
/// Use `\,` as an escape symbol.
///
/// Example: `?errors.ni=bla,bal,abl`.
/// </summary>
public List<string> Ni { get; set; }
/// <summary>
/// **Is null** filter mode. \
/// Use this mode to get items where the specified field is null or not.
///
/// Example: `?parameters.null` or `?parameters.null=false`.
/// </summary>
public bool? Null { get; set; }
}
}