What is the better way to create API with Rails:
- Create mountable rails engine in main application. In routes set url path for api: example.com/api/v1.
- Create separately app with rails-api gem and make subdomain for api: api.example.com/v1.
What is the better way to create API with Rails:
Copyright © 2021 Jogjafile Inc.
See this. This might be helpful.
http://railscasts.com/episodes/350-rest-api-versioning
http://railscasts.com/episodes/350-rest-api-versioning?view=asciicast