fixing api endpoint parsing
adding base model & collections classes