@seamapi/http 1.35.1 → 1.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -512,6 +512,18 @@ const devices = await seam.client.get<DevicesListResponse>('/devices/list')
512
512
  An Axios compatible client may be provided to create a `SeamHttp` instance.
513
513
  This API is used internally and is not directly supported.
514
514
 
515
+ #### Alternative endpoint path interface
516
+
517
+ The `SeamHttpEndpoints` class offers an alternative path-based interface to every API endpoint.
518
+ Each endpoint is exposed as simple property that returns the corresponding method from `SeamHttp`.
519
+
520
+ ```ts
521
+ import { SeamHttpEndpoints } from '@seamapi/http/connect'
522
+
523
+ const seam = new SeamHttpEndpoints()
524
+ const devices = await seam['/devices/list']()
525
+ ```
526
+
515
527
  #### Inspecting the Request
516
528
 
517
529
  All client methods return an instance of `SeamHttpRequest`.