You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: endpoints/EntryEndpoint.ts
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -11,10 +11,10 @@ export class EntryEndpoint extends Endpoint {
11
11
/**
12
12
* Creates a new entry endpoint.
13
13
* @param uri The base URI of the REST API.<br>Missing trailing slash will be appended automatically.
14
-
* @param serializer Controls the serialization of entities sent to and received from the server.<br>Defaults to {@link JsonSerializer} if undefined.
15
-
* @param errorHandler Handles errors in HTTP responses.<br>Defaults to {@link DefaultErrorHandler} if undefined.
16
-
* @param linkExtractor Detects links in HTTP responses.<br>Defaults to {@link HeaderLinkExtractor} and {@link HalLinkExtractor} combined via {@link AggregateLinkExtractor} if undefined.
17
-
* @param httpClient The HTTP client used to communicate with the REST API.<br>Defaults to {@link FetchHttpClient} if undefined.
14
+
* @param serializer Controls the serialization of entities sent to and received from the server.<br>Defaults to {@linkserializers!JsonSerializer} if undefined.
15
+
* @param errorHandler Handles errors in HTTP responses.<br>Defaults to {@linkerrors!DefaultErrorHandler} if undefined.
16
+
* @param linkExtractor Detects links in HTTP responses.<br>Defaults to {@linklinks!HeaderLinkExtractor} and {@linklinks!HalLinkExtractor} combined via {@linklinks!AggregateLinkExtractor} if undefined.
17
+
* @param httpClient The HTTP client used to communicate with the REST API.<br>Defaults to {@linkhttp!FetchHttpClient} if undefined.
18
18
*/
19
19
constructor(
20
20
uri: URL|string,
@@ -37,10 +37,10 @@ export class EntryEndpoint extends Endpoint {
37
37
/**
38
38
* Fetches meta data such as links from the server.
* Performs an {@link HttpMethod.Put} request on the {@link uri}. Sets {@link HttpHeader.IfMatch} if there is a cached {@link HttpHeader.ETag} to detect lost updates.
46
+
* Performs an {@linkhttp!HttpMethod.Put} request on the {@link uri}. Sets {@linkhttp!HttpHeader.IfMatch} if there is a cached {@linkhttp!HttpHeader.ETag} to detect lost updates.
47
47
* @param signal Used to cancel the request.
48
-
* @throws {@link ConcurrencyError}: The entity has changed since it was last retrieved with {@link getContent}. Your changes were rejected to prevent a lost update.
* @throws {@link NotFoundError}: {@link HttpStatusCode.NotFound} or {@link HttpStatusCode.Gone}
53
-
* @throws {@link HttpError}: Other non-success status code
48
+
* @throws {@link errors!ConcurrencyError}: The entity has changed since it was last retrieved with {@link getContent}. Your changes were rejected to prevent a lost update.
* Performs an {@link HttpMethod.Delete} request on the {@link uri}. Sets {@link HttpHeader.IfMatch} if there is a cached {@link HttpHeader.ETag} to detect lost updates.
65
+
* Performs an {@linkhttp!HttpMethod.Delete} request on the {@link uri}. Sets {@linkhttp!HttpHeader.IfMatch} if there is a cached {@linkhttp!HttpHeader.ETag} to detect lost updates.
66
66
* @param signal Used to cancel the request.
67
-
* @throws {@link ConcurrencyError}: The entity has changed since it was last retrieved with {@link getContent}. Your changes were rejected to prevent a lost update.
* @throws {@link NotFoundError}: {@link HttpStatusCode.NotFound} or {@link HttpStatusCode.Gone}
72
-
* @throws {@link HttpError}: Other non-success status code
67
+
* @throws {@link errors!ConcurrencyError}: The entity has changed since it was last retrieved with {@link getContent}. Your changes were rejected to prevent a lost update.
@@ -66,12 +66,12 @@ export class ElementEndpoint<TEntity> extends ETagEndpointBase {
66
66
* @param entity The new `TEntity`.
67
67
* @param signal Used to cancel the request.
68
68
* @returns The `TEntity` as returned by the server, possibly with additional fields set. undefined if the server does not respond with a result entity.
69
-
* @throws {@link ConcurrencyError}: The entity has changed since it was last retrieved with {@link read}. Your changes were rejected to prevent a lost update.
* @throws {@link NotFoundError}: {@link HttpStatusCode.NotFound} or {@link HttpStatusCode.Gone}
74
-
* @throws {@link HttpError}: Other non-success status code
69
+
* @throws {@link errors!ConcurrencyError}: The entity has changed since it was last retrieved with {@link read}. Your changes were rejected to prevent a lost update.
@@ -93,12 +93,12 @@ export class ElementEndpoint<TEntity> extends ETagEndpointBase {
93
93
* @param entity The `TEntity` data to merge with the existing element.
94
94
* @param signal Used to cancel the request.
95
95
* @returns The `TEntity` as returned by the server, possibly with additional fields set. undefined if the server does not respond with a result entity.
96
-
* @throws {@link ConcurrencyError}: The entity has changed since it was last retrieved with {@link read}. Your changes were rejected to prevent a lost update.
* @throws {@link NotFoundError}: {@link HttpStatusCode.NotFound} or {@link HttpStatusCode.Gone}
101
-
* @throws {@link HttpError}: Other non-success status code
96
+
* @throws {@link errors!ConcurrencyError}: The entity has changed since it was last retrieved with {@link read}. Your changes were rejected to prevent a lost update.
@@ -118,12 +118,12 @@ export class ElementEndpoint<TEntity> extends ETagEndpointBase {
118
118
* @param maxRetries The maximum number of retries to perform for optimistic concurrency before giving up.
119
119
* @param signal Used to cancel the request.
120
120
* @returns The `TEntity` as returned by the server, possibly with additional fields set. undefined if the server does not respond with a result entity.
121
-
* @throws {@link ConcurrencyError}: The maximum number of retries to perform for optimistic concurrency before giving up.
@@ -149,11 +149,11 @@ export class ElementEndpoint<TEntity> extends ETagEndpointBase {
149
149
/**
150
150
* Deletes the element.
151
151
* @param signal Used to cancel the request.
152
-
* @throws {@link ConcurrencyError}: The entity has changed since it was last retrieved with {@link read}. Your changes were rejected to prevent a lost update.
* @throws {@link NotFoundError}: {@link HttpStatusCode.NotFound} or {@link HttpStatusCode.Gone}
156
-
* @throws {@link HttpError}: Other non-success status code
152
+
* @throws {@link errors!ConcurrencyError}: The entity has changed since it was last retrieved with {@link read}. Your changes were rejected to prevent a lost update.
0 commit comments