Api draft

First API draft for this project
It does not allow passing any other res types.