What is the better way to make API with Rails? -
what better way create api rails:
- create mountable rails engine in main application. in routes set url path api: example.com/api/v1.
- 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
Post a Comment