def METHOD_NAME(self, workspace_name):
    """
    ---
      tags: ["Command"]
      description: Gets the last executed command
      responses:
        200:
           description: Last executed command or an empty json
    """
    command = Command.query.join(Workspace).filter_by(name=workspace_name).order_by(
        Command.start_date.desc()).first()
    command_obj = {}
    if command:
        command_obj = populate_command_dict(command)
    return flask.jsonify(command_obj)