I am building api in rails and I am wondering what is the best way to implement object ids. I don’t want to use database generated id.
This article http://railsware.com/blog/2013/04/08/api-with-ruby-on-rails-useful-tricks/ suggests using guid, but I don’t like the format I would prefer ids similar to parse api. Are there any gems that do this or should I just use securerandom and catch duplicates?
Can anyone point to some good articles or share some tips, best practices about implementing api in rails?