[Working] resource api