mirror of
https://github.com/tcgdex/cards-database.git
synced 2025-06-14 16:39:18 +00:00
fix: dex-id url not returning valid cards & filtering not working using dexId
(#722)
This commit is contained in:
20
.bruno/filtering/end-star-pattern.bru
Normal file
20
.bruno/filtering/end-star-pattern.bru
Normal file
@ -0,0 +1,20 @@
|
||||
meta {
|
||||
name: End Star Pattern
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{BASE_URL}}/v2/en/cards?name=*chu
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
params:query {
|
||||
name: *chu
|
||||
}
|
||||
|
||||
assert {
|
||||
res.body.length: gt 3
|
||||
res.body[1].name: neq Pikachu on the Ball
|
||||
}
|
19
.bruno/filtering/searching-using-the-dex-id.bru
Normal file
19
.bruno/filtering/searching-using-the-dex-id.bru
Normal file
@ -0,0 +1,19 @@
|
||||
meta {
|
||||
name: dexId Search
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{BASE_URL}}/v2/ja/cards?dexId=eq:357
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
params:query {
|
||||
dexId: eq:357
|
||||
}
|
||||
|
||||
assert {
|
||||
res.body.length: eq 3
|
||||
}
|
20
.bruno/filtering/start-star-pattern.bru
Normal file
20
.bruno/filtering/start-star-pattern.bru
Normal file
@ -0,0 +1,20 @@
|
||||
meta {
|
||||
name: Start star Pattern
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{BASE_URL}}/v2/en/cards?name=fu*
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
params:query {
|
||||
name: fu*
|
||||
}
|
||||
|
||||
assert {
|
||||
res.body.length: gt 3
|
||||
res.body[1].name: neq Stufful
|
||||
}
|
Reference in New Issue
Block a user