Backend in rails to integrate with sw-front