Static API change

changed how static adapter works, so that first directory in path
parameter is used to determine json file name, second is used to
determine id