What is the proper way to call a Rails API from App to App -
i have 2 different rails application , want these apps send , receive information via api. correct way this?
i trying use resource don't quite understand it: http://api.rubyonrails.org/ (i not sure how make call different methods. methods show url guess wouldn't have problem implementing, if application within same server, correct way call corresponding api method.)
is there recommended beginners resource out there?
thanks.
api.rubyonrails.org ruby on rails documentation, api of ror. want external http, rest , json api.
there many resources on building rest api's. in general have prepare endpoints application can send request , handle responses.
take i.e. on railscast using active model serializers. part give other application endpoints or change data.
normally stop here because in cases set api other applications (like mobile or javascript applications). in case need send requests. there many gems allow that, find faraday gem useful.
Comments
Post a Comment