class RestUser< ActiveResource::Base self.include_format_in_path = false self.format = :json_with_root ActiveResource::Base.logger = ActiveRecord::Base.logger self.site = "https://dummyapi.io/data/v1" self.collection_name = "user" self.headers['app-id'] = '62a775e08964108a7e6a7ba6' has_many :posts, class_name: :RestPost self.schema = { id: :integer, title: :string, first_name: :string, last_name: :string, picture: :string, } end