@http-forge/core 0.2.4 → 0.2.5
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 +19 -0
- package/dist/index.js +90 -88
- package/dist/index.mjs +89 -87
- package/dist/infrastructure/openapi/openapi-exporter.d.ts +31 -0
- package/dist/infrastructure/openapi/openapi-importer.d.ts +10 -0
- package/dist/types/types.d.ts +18 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -78,6 +78,25 @@ forge.setEnvironment({
|
|
|
78
78
|
const result = await forge.execute(request, collection);
|
|
79
79
|
```
|
|
80
80
|
|
|
81
|
+
### URL Path Parameters
|
|
82
|
+
|
|
83
|
+
If your request URL uses Express-style route parameters, provide values using the request `params` field.
|
|
84
|
+
|
|
85
|
+
```typescript
|
|
86
|
+
const request = {
|
|
87
|
+
name: 'Redirect Test',
|
|
88
|
+
method: 'GET',
|
|
89
|
+
url: '{{baseUrl}}/redirect/:redirectNumber',
|
|
90
|
+
params: {
|
|
91
|
+
redirectNumber: '3'
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
const result = await forge.execute(request, collection);
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
The engine will substitute `:redirectNumber` before execution, while still resolving environment variables and dynamic template expressions.
|
|
99
|
+
|
|
81
100
|
### With Custom Configuration
|
|
82
101
|
|
|
83
102
|
```typescript
|