Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

getWorkItem does not work because of incorrect resource path #12

Open
oemmes opened this issue Dec 4, 2017 · 0 comments
Open

getWorkItem does not work because of incorrect resource path #12

oemmes opened this issue Dec 4, 2017 · 0 comments

Comments

@oemmes
Copy link

oemmes commented Dec 4, 2017

Getting a work item as follows does not work:

$apiInstance = new Autodesk\Forge\Client\Api\WorkItemsApi($authObject);
$result = $apiInstance->getWorkItem($id);

The problem is that the quotation marks of the resource path around the ID are htmlencoded in the PHP source:

Instead of

$resourcePath = "/autocad.io/us-east/v2/WorkItems('{id}')";

it is

$resourcePath = "/autocad.io/us-east/v2/WorkItems('{id}')";

See here: https://github.com/Autodesk-Forge/forge-php-client/blob/master/lib/Api/WorkItemsApi.php#L322

This is also the case for all other endpoints which use the ('{id}') appendix.

We want to switch from our own API implementation to the forge-php-client but this issue prevents us from doing so.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant