Documentation: Create iTwin Share API page - default expiry is in the past #121
r-veenstra
started this conversation in
Ideas
Replies: 1 comment 2 replies
|
You're right, this is kind of problematic if people are just testing around in the Dev portal. I don't think the constraints of the APIM documentation allow us to dynamically update the date with the maximum expiry. However I can update the sample body to avoid this. Removing it all together would technically work, but for the sake of having people realize that a schema for the body exists it might be better to include both properties - the shareContract which is 'Default' and the expiration which can be marked as null. {
"shareContract": "Default",
"expiration": null
} |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
The Create iTwin Share page is useful for generating keys by visiting https://developer.bentley.com/apis/access-control-v2/operations/create-itwin-share/ and clicking try it out.
By default, the request body is populated with a date set in the past. This causes the request generation to fail unless the user manually updates the date, or removes the request body altogether (defaulting to the max expiry)
Could we have one of these behaviours instead?
a) Have the request body be blank and rely on the maximum expiry to be generated automatically
b) Show the request body with a date, but update the date to be the maximum expiry rather than one in the past
All reactions