Consuming non-REST APIs in Rails with ActiveResource

前端 未结 3 533
眼角桃花
眼角桃花 2021-02-04 20:48

I\'m writing a client that consumes a non-REST API (i.e. GET site.com/gettreasurehunts), which requires that I specify all parameters (even the resource ID) in the request\'s HT

3条回答
  •  逝去的感伤
    2021-02-04 21:26

    I don't think there is a way to do this with ActiveResource, for these cases I just use Net::HTTP and Nokogiri

提交回复
热议问题