FIS interview question

Dependency Injection , Singleton pattern , API routing ,Db context, how would you design an API