Skip to content

Commit

Permalink
MTDSA-1342 Align vat-api to new API Platform statuses
Browse files Browse the repository at this point in the history
  • Loading branch information
narendravijayarao committed Feb 15, 2018
1 parent b344d73 commit 8c14e0e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

package uk.gov.hmrc.vatapi.controllers.definition

import play.api.Logger
import uk.gov.hmrc.vatapi.config.{AppContext, FeatureSwitch}
import uk.gov.hmrc.vatapi.controllers.definition.APIStatus.APIStatus
import uk.gov.hmrc.vatapi.controllers.definition.AuthType._
Expand Down Expand Up @@ -105,7 +106,8 @@ class VatApiDefinition {
case "STABLE" => APIStatus.STABLE
case "DEPRECATED" => APIStatus.DEPRECATED
case "RETIRED" => APIStatus.RETIRED
case _ => APIStatus.ALPHA
case _ => Logger.error(s"[ApiDefinition][buildApiStatus] no API Status found in config. Reverting to Alpha")
APIStatus.ALPHA
}
}

Expand Down
2 changes: 1 addition & 1 deletion conf/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ metrics {
api.gateway.context = "vat"

# The status of the API for the API Platform.
api.status = "PROTOTYPED"
api.status = "ALPHA"

# Custom header whitelisting
httpHeadersWhitelist = ["Gov-Test-Scenario"]
Expand Down

0 comments on commit 8c14e0e

Please sign in to comment.