Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
© Autodesk, Inc. 2017
Integrating Forge Data Management API with
Other Storage Providers
Augusto Goncalves
Forge Developer...
© Autodesk, Inc. 2017
Class Summary
Data is spread over different providers, so you often need to around to take advantage...
© Autodesk, Inc. 2017© Autodesk, Inc. 2017
Key Learning Objectives
At the end of this class you’ll be able to:
 Understan...
© Autodesk, Inc. 2017© Autodesk, Inc. 2017
Forge Data Structure
© Autodesk, Inc. 2017
Overview
• User data, needs 3-legged token
•
Hubs, Projects, Folders, Items (and versions)
Abstracti...
© Autodesk, Inc. 2017
Overview
API endpoints
Projects, Data & OSS endpoints, here are a few (of many):
/projects/
 Hubs /...
© Autodesk, Inc. 2017
 Hubs
 Enterprise (shared with me): hubs:autodesk.core:Hub
 Personal: hubs:autodesk.a360:Personal...
© Autodesk, Inc. 2017
 Tutorial: https://developer.autodesk.com/en/docs/data/v2/tutorials/upload-
file/
 POST projects/:...
© Autodesk, Inc. 2017
 BIM 360 Team
 POST projects/:project_id/folders
3-legged
2-legged
 BIM 360 Docs
 POST projects/...
© Autodesk, Inc. 2017© Autodesk, Inc. 2017
Transferring Files
© Autodesk, Inc. 2017
After all, what is a transfer between servers?
• Servers don’t know each other > need a server in th...
© Autodesk, Inc. 2017
Why AWS Lambda?
Benefits of ”server-less” approach
Scalable
Automatically scales your application by...
© Autodesk, Inc. 2017© Autodesk, Inc. 2017
Webapp
1. User selects a file
2. Get the href of the file
Transfer from Autodes...
© Autodesk, Inc. 2017© Autodesk, Inc. 2017
Webapp
1. User selects a file
2. Get the href of the file
Transfer from Storage...
© Autodesk, Inc. 2017© Autodesk, Inc. 2017
What’s next?
© Autodesk, Inc. 2017© Autodesk, Inc. 2017
Sample apps
Source: github.com/Autodesk-Forge/bim360appstore-data.management-no...
© Autodesk, Inc. 2017© Autodesk, Inc. 2017
Further reading
• Developer Portal – Documentation
developer.autodesk.com
• For...
© Autodesk, Inc. 2017
Thank you!
augusto.goncalves@autodesk.com
augustomaia
Autodesk and the Autodesk logo are registered trademarks or trademarks of Autodesk, Inc., and/or its subsidiaries and/or a...
Upcoming SlideShare
Loading in …5
×

Forge - DevCon 2017, Darmstadt Germany: Integrating Forge Data Management API with other storage providers

509 views

Published on

Integrating Forge Data Management API with other storage providers, with Augusto Goncalves

Published in: Technology
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Be the first to like this

Forge - DevCon 2017, Darmstadt Germany: Integrating Forge Data Management API with other storage providers

  1. 1. © Autodesk, Inc. 2017 Integrating Forge Data Management API with Other Storage Providers Augusto Goncalves Forge Developer Advocate at Autodesk November, 2017
  2. 2. © Autodesk, Inc. 2017 Class Summary Data is spread over different providers, so you often need to around to take advantage of each web service. Using the Forge Data Management API you can access the storage structure, download and upload files from A360 Team, BIM 360 Docs and Fusion Team. And this allows integration with other providers using apps and programming. This class will cover the basics to create your own storage provider integration and show samples with Box, Google Drive and Dropbox.
  3. 3. © Autodesk, Inc. 2017© Autodesk, Inc. 2017 Key Learning Objectives At the end of this class you’ll be able to:  Understand how files are stored with Forge  Learn steps to download, upload, and interact with files via the Data Management API Learn about integration with other web-services providers  Review storage providers’ common practices (Box, Google Drive, Dropbox)  Learn how to transfer files according to provider rules
  4. 4. © Autodesk, Inc. 2017© Autodesk, Inc. 2017 Forge Data Structure
  5. 5. © Autodesk, Inc. 2017 Overview • User data, needs 3-legged token • Hubs, Projects, Folders, Items (and versions) Abstraction on top of OSS • Access to: BIM 360 Team & Docs Collaboration for Revit Fusion 360 OSS (app bucket)
  6. 6. © Autodesk, Inc. 2017 Overview API endpoints Projects, Data & OSS endpoints, here are a few (of many): /projects/  Hubs /project/v1/hubs  Projects /project/v1/hubs/:hub_id/projects /data/  Folders /data/v1/projects/:project_id/folders/:folder_id/contents  Items /data/v1/projects/:project_id/items/:item_id  Version /data/v1/projects/:project_id/versions/:version_id /oss/  Buckets /oss/v2/buckets (POST to create, GET to list)  Upload /oss/v2/buckets/:bucketKey/objects/:objectName
  7. 7. © Autodesk, Inc. 2017  Hubs  Enterprise (shared with me): hubs:autodesk.core:Hub  Personal: hubs:autodesk.a360:PersonalHub  BIM 360 Docs account: hubs:autodesk.bim360:Account  Projects  Other projects: projects:autodesk.core:Project  BIM 360 Docs Projects: projects:autodesk.bim360:Project  Items  Folders folders:autodesk.core:Folder or folders:autodesk.bim360:Folder  Files items:autodesk.core:File or items:autodesk.bim360:File  Others items:autodesk.bim360:Document items:autodesk.bim360:ReviewDocument BIM 360: Listing files About the attributes.extension.type
  8. 8. © Autodesk, Inc. 2017  Tutorial: https://developer.autodesk.com/en/docs/data/v2/tutorials/upload- file/  POST projects/:project_id/items Creates a new item (and first version)  data.attribute.extension.type "items:autodesk.core:File" : "items:autodesk.bim360:File"  included[0].attribute.extension.type "versions:autodesk.core:File" : "versions:autodesk.bim360:File"  POST projects/:project_id/versions Creates a new version for an item  data.attribute.extension.type "versions:autodesk.core:File" : "versions:autodesk.bim360:File" BIM 360: Upload a file
  9. 9. © Autodesk, Inc. 2017  BIM 360 Team  POST projects/:project_id/folders 3-legged 2-legged  BIM 360 Docs  POST projects/:project_id/commands 3-legged 2-legged only with x-user-id (as of August/2017) BIM 360: Create Folder
  10. 10. © Autodesk, Inc. 2017© Autodesk, Inc. 2017 Transferring Files
  11. 11. © Autodesk, Inc. 2017 After all, what is a transfer between servers? • Servers don’t know each other > need a server in the middle that knows both Source Destination Action
  12. 12. © Autodesk, Inc. 2017 Why AWS Lambda? Benefits of ”server-less” approach Scalable Automatically scales your application by running code in response to each trigger Multiple transfers Code runs in parallel and processes each trigger individually, scaling precisely with the size of the workload On-demand Runs your code without requiring you to provision servers Cheaper (for high demanding tasks) Pay for only the compute time you consume, avoid a big server idle most of the time
  13. 13. © Autodesk, Inc. 2017© Autodesk, Inc. 2017 Webapp 1. User selects a file 2. Get the href of the file Transfer from Autodesk to Storage 3. Check destination folder 4. Create file ”place holder” 5. Prepare source and destination URLs with Authorization header 6. Send ”job” to AWS Lambda 7. Lambda download from source, upload to destination 8. Send ”job complete” notification
  14. 14. © Autodesk, Inc. 2017© Autodesk, Inc. 2017 Webapp 1. User selects a file 2. Get the href of the file Transfer from Storage to Autodesk 3. Check destination folder 4. Create file ”place holder” (i.e. storage location) 5. Prepare source and destination URLs with Authorization header 6. Send ”job” to AWS Lambda 7. Lambda download from source, upload to destination 8. Send ”job complete” notification9. Create Version on Autodesk
  15. 15. © Autodesk, Inc. 2017© Autodesk, Inc. 2017 What’s next?
  16. 16. © Autodesk, Inc. 2017© Autodesk, Inc. 2017 Sample apps Source: github.com/Autodesk-Forge/bim360appstore-data.management-nodejs-transfer.storage box dropbox egnyte google onedrive bim360 .autodesk.io (BIM 360 AppStore)
  17. 17. © Autodesk, Inc. 2017© Autodesk, Inc. 2017 Further reading • Developer Portal – Documentation developer.autodesk.com • Forge Blog forge.autodesk.com/blog • Samples at Github github.com/Autodesk-Forge
  18. 18. © Autodesk, Inc. 2017 Thank you! augusto.goncalves@autodesk.com augustomaia
  19. 19. Autodesk and the Autodesk logo are registered trademarks or trademarks of Autodesk, Inc., and/or its subsidiaries and/or affiliates in the USA and/or other countries. All other brand names, product names, or trademarks belong to their respective holders. Autodesk reserves the right to alter product and services offerings, and specifications and pricing at any time without notice, and is not responsible for typographical or graphical errors that may appear in this document. © 2017 Autodesk. All rights reserved.

×