module Api module V1 class ClientsController < Api::V1::BaseController respond_to :json def create respond_with Client.create(client_params) end private # Never trust parameters from the scary internet, only allow the white list through. def client_params params.require(:client).permit(:site_name, :site_token, :site_id) end end end end