What is the better way to make API with Rails? -


what better way create api rails:

  1. create mountable rails engine in main application. in routes set url path api: example.com/api/v1.
  2. create separately app rails-api gem , make subdomain api: api.example.com/v1.

see this. might helpful.

http://railscasts.com/episodes/350-rest-api-versioning

http://railscasts.com/episodes/350-rest-api-versioning?view=asciicast


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -