mirror of
https://github.com/tcgdex/cards-database.git
synced 2025-07-08 11:09:18 +00:00
feat: Add bruno to tests the APIs (#468)
This commit is contained in:
27
.bruno/cards/get Card list.bru
Normal file
27
.bruno/cards/get Card list.bru
Normal file
@ -0,0 +1,27 @@
|
||||
meta {
|
||||
name: get Card list
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{BASE_URL}}/v2/en/cards?sort:field=name&sort:order=DESC&pagination:page=1&pagination:itemsPerPage=4
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
query {
|
||||
sort:field: name
|
||||
sort:order: DESC
|
||||
pagination:page: 1
|
||||
pagination:itemsPerPage: 4
|
||||
~name: furret
|
||||
}
|
||||
|
||||
docs {
|
||||
Fully describe the card list request, it also has every parameters it can
|
||||
}
|
||||
|
||||
assert {
|
||||
res.status: eq 200
|
||||
}
|
15
.bruno/cards/get one card.bru
Normal file
15
.bruno/cards/get one card.bru
Normal file
@ -0,0 +1,15 @@
|
||||
meta {
|
||||
name: get one card
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{BASE_URL}}/v2/en/cards/swsh3-136
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
assert {
|
||||
res.status: eq 200
|
||||
}
|
Reference in New Issue
Block a user