I would like to open the Rails 2.3 application (hosted on Heroku) for developers. I thought of two ways of doing this:
I know this is a vague question. Do you have any good articles or architectural patterns that could help me?
Thank,
Kevin
. . API .
website.com/api/widget/
website.com/api/another_service/
, API-.
, , API.
class WidgetController < ActionController::Base include 'api_keyable' :before_filer :validate_api_key def create #However you create a widget from the params. # respond to XML, YAML, JSON, whatever end end
website.com/api/widgets - website/api/wadgets, , , .
Source: https://habr.com/ru/post/1781224/More articles:https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1781219/how-to-get-mac-desktop-size&usg=ALkJrhjVG6JNJ46C1OlBu2osANJe2989QQAndroid: creating a custom container - javaWhat parts of Google Chrome are not open source? What for? - google-chromePrevent Parent BackColor Inheritance Button - c #Why does the invoke () method in InvocationHandler have an Object proxy parameter? - javaLeft bracket '(' found at 'foo.cpp' was not matched correctly - c ++DNS Round Robin очень медленные запросы в сценарии перехода на другой ресурс - roundingPrivate constructor and inheritance (Java) - javaDynamic Jfreechart - javaOpening TCP at the same time - c ++All Articles