api foundation