Skip to content

Commit 2e4229a

Browse files
specifica il comportamento delle wildcard nei baseurl
1 parent 8abb5a6 commit 2e4229a

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,17 @@ const token = await client.generateToken(scopes);
4343

4444
// The client is now ready to make requests
4545
```
46-
### Undefined methods
46+
Please note that wildcards for **base urls** are not supported at the moment:
47+
```js
48+
// This will work
49+
const token = await client.generateToken('*:pa.openapi.it/*');
50+
// This is equivalent to the previous (just a shortcut)
51+
const token = await client.generateToken('pa.openapi.it');
52+
53+
// This will NOT work
54+
const token = await client.generateToken('*:*/*');
55+
```
56+
### Heads up: `undefined` methods
4757
The client will instantiate **only the instances needed** based on the provided token: if you get `undefined` method when you attempt to run a request, please check if you have all the required permissions.
4858

4959
## Make requests

0 commit comments

Comments
 (0)