Fix API controller logic. Add POST request example.