@@ -4,20 +4,106 @@ namespace JsonApiDotNetCore.SourceGenerators;
44[ Flags ] 
55public  enum  JsonApiEndpointsCopy 
66{ 
7+     /// <summary> 
8+     /// Represents none of the JSON:API endpoints. 
9+     /// </summary> 
710    None  =  0 , 
11+ 
12+     /// <summary> 
13+     /// Represents the endpoint to get a collection of primary resources. Example: <code><![CDATA[ 
14+     /// GET /articles HTTP/1.1 
15+     /// ]]></code> 
16+     /// </summary> 
817    GetCollection  =  1 , 
18+ 
19+     /// <summary> 
20+     /// Represents the endpoint to get a single primary resource by ID. Example: <code><![CDATA[ 
21+     /// GET /articles/1 HTTP/1.1 
22+     /// ]]></code> 
23+     /// </summary> 
924    GetSingle  =  1  <<  1 , 
25+ 
26+     /// <summary> 
27+     /// Represents the endpoint to get a secondary resource or collection of secondary resources. Example: 
28+     /// <code><![CDATA[ 
29+     /// GET /articles/1/author HTTP/1.1 
30+     /// ]]></code> Example: <code><![CDATA[ 
31+     /// GET /articles/1/revisions HTTP/1.1 
32+     /// ]]></code> 
33+     /// </summary> 
1034    GetSecondary  =  1  <<  2 , 
35+ 
36+     /// <summary> 
37+     /// Represents the endpoint to get a relationship value. Example: <code><![CDATA[ 
38+     /// GET /articles/1/relationships/author HTTP/1.1 
39+     /// ]]></code> Example: 
40+     /// <code><![CDATA[ 
41+     /// GET /articles/1/relationships/revisions HTTP/1.1 
42+     /// ]]></code> 
43+     /// </summary> 
1144    GetRelationship  =  1  <<  3 , 
45+ 
46+     /// <summary> 
47+     /// Represents the endpoint to create a new resource with attributes, relationships or both. Example: 
48+     /// <code><![CDATA[ 
49+     /// POST /articles HTTP/1.1 
50+     /// ]]></code> 
51+     /// </summary> 
1252    Post  =  1  <<  4 , 
53+ 
54+     /// <summary> 
55+     /// Represents the endpoint to add resources to a to-many relationship. Example: <code><![CDATA[ 
56+     /// POST /articles/1/revisions HTTP/1.1 
57+     /// ]]></code> 
58+     /// </summary> 
1359    PostRelationship  =  1  <<  5 , 
60+ 
61+     /// <summary> 
62+     /// Represents the endpoint to update the attributes and/or relationships of an existing resource. Example: 
63+     /// <code><![CDATA[ 
64+     /// PATCH /articles/1 
65+     /// ]]></code> 
66+     /// </summary> 
1467    Patch  =  1  <<  6 , 
68+ 
69+     /// <summary> 
70+     /// Represents the endpoint to perform a complete replacement of a relationship on an existing resource. Example: 
71+     /// <code><![CDATA[ 
72+     /// PATCH /articles/1/relationships/author HTTP/1.1 
73+     /// ]]></code> Example: 
74+     /// <code><![CDATA[ 
75+     /// PATCH /articles/1/relationships/revisions HTTP/1.1 
76+     /// ]]></code> 
77+     /// </summary> 
1578    PatchRelationship  =  1  <<  7 , 
79+ 
80+     /// <summary> 
81+     /// Represents the endpoint to delete an existing resource. Example: <code><![CDATA[ 
82+     /// DELETE /articles/1 
83+     /// ]]></code> 
84+     /// </summary> 
1685    Delete  =  1  <<  8 , 
86+ 
87+     /// <summary> 
88+     /// Represents the endpoint to remove resources from a to-many relationship. Example: 
89+     /// <code><![CDATA[ 
90+     /// DELETE /articles/1/relationships/revisions 
91+     /// ]]></code> 
92+     /// </summary> 
1793    DeleteRelationship  =  1  <<  9 , 
1894
95+     /// <summary> 
96+     /// Represents the set of JSON:API endpoints to query resources and relationships. 
97+     /// </summary> 
1998    Query  =  GetCollection  |  GetSingle  |  GetSecondary  |  GetRelationship , 
99+ 
100+     /// <summary> 
101+     /// Represents the set of JSON:API endpoints to change resources and relationships. 
102+     /// </summary> 
20103    Command  =  Post  |  PostRelationship  |  Patch  |  PatchRelationship  |  Delete  |  DeleteRelationship , 
21104
105+     /// <summary> 
106+     /// Represents all of the JSON:API endpoints. 
107+     /// </summary> 
22108    All  =  Query  |  Command 
23109} 
0 commit comments