简体   繁体   中英

Which one HTTP gem should I use

I want to create microservice (probably as a gem) and It will be REST client to call external API. I'm new at rails and I am investigating which gem I should use. I checked https://www.ruby-toolbox.com/categories/http_clients to verfify most popular gems and I'm reading about them on google. I thought to write a question and ask you about your favourite one. I will call JSON API using token auth. Which one I should use? Thanks for all answers.

The 'Devise' gem is the most popular gem for Rails with authentication.
These links here will provide you with more details on how to configure Devise to work with a JSON API using token auth:
http://abhionrails.com/ruby/rails/devise/token/based/authentication/api/json/2013/09/01/Devise-with-token-based-authentication-for-API/
Is this Rails JSON authentication API (using Devise) secure?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM