Giter Club home page Giter Club logo

aps-dx-explorer's Introduction

Aps Data Exchange Explorer

The sample is using this GraphiQL project that makes it really easy to discover the Data Exchange API through GraphQL. It also integrates with the Viewer in order contextualize the query results.

Thumbnail

Thumbnail

Setting up the app

  • clone this repository or download
  • restore the packages
  • replace the variable values at appsettings.Development.json with your own
{
  "APS_CLIENT_ID": "YOUR CLIENT ID",
  "APS_CLIENT_SECRET": "YOUR CLIENT SECRET",
  "APS_CALLBACK_URL": "http://localhost:8080/api/auth/callback"
}

Make sure your APS app also uses the same callback url!

Running the app

As instructed in the console, you'll need to open a web browser and navigate to http://localhost:8080 in order to log into your Autodesk account

Output

Once you logged in with your Autodesk account in the browser, this should appear:

GraphiQL

This sample comes by default with the step-by-step tutorial queries in multiple tabs. You can run the queries available in these tabs and add your own.

Queries

You can also check the documentation

Docs

Viewer is controlled by the toggle switch in the header. It will load the model based on the item or version Id specified by the input.

workflow


Known issues

  1. The Viewer might have some trouble on resizing on Safari. Please use it with Chrome or Edge.

Tips & Tricks

Tips

  1. You need to be logged in order to use any feature in this sample.
  2. Exchange URN field accepts URN of an exchange. From there, it'll load the view in the Viewer based on the exchange's contract
  3. Make sure the Exchange Id and URN are related to the same exchange.
  4. The filter extension looks for source ids in the last query response, then look for externalIds in the loaded model to isolate them.

Troubleshooting

  1. Cannot load viewer: Make sure you're logged in and using a valid exchange Id.

  2. Filter Extension doesn't highlight elements: Make sure you're using the exchange urn compatible with the exchange id used in the queries.

Written by

aps-dx-explorer's People

Contributors

apprentice3d avatar joaomartins-callmejohn avatar petrbroz avatar suraj0223 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.