@@ -86,9 +86,12 @@ protected BaseJsonApiController(IJsonApiOptions options, IResourceGraph resource
8686 }
8787
8888 /// <summary>
89- /// Gets a collection of primary resources. Example: <code><![CDATA[
89+ /// Gets a collection of primary resources.
90+ /// <para>
91+ /// Example endpoint: <code language="http"><![CDATA[
9092 /// GET /articles HTTP/1.1
9193 /// ]]></code>
94+ /// </para>
9295 /// </summary>
9396 public virtual async Task < IActionResult > GetAsync ( CancellationToken cancellationToken )
9497 {
@@ -105,9 +108,12 @@ public virtual async Task<IActionResult> GetAsync(CancellationToken cancellation
105108 }
106109
107110 /// <summary>
108- /// Gets a single primary resource by ID. Example: <code><![CDATA[
111+ /// Gets a single primary resource by ID.
112+ /// <para>
113+ /// Example endpoint: <code language="http"><![CDATA[
109114 /// GET /articles/1 HTTP/1.1
110115 /// ]]></code>
116+ /// </para>
111117 /// </summary>
112118 public virtual async Task < IActionResult > GetAsync ( [ DisallowNull ] TId id , CancellationToken cancellationToken )
113119 {
@@ -127,12 +133,15 @@ public virtual async Task<IActionResult> GetAsync([DisallowNull] TId id, Cancell
127133 }
128134
129135 /// <summary>
130- /// Gets a secondary resource or collection of secondary resources. Example: <code><![CDATA[
136+ /// Gets a secondary resource or collection of secondary resources.
137+ /// <para>
138+ /// Example endpoints: <code language="http"><![CDATA[
131139 /// GET /articles/1/author HTTP/1.1
132- /// ]]></code> Example:
133- /// <code><![CDATA[
140+ /// ]]></code>
141+ /// <code language="http" ><![CDATA[
134142 /// GET /articles/1/revisions HTTP/1.1
135143 /// ]]></code>
144+ /// </para>
136145 /// </summary>
137146 public virtual async Task < IActionResult > GetSecondaryAsync ( [ DisallowNull ] TId id , [ PreserveEmptyString ] string relationshipName ,
138147 CancellationToken cancellationToken )
@@ -156,13 +165,15 @@ public virtual async Task<IActionResult> GetSecondaryAsync([DisallowNull] TId id
156165 }
157166
158167 /// <summary>
159- /// Gets a relationship value, which can be a <c>null</c>, a single object or a collection. Example:
160- /// <code><![CDATA[
168+ /// Gets a relationship value, which can be a <c>null</c>, a single object or a collection.
169+ /// <para>
170+ /// Example endpoints: <code language="http"><![CDATA[
161171 /// GET /articles/1/relationships/author HTTP/1.1
162- /// ]]></code> Example:
163- /// <code><![CDATA[
172+ /// ]]></code>
173+ /// <code language="http" ><![CDATA[
164174 /// GET /articles/1/relationships/revisions HTTP/1.1
165175 /// ]]></code>
176+ /// </para>
166177 /// </summary>
167178 public virtual async Task < IActionResult > GetRelationshipAsync ( [ DisallowNull ] TId id , [ PreserveEmptyString ] string relationshipName ,
168179 CancellationToken cancellationToken )
@@ -186,9 +197,12 @@ public virtual async Task<IActionResult> GetRelationshipAsync([DisallowNull] TId
186197 }
187198
188199 /// <summary>
189- /// Creates a new resource with attributes, relationships or both. Example: <code><![CDATA[
200+ /// Creates a new resource with attributes, relationships or both.
201+ /// <para>
202+ /// Example endpoint: <code language="http"><![CDATA[
190203 /// POST /articles HTTP/1.1
191204 /// ]]></code>
205+ /// </para>
192206 /// </summary>
193207 public virtual async Task < IActionResult > PostAsync ( [ FromBody ] TResource resource , CancellationToken cancellationToken )
194208 {
@@ -233,9 +247,12 @@ private string GetLocationUrl(string resourceId)
233247 }
234248
235249 /// <summary>
236- /// Adds resources to a to-many relationship. Example: <code><![CDATA[
250+ /// Adds resources to a to-many relationship.
251+ /// <para>
252+ /// Example endpoint: <code language="http"><![CDATA[
237253 /// POST /articles/1/revisions HTTP/1.1
238254 /// ]]></code>
255+ /// </para>
239256 /// </summary>
240257 /// <param name="id">
241258 /// Identifies the left side of the relationship.
@@ -274,9 +291,12 @@ public virtual async Task<IActionResult> PostRelationshipAsync([DisallowNull] TI
274291
275292 /// <summary>
276293 /// Updates the attributes and/or relationships of an existing resource. Only the values of sent attributes are replaced. And only the values of sent
277- /// relationships are replaced. Example: <code><![CDATA[
294+ /// relationships are replaced.
295+ /// <para>
296+ /// Example endpoint: <code language="http"><![CDATA[
278297 /// PATCH /articles/1 HTTP/1.1
279298 /// ]]></code>
299+ /// </para>
280300 /// </summary>
281301 public virtual async Task < IActionResult > PatchAsync ( [ DisallowNull ] TId id , [ FromBody ] TResource resource , CancellationToken cancellationToken )
282302 {
@@ -304,13 +324,15 @@ public virtual async Task<IActionResult> PatchAsync([DisallowNull] TId id, [From
304324 }
305325
306326 /// <summary>
307- /// Performs a complete replacement of a relationship on an existing resource. Example:
308- /// <code><![CDATA[
327+ /// Performs a complete replacement of a relationship on an existing resource.
328+ /// <para>
329+ /// Example endpoints: <code language="http"><![CDATA[
309330 /// PATCH /articles/1/relationships/author HTTP/1.1
310- /// ]]></code> Example:
311- /// <code><![CDATA[
331+ /// ]]></code>
332+ /// <code language="http" ><![CDATA[
312333 /// PATCH /articles/1/relationships/revisions HTTP/1.1
313334 /// ]]></code>
335+ /// </para>
314336 /// </summary>
315337 /// <param name="id">
316338 /// Identifies the left side of the relationship.
@@ -347,9 +369,12 @@ public virtual async Task<IActionResult> PatchRelationshipAsync([DisallowNull] T
347369 }
348370
349371 /// <summary>
350- /// Deletes an existing resource. Example: <code><![CDATA[
372+ /// Deletes an existing resource.
373+ /// <para>
374+ /// Example endpoint: <code language="http"><![CDATA[
351375 /// DELETE /articles/1 HTTP/1.1
352376 /// ]]></code>
377+ /// </para>
353378 /// </summary>
354379 public virtual async Task < IActionResult > DeleteAsync ( [ DisallowNull ] TId id , CancellationToken cancellationToken )
355380 {
@@ -369,9 +394,12 @@ public virtual async Task<IActionResult> DeleteAsync([DisallowNull] TId id, Canc
369394 }
370395
371396 /// <summary>
372- /// Removes resources from a to-many relationship. Example: <code><![CDATA[
397+ /// Removes resources from a to-many relationship.
398+ /// <para>
399+ /// Example endpoint: <code language="http"><![CDATA[
373400 /// DELETE /articles/1/relationships/revisions HTTP/1.1
374401 /// ]]></code>
402+ /// </para>
375403 /// </summary>
376404 /// <param name="id">
377405 /// Identifies the left side of the relationship.
0 commit comments