API handler Implementation and initial Tests