Skip to content

Commit ab98e67

Browse files
committed
fix coding style
1 parent b7d77ea commit ab98e67

File tree

1 file changed

+36
-12
lines changed

1 file changed

+36
-12
lines changed

src/JsonApiDotNetCore.Annotations/Controllers/JsonApiEndpoints.shared.cs

Lines changed: 36 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,63 +15,87 @@ public enum JsonApiEndpoints
1515
/// <summary>
1616
/// Endpoint to get a collection of primary resources.
1717
/// </summary>
18-
/// <example><code><![CDATA[GET /articles]]></code></example>
18+
/// <example>
19+
/// <code><![CDATA[GET /articles]]></code>
20+
/// </example>
1921
GetCollection = 1,
2022

2123
/// <summary>
2224
/// Endpoint to get a single primary resource by ID.
2325
/// </summary>
24-
/// <example><code><![CDATA[GET /articles/1]]></code></example>
26+
/// <example>
27+
/// <code><![CDATA[GET /articles/1]]></code>
28+
/// </example>
2529
GetSingle = 1 << 1,
2630

2731
/// <summary>
2832
/// Endpoint to get a secondary resource or collection of secondary resources.
2933
/// </summary>
30-
/// <example><code><![CDATA[GET /articles/1/author]]></code></example>
34+
/// <example>
35+
/// <code><![CDATA[GET /articles/1/author]]></code>
36+
/// </example>
3137
GetSecondary = 1 << 2,
3238

3339
/// <summary>
3440
/// Endpoint to get a relationship value, which can be a <c>null</c>, a single object or a collection.
3541
/// </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>
3848
GetRelationship = 1 << 3,
3949

4050
/// <summary>
4151
/// Endpoint to creates a new resource with attributes, relationships or both.
4252
/// </summary>
43-
/// <example><code><![CDATA[POST /articles]]></code></example>
53+
/// <example>
54+
/// <code><![CDATA[POST /articles]]></code>
55+
/// </example>
4456
Post = 1 << 4,
4557

4658
/// <summary>
4759
/// Endpoint to add resources to a to-many relationship.
4860
/// </summary>
49-
/// <example><code><![CDATA[POST /articles/1/revisions]]></code></example>
61+
/// <example>
62+
/// <code><![CDATA[POST /articles/1/revisions]]></code>
63+
/// </example>
5064
PostRelationship = 1 << 5,
5165

5266
/// <summary>
5367
/// Endpoint to update the attributes and/or relationships of an existing resource.
5468
/// </summary>
55-
/// <example><code><![CDATA[PATCH /articles/1]]></code></example>
69+
/// <example>
70+
/// <code><![CDATA[PATCH /articles/1]]></code>
71+
/// </example>
5672
Patch = 1 << 6,
5773

5874
/// <summary>
5975
/// Endpoint to perform a complete replacement of a relationship on an existing resource.
6076
/// </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>
6383
PatchRelationship = 1 << 7,
6484

6585
/// <summary>
6686
/// Endpoint to delete an existing resource.
6787
/// </summary>
68-
/// <example><code><![CDATA[DELETE /articles/1]]></code></example>
88+
/// <example>
89+
/// <code><![CDATA[DELETE /articles/1]]></code>
90+
/// </example>
6991
Delete = 1 << 8,
7092

7193
/// <summary>
7294
/// Endpoint to remove resources from a to-many relationship.
7395
/// </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>
7599
DeleteRelationship = 1 << 9,
76100

77101
/// <summary>

0 commit comments

Comments
 (0)