Oluwatosin Ekolie


50 Experience
0 Lessons Completed
0 Questions Solved


Posted in Build REST API with Devise

Hi Guys, I've been struggling building an API for an iOS App to communicate with my Rails Web App. For authentication, I'm using Devise.

How do I create, update and delete a user through the API?

I have create the route:

namespace :api, defaults: {format: :json} do
namespace :v1 do
devise_scope :user do
post "/", :to => 'sessions#create'
delete "/logout", :to => 'session#destroy'

This is where I'm stuck

logo Created with Sketch.

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

© 2023 GoRails, LLC. All rights reserved.