Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
where is the JSON returned by the API documented
I'm trying to export from onshape to URDF/SDF for import into a Drake simulation (https://drake.mit.edu). I've been attempting to use this tool (https://github.com/Rhoban/onshape-to-robot) but it has some bugs: when loading in my assembly exported to an SDF, the joints are in the wrong location, and when my loading my assembly exported to a URDF, links have the wrong 3D pose aka 3D transformation. The onshape-to-robot developers do not seem responsive, so I'm attempting to get this working myself but have been unable to locate documentation for the JSON description for the assembly features returned through the onshape API.
Is the documentation describing the JSON returned by the API hiding in plain sight?
Answers
Have you checked out Glassworks and the API docs?
I have. Under the former, I see, for instance (clicking under "Assembly" and then "features", a whole lot of JSON, e.g.:
(apologies for the compact representation of this output)
And in the latter, I see various helpful things like, getting started, intro to the REST API, etc. But I'm not finding the documentation for- in the JSON above- the meaning of "parametricInstanceFeature", "featureListFieldIndex", "deterministicIds", etc. I feel like it must be in an obvious place, but I'm still not seeing it.
@evan_drumwright ,
The documentation for the response is accessible via the "schema" option. In the responses section → click on Schema → Click on the > to expand
We are continuously working on improving our API documentation & you may not find all the fields documented.
Hi @evan_drumwright ! You can find instructions for viewing response body docs here: https://onshape-public.github.io/docs/api-intro/explorer/#view-response-body-docs
Let me know if there's anything else regarding Glassworks navigation that would be helpful for that page.