Implement compact-recipe/list-by-filter
This commit is contained in:
parent
8ae6548dec
commit
c944b5c6b7
21 changed files with 151 additions and 76 deletions
|
|
@ -1,5 +1,5 @@
|
|||
meta {
|
||||
name: AuthPoint
|
||||
name: AuthRestResource
|
||||
seq: 2
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
meta {
|
||||
name: CompactRecipePoint
|
||||
name: CompactRecipeRestResource
|
||||
seq: 4
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
@ -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
|
||||
}
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
meta {
|
||||
name: RecipePoint
|
||||
name: RecipeRestResource
|
||||
seq: 3
|
||||
}
|
||||
|
||||
|
|
@ -12,7 +12,7 @@ post {
|
|||
|
||||
body:json {
|
||||
{
|
||||
"description": "Kuchen"
|
||||
"description": "Salat"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
meta {
|
||||
name: UserPoint
|
||||
name: UserRestResource
|
||||
seq: 5
|
||||
}
|
||||
|
||||
|
|
@ -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')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue