You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Parse response from partsregistry. Currently they just give back an HTML page, not data... Plan is to grab the parts returned by the search and then query the XML API for more specific information.
The text was updated successfully, but these errors were encountered:
We were discussing about having this all on the client-side. I liked this idea.
I was trying to make ajax requests to partsregistry.org from the client side (all the code in the assets/js folder) but was getting errors from something called Access-Control-Allow-Origin. This has something to do with CORS. I was looking around and it seemed like partsregistry itself would have to allow us to make these ajax requests.
Since that wasn't working I moved the searching code from the client to the server (see all the code that is not in assets/js, namely brickSearchService.coffee) and was able to make requests to partsregistry from there.
I'm not sure why we can make requests to partsregistry from the server but not from the client. They're both "cross-domain" and outside of partsregistry. If anyone can answer this I'll give you a cookie.
The way it is now, the client side will make requests to our server, which will then do the actual search request to partsregistry, and then pass the data back to the client.
We need good ways of accessing data from partsregistry.org.
http://partsregistry.org/Registry_API
http://igempartview.appspot.com/api.jsp
The text was updated successfully, but these errors were encountered: