app/controllers/debtors_controller.rb
## API Search Stub for integration with other systems
# TODO Add security and finalize
API Search Stub for integration with other systems
TODO Add security and finalize
API Search Stub for integration with other systems TODO Add security and finalize
def api_search
    respond_to do |format|
      format.html
      format.json { render json: @debtor, callback: params[:callback] }
    end
    @debtor = Debtor.api_search(params[:search])
  end
def api_search respond_to do | format | format . html format . json { render json : @debtor , callback : params [ :callback ] } end @debtor = Debtor . api_search ( params [ :search ] ) end
API Search Stub for integration with other systems
TODO Add security and finalize
API Search Stub for integration with other systems TODO Add security and finalize
# TODO: add a limit to the debtor info sent by json.