REST API support
The IBM® Maximo® Real Estate and Facilities server provides a proxy for the portion of the Autodesk Forge REST service used by the Viewer and the BIM Model Management Tool. This resolves to browse Cross Object Resource Scripting (CORS) restrictions, and allows Maximo Real Estate and Facilities security to be applied to Forge access.
The proxy endpoints closely follow the original Forge endpoints. In most cases, the body, the result, and any error information are passed directly from the original Forge endpoint, See the referenced Forge documentation for details.
The Forge application key and secret are stored in the server HTTP session. The session must be initiated by either calling Authenticate that initializes the session with the credentials provided in the call. Or by calling GetAuthToken. This initializes the session using the credentials stored in the Maximo Real Estate and Facilities database in the triBIMConfig business object.
Authenticate
Return a Forge auth token with scope viewables:read, which is suitable for use by the Autodesk Platform Services Viewer. If successful, this also initializes the HTTP session with the Provide key and secret. These credentials are used for subsequent Forge service calls.
| Path | /api/p/v1/forge/token |
|---|---|
| Method | GET |
| Request Parameters |
|
Get Auth Token
Return a Forge auth token with scope viewables:read, which is suitable for use by the Autodesk Platform Services Viewer. The application key and secret stored in the Maximo Real Estate and Facilities database are used to request the token. On success, the credentials are copied into the current HTTP session.
| Path | /api/p/v1/forge/auth/token |
|---|---|
| Method | GET |
| Body | The result from the Forge service Authenticate Endpoint or: |
Get Application Key
Gets the application key currently associated with the HTTP session, if there is one, and whether or not the session has successfully authenticated with the Forge service.
| Path | /api/p/v1/forge/auth/key |
|---|---|
| Method | GET |
| Body |
JSON
|
Logout
Clears the Forge credentials for the HTTML session, which disconnects the session from the Forge service. This is only needed or useful if the session was created by Authenticate so session-specific credentials were provided.
| Path | /api/p/v1/forge/auth/logout |
|---|---|
| Method | POST |
| Return | None |
Get Bucket List
Returns all the buckets associated with the application.
| Path | /api/p/v1/forge/bucket |
|---|---|
| Method | GET |
| Request Parameters | region: The region where the bucket resides. Acceptable values: US, EMEA Default: US |
Query Bucket Details
Returns detailed information about the specified bucket.
| Path | /api/p/v1/forge/bucket/<bucketkey> |
|---|---|
| Method | GET |
| Path Parameters | bucketkey: URL-encoded bucket key for which to get details |
Create Bucket
Creates a new bucket.
| Path | /api/p/v1/forge/bucket/<bucketkey> |
|---|---|
| Method | POST |
| Path Parameters | bucketkey: URL-encoded bucket key for which to get details |
| Request Parameters |
|
Delete Bucket
Deletes the specified bucket that also deletes all models and bubbles associated with the bucket.
Undocumented Forge Endpoint
| Path | /api/p/v1/forge/bucket/<bucketkey> |
|---|---|
| Method | DELETE |
| Path Parameters | bucketkey: |
Grand Rights to a Bucket
Grants rights to a different application key to access the bucket. Currently of limited functions.
Undocumented Forge Endpoint
| Path | /api/p/v1/forge/bucket/<bucketkey>/rights/<serviceId> |
|---|---|
| Method | |
|
|
| access: |
Revoke Rights to a Bucket
Revokes rights granted by Grant.
Undocumented Forge Endpoint
| Path | /api/p/v1/forge/bucket/<bucketkey>/rights/<serviced> |
|---|---|
| Method | DELETE |
| Path Parameters |
|
Get Model List
Gets a filtered and paged list of models for the specified bucket.
| Path | /api/p/v1/forge/model/< bucketkey> |
|---|---|
| Method | GET |
| Path Parameters | |
| bucketkey Request Parameters |
|
Query Model Details
Returns detailed information about a single model file.
| Path | /api/p/v1/forge/model/<bucketkey>/object |
|---|---|
| Method | GET |
| Path Parameters | bucketkey: URL-encoded bucket key for which to get details |
| Request Parameters | objectKey: URL-encoded object name to get details for |
Upload Model
Uploads a model file to the selected bucket.
| Path | /api/p/v1/forge/model/<bucketkey>/object |
|---|---|
| Method | PUT |
| Path Parameters | bucketkey: URL-encoded bucket key for which to get details |
| Request Parameters | objectKey: URL-encoded object name to get details for |
Delete Model
Deletes a model. If the model has been translated to a viewable bubble, the bubble is not deleted.
| Path | /api/p/v1/forge/model/<bucketkey>/object |
|---|---|
| Method | DELETE |
| Path Parameters | bucketkey: URL-encoded bucket key for which to get details |
| Request Parameters | objectKey: URL-encoded object name to get details for |
Query Bubble Details
Query details about a translated model, or a model in the process of being translated. This can be used to get status and progress on the translation process.
| Path | /api/p/v1/forge/bubble |
|---|---|
| Method | POST |
| Request Parameters | objectKey: URL-encoded object name to get details for |
Delete Bubble
Delete the viewable bubble resulting from model translation.
| Path | /api/p/v1/forge/bubble |
|---|---|
| Method | DELETE |
Translate Model to Bubble
Translate a model file into a viewable bubble. The translated format is required for use with the APS Viewer.
| Path | /api/p/v1/forge/bubble/translate |
|---|---|
| Method | POST |
| Request Parameters |
|
Get Thumbnail
Retrieves the thumbnail image for the translated bubble. This URL is suitable for an SRC URL attribute of an HTML <img> element.
| Path | /api/p/v1/forge/bubble/<urn>/thumbnail |
|---|---|
| Method | POST |
| Path Parameters | urn: The Base64-encoded (URL-safe) design URN Return: octet steam with thumbnail image. |