Created and implemented API