def contentForId()

in src/main/scala/com/gu/flexible/snapshotter/logic/ApiLogic.scala [19:23]


  def contentForId(id: String)(implicit ws:StandaloneWSClient, config:CommonConfig, context:ExecutionContext): Attempt[JsValue] = {
    val request = ws.url(s"${config.contentRawUri}/$id").withQueryStringParameters(List(("includePreview", "true"), ("includeLive", "true")): _*)
    log.info(s"Requesting content for ID $id in stage ${config.stage} stack ${config.stack}")
    jsonOnOKStatus(request)
  }