Implement compact-recipe/list-by-filter

This commit is contained in:
araemer 2026-02-27 19:52:05 +01:00
parent 8ae6548dec
commit c944b5c6b7
21 changed files with 151 additions and 76 deletions

View file

@ -1,5 +1,5 @@
meta {
name: AuthPoint
name: AuthRestResource
seq: 2
}

View file

@ -1,5 +1,5 @@
meta {
name: CompactRecipePoint
name: CompactRecipeRestResource
seq: 4
}

View file

@ -1,19 +0,0 @@
meta {
name: getCompactRecipes
type: http
seq: 2
}
get {
url: {{url}}/compact-recipe?search=kuchen
body: none
auth: inherit
}
params:query {
search: kuchen
}
settings {
encodeUrl: true
}

View file

@ -0,0 +1,22 @@
meta {
name: getListByFilter
type: http
seq: 2
}
get {
url: {{url}}/compact-recipe/list-by-filter
body: json
auth: inherit
}
body:json {
{
"searchString": "kuchen",
"tagIdList": ["7200f6e8-3cd0-439e-a395-d7ed43e29a3e"]
}
}
settings {
encodeUrl: true
}

View file

@ -1,5 +1,5 @@
meta {
name: RecipePoint
name: RecipeRestResource
seq: 3
}

View file

@ -12,7 +12,7 @@ post {
body:json {
{
"description": "Kuchen"
"description": "Salat"
}
}

View file

@ -1,5 +1,5 @@
meta {
name: UserPoint
name: UserRestResource
seq: 5
}

View file

@ -10,6 +10,9 @@ script:pre-request {
try{
// An dieser Stelle muss überprüft werden, ob diese Funktion gerade aufgerufen wird, ansonsten entsteht eine Endlosschleife.
const blocked = bru.getEnvVar("blocked");
console.log("blocked", blocked)
console.log("current date", new Date())
console.log("expire date", bru.getEnvVar("tokenExpireDate"))
if(blocked === "false" && new Date().valueOf() > Number(bru.getEnvVar("tokenExpireDate"))){
console.log('new Session')