Basic API ready

Finished a basic API