Justin, I've done it before, it works really well. The one thing you need to keep in mind is that http is a slow interface. So you might need to think long and hard about how to appropriately cache the responses from the API so that you can avoid hitting it unless entirely necessary.
On 31/10/2011, at 7:58 PM, Chris Rode wrote: > Hi Justin > > In the past I have used either ActiveResource (if the restful interface > conforms to the standards that ActiveResource expects) or the rest-client gem. > > One problem I have run into though is the problem of creating data to test > against. Sometimes this isn't possible, especially in endpoints you dont > control, or read-only endpoints. In these cases I used WebMock or FakeWeb to > mock the needed responses from the end-point. This allows you to test the > code on your side without testing the end-point itself. > > I hope this helps > > Chris > > On 31 October 2011 10:18, Justin Urbanski <[email protected]> wrote: > All, > > We have a requirement to build a UI without a DB. Instead of a DB there is > another RESTful interface. What are people's opinions on this? > How would you actually do this in rails? > > Thanks, > Justin > > -- > You received this message because you are subscribed to the Google Groups > "Ruby or Rails Oceania" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rails-oceania?hl=en. > > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby or Rails Oceania" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rails-oceania?hl=en. Cheers, Gareth Townsend http://www.garethtownsend.info -- You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en.
