Skip to content

Commit

Permalink
Made the 3 bake methods on the BakerWithHttpResponse have differnt na…
Browse files Browse the repository at this point in the history
…mes so they can be easier used in Java/Kotlin. (#1798)
  • Loading branch information
Tim-Linschoten authored Oct 31, 2024
1 parent 43fdd35 commit 5f8215c
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,13 @@ class BakerWithHttpResponse(val baker: Baker, ec: ExecutionContext) extends Lazy

def appGetVisualRecipe(recipeId: String): JFuture[String] = baker.getRecipeVisual(recipeId).toBakerResult

def bake(recipeId: String, recipeInstanceId: String): JFuture[String] = baker.bake(recipeId, recipeInstanceId).toBakerResult
def bake(recipeId: String, recipeInstanceId: String): JFuture[String] =
baker.bake(recipeId, recipeInstanceId).toBakerResult

def bake(recipeId: String, recipeInstanceId: String, bakeRequestJson: String): JFuture[String] =
def bakeWithBakeRequest(recipeId: String, recipeInstanceId: String, bakeRequestJson: String): JFuture[String] =
baker.bake(recipeId, recipeInstanceId, getMetaDataFromBakeRequest(bakeRequestJson)).toBakerResult

def bake(recipeId: String, recipeInstanceId: String, metadata: Map[String, String]) =
def bakeWithMetadata(recipeId: String, recipeInstanceId: String, metadata: Map[String, String]): JFuture[String] =
baker.bake(recipeId, recipeInstanceId, metadata).toBakerResult

def getMetaDataFromBakeRequest(bakeRequestJson: String): Map[String, String] = {
Expand Down

0 comments on commit 5f8215c

Please sign in to comment.