[Godwin,MJ]Added http basic auth for the api views

@gsemwezi @ewheeler please review