Autodesk-Forge / forge-api-nodejs-client

Forge Node.js SDK: Provides Node.js SDK to help you easily integrate Forge REST APIs into the application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`FoldersApi.postFolder` is missing pathParameter for `project_id`

alekperos opened this issue · comments

Hi dear team,

The postFolder method of FoldersApi does not have a proper definition for pathParams which should include project_id.
https://github.com/Autodesk-Forge/forge-api-nodejs-client/blob/master/src/api/FoldersApi.js#L329 should be something like this:

var pathParams = { project_id: body.projectID };

Also the documentation for:
https://github.com/Autodesk-Forge/forge-api-nodejs-client/blob/master/docs/CreateFolder.md
...is missing.

@alekperos - Thanks for the input, we'll make sure to fix that

@alekperos Fixed: forge-apis@0.4.1

Regarding documentation, please refer to this page:
https://developer.autodesk.com/en/docs/data/v2/reference/http/projects-project_id-folders-POST/