1
0
mirror of https://github.com/tcgdex/cards-database.git synced 2025-06-26 13:59:18 +00:00

feat: Add bruno to tests the APIs (#468)

This commit is contained in:
2024-01-03 23:42:56 +01:00
committed by GitHub
parent 8fd7afeb32
commit 8684fb14e4
11 changed files with 179 additions and 0 deletions

15
.bruno/sets/get a set.bru Normal file
View File

@ -0,0 +1,15 @@
meta {
name: get a set
type: http
seq: 2
}
get {
url: {{BASE_URL}}/v2/en/sets/swsh3
body: none
auth: none
}
assert {
res.status: eq 200
}

View File

@ -0,0 +1,23 @@
meta {
name: get list of sets
type: http
seq: 3
}
get {
url: {{BASE_URL}}/v2/en/sets?sort:field=name&sort:order=DESC&pagination:page=1&pagination:itemsPerPage=1&name=Dark
body: none
auth: none
}
query {
sort:field: name
sort:order: DESC
pagination:page: 1
pagination:itemsPerPage: 1
name: Dark
}
assert {
res.status: eq 200
}

View File

@ -0,0 +1,15 @@
meta {
name: get one card from a set
type: http
seq: 1
}
get {
url: {{BASE_URL}}/v2/en/cards/swsh3
body: none
auth: none
}
assert {
res.status: eq 200
}