Adding config for API , and configuring the controllers accordingly

@ali-mohamed  please review and merge