K
K
Kevin Glare2017-11-07 16:31:44
Ruby on Rails
Kevin Glare, 2017-11-07 16:31:44

How to add an api to a Rails application?

I made an application on Ruby On Rails, authorization is carried out using the Devise gem. Tell me how to add authorization through api? I tried to dig in the direction of devise_token_auth, but there is either a conflict of migrations or everything is given through json. The moment with rack-cors is also interesting, how to set everything up correctly in terms of security?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
blackst0ne, 2017-11-16
@blackst0ne

How is the API implemented?
Controllers#actions, Grape, something else?

I
Ilya Ponomarev, 2017-11-18
@ilyario

For api, generate tokens yourself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question