Skip to content

Commit

Permalink
GG-7233-yaml removed yaml config
Browse files Browse the repository at this point in the history
  • Loading branch information
sabrina-konrad-lee-hmrc committed Aug 10, 2023
1 parent 7e27676 commit 72b67db
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 383 deletions.
2 changes: 0 additions & 2 deletions app/controllers/UserInfoController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ import scala.concurrent.ExecutionContext

sealed trait Version
case object Version_1_0 extends Version
case object Version_1_1 extends Version

object Version {
def fromAcceptHeader(header: Option[String]): Version =
Expand All @@ -42,7 +41,6 @@ object Version {
// integration test using scalaj.http which inject "Accept" header with default values if you don't provide any so we need a case when empty string is like missing Accept Header
case Some("") => Version_1_0
case Some("application/vnd.hmrc.1.0+json") => Version_1_0
case Some("application/vnd.hmrc.1.1+json") => Version_1_1
case _ => throw new IllegalArgumentException("Valid version not supplied")
}
}
Expand Down
2 changes: 1 addition & 1 deletion app/services/UserInfoService.scala
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import uk.gov.hmrc.auth.core.Enrolments
import uk.gov.hmrc.http.Authorization
import uk.gov.hmrc.http.{BadRequestException, HeaderCarrier, UnauthorizedException}
import connectors._
import controllers.{Version, Version_1_0, Version_1_1}
import controllers.{Version, Version_1_0}
import data.UserInfoGenerator
import domain._

Expand Down
8 changes: 0 additions & 8 deletions conf/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,6 @@ api.access.version {
}
endpointsEnabled = true
}
1_1 {
type = PRIVATE
status = BETA
allow-list {
applicationIds.0 = 649def0f-3ed3-4df5-8ae1-3e687a9143ea
}
endpointsEnabled = false
}
}


Expand Down
Loading

0 comments on commit 72b67db

Please sign in to comment.