def get_questions_by_id
        topic = Topic.find_by_id(params[:id])
        if topic.nil?
            render_error(:resource_not_found) and return
        end