@adsk-platform/httpclient 0.1.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 ADDED
@@ -0,0 +1,41 @@
1
+ # Autodesk.Common.HttpClient
2
+
3
+ A TypeScript HTTP client library for Autodesk APS SDK, providing common utilities for making HTTP requests.
4
+
5
+ ## Features
6
+
7
+ - Simplified HTTP request handling
8
+ - Typed request and response interfaces
9
+ - Error handling utilities
10
+ - Easily extendable for custom needs
11
+
12
+ ## Installation
13
+
14
+ ```bash
15
+ npm install @adsk-platform/httpclient
16
+ ```
17
+
18
+ ## Usage
19
+
20
+ ```typescript
21
+ import { HttpClientFactory } from '@adsk-platform/httpclient';
22
+
23
+ const client = HttpClientFactory.create();
24
+ const response = await client.executeFetch('https://api.example.com/data', { method: 'GET' });
25
+ console.log(response.data);
26
+ ```
27
+
28
+ ## API
29
+
30
+ - `HttpClient.get(url, options?)`
31
+ - `HttpClient.post(url, data, options?)`
32
+ - `HttpClient.put(url, data, options?)`
33
+ - `HttpClient.delete(url, options?)`
34
+
35
+ ## Contributing
36
+
37
+ Contributions are welcome! Please submit issues or pull requests via GitHub.
38
+
39
+ ## License
40
+
41
+ This project is licensed under the MIT License.