Notes API implementation in Rails::API