Skip to content

Commit 5d60287

Browse files
kriszypcb1kenobi
andauthored
Update docs/technical-details/reference/resource.md
Co-authored-by: Chris Barber <[email protected]>
1 parent a444b8e commit 5d60287

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/technical-details/reference/resource.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ for await (let record of results) {
562562

563563
### `RequestTarget`
564564
The `RequestTarget` class is used to represent a URL path that can be mapped to a resource. This is used by the REST interface to map a URL path to a resource class. All REST methods are called with a `RequestTarget` as the first argument, which is used to determine which record or entry to access or modify. Methods on a `Resource` class can be called with a primary key as a string or number value as the first argument, to access or modify a record by primary key, which will work with all the default methods. The static methods will be transform the primary key to a `RequestTarget` instance to call the instance methods for argument normalization.
565-
When RequestTarget is constructed with a URL path (from the REST methods). The static methods will also automatically parse the path to a `RequestTarget` instance, including parsing the search string into query parameters. The `RequestTarget` is a subclass of `URLSearchParams` and can be used to access the query parameters through the `get` method or by iterating the target.
565+
When RequestTarget is constructed with a URL path (from the REST methods). The static methods will also automatically parse the path to a `RequestTarget` instance, including parsing the search string into query parameters.
566566
Below are the properties and methods of the `RequestTarget` class:
567567

568568
* `pathname` - The path of the URL relative to the resource path that matched this request. This excluded the query/search string

0 commit comments

Comments
 (0)