CartoDB / cartodb-rb-client

Ruby client for cartodb API
BSD 4-Clause "Original" or "Old" License
24 stars 21 forks source link

Support v2 of cartodb's API #13

Open dimroc opened 12 years ago

dimroc commented 12 years ago

All generated http requests seem to only hit v1 of the API, as evidenced in the vcr yml files.

Ferdev commented 12 years ago

Yeah, actually this is a known issue, but I didn't have time to fix it. The problem is that the ruby client uses both the SQL API (v2) and the REST API (v1) and at the very beginning of the project, I assumed that there'd be only one API.

I'd like to switch all the ruby client to the SQL API, but currently it's imposible since some API calls (like the create table one) can cause integrity problems, so that kind of calls must be performed using the REST API. We're working on fixing that issue in CartoDB, so I'll leave it as it is right now until we fix CartoDB and then, I'd switch the ruby client to use the SQL API completely and drop the REST API.

tailic commented 12 years ago

Ferdev, is this a Problem with CartoDB/SQL API or with this specific ruby client for cartodb?

Ferdev commented 12 years ago

Sorry tailic, I missed your message.

It's a problem with the ruby client, the SQL API is pretty fine :)