@@ -15,63 +15,87 @@ public enum JsonApiEndpoints
15
15
/// <summary>
16
16
/// Endpoint to get a collection of primary resources.
17
17
/// </summary>
18
- /// <example><code><![CDATA[GET /articles]]></code></example>
18
+ /// <example>
19
+ /// <code><![CDATA[GET /articles]]></code>
20
+ /// </example>
19
21
GetCollection = 1 ,
20
22
21
23
/// <summary>
22
24
/// Endpoint to get a single primary resource by ID.
23
25
/// </summary>
24
- /// <example><code><![CDATA[GET /articles/1]]></code></example>
26
+ /// <example>
27
+ /// <code><![CDATA[GET /articles/1]]></code>
28
+ /// </example>
25
29
GetSingle = 1 << 1 ,
26
30
27
31
/// <summary>
28
32
/// Endpoint to get a secondary resource or collection of secondary resources.
29
33
/// </summary>
30
- /// <example><code><![CDATA[GET /articles/1/author]]></code></example>
34
+ /// <example>
35
+ /// <code><![CDATA[GET /articles/1/author]]></code>
36
+ /// </example>
31
37
GetSecondary = 1 << 2 ,
32
38
33
39
/// <summary>
34
40
/// Endpoint to get a relationship value, which can be a <c>null</c>, a single object or a collection.
35
41
/// </summary>
36
- /// <example><code><![CDATA[GET /articles/1/relationships/author]]></code></example>
37
- /// <example><code><![CDATA[GET /articles/1/relationships/revisions]]></code></example>
42
+ /// <example>
43
+ /// <code><![CDATA[GET /articles/1/relationships/author]]></code>
44
+ /// </example>
45
+ /// <example>
46
+ /// <code><![CDATA[GET /articles/1/relationships/revisions]]></code>
47
+ /// </example>
38
48
GetRelationship = 1 << 3 ,
39
49
40
50
/// <summary>
41
51
/// Endpoint to creates a new resource with attributes, relationships or both.
42
52
/// </summary>
43
- /// <example><code><![CDATA[POST /articles]]></code></example>
53
+ /// <example>
54
+ /// <code><![CDATA[POST /articles]]></code>
55
+ /// </example>
44
56
Post = 1 << 4 ,
45
57
46
58
/// <summary>
47
59
/// Endpoint to add resources to a to-many relationship.
48
60
/// </summary>
49
- /// <example><code><![CDATA[POST /articles/1/revisions]]></code></example>
61
+ /// <example>
62
+ /// <code><![CDATA[POST /articles/1/revisions]]></code>
63
+ /// </example>
50
64
PostRelationship = 1 << 5 ,
51
65
52
66
/// <summary>
53
67
/// Endpoint to update the attributes and/or relationships of an existing resource.
54
68
/// </summary>
55
- /// <example><code><![CDATA[PATCH /articles/1]]></code></example>
69
+ /// <example>
70
+ /// <code><![CDATA[PATCH /articles/1]]></code>
71
+ /// </example>
56
72
Patch = 1 << 6 ,
57
73
58
74
/// <summary>
59
75
/// Endpoint to perform a complete replacement of a relationship on an existing resource.
60
76
/// </summary>
61
- /// <example><code><![CDATA[PATCH /articles/1/relationships/author]]></code></example>
62
- /// <example><code><![CDATA[PATCH /articles/1/relationships/revisions]]></code></example>
77
+ /// <example>
78
+ /// <code><![CDATA[PATCH /articles/1/relationships/author]]></code>
79
+ /// </example>
80
+ /// <example>
81
+ /// <code><![CDATA[PATCH /articles/1/relationships/revisions]]></code>
82
+ /// </example>
63
83
PatchRelationship = 1 << 7 ,
64
84
65
85
/// <summary>
66
86
/// Endpoint to delete an existing resource.
67
87
/// </summary>
68
- /// <example><code><![CDATA[DELETE /articles/1]]></code></example>
88
+ /// <example>
89
+ /// <code><![CDATA[DELETE /articles/1]]></code>
90
+ /// </example>
69
91
Delete = 1 << 8 ,
70
92
71
93
/// <summary>
72
94
/// Endpoint to remove resources from a to-many relationship.
73
95
/// </summary>
74
- /// <example><code><![CDATA[DELETE /articles/1/relationships/revisions]]></code></example>
96
+ /// <example>
97
+ /// <code><![CDATA[DELETE /articles/1/relationships/revisions]]></code>
98
+ /// </example>
75
99
DeleteRelationship = 1 << 9 ,
76
100
77
101
/// <summary>
0 commit comments