Front-end website and REST API for the saptest
library.
To view database fields, refer to the saptest
db
module documentation.
Deployed on fly.io
in the following regions.
- 'sjc'
- 'lax'
- 'bos
Get all pets.
curl -X GET "https://saptest.fly.dev/db/pets"
Get all pets from a specific pack.
curl -X GET "https://saptest.fly.dev/db/pets?pack=Turtle"
Get all tier 1 pets.
curl -X GET "https://saptest.fly.dev/db/pets?tier=1"
Get all tier 1 pets that have a faint trigger.
curl -X GET "https://saptest.fly.dev/db/pets?tier=1&effect_trigger=Faint"
Get all pets.
curl -X GET "https://saptest.fly.dev/db/foods"
Get all foods from a specific pack.
curl -X GET "https://saptest.fly.dev/db/foods?pack=Turtle"
Get all tier 1 foods.
curl -X GET "https://saptest.fly.dev/db/foods?tier=1"
Get all tier 6 foods that have a random effect.
curl -X GET "https://saptest.fly.dev/db/foods?tier=6&random=true"
Test a battle between two teams.
curl -X POST "https://saptest.fly.dev/battle" -H "Content-Type: application/json" -d "@file.json"
file.json
{
"friend_team": {
"name": "The Super Auto Pets",
"pets": [
{
"name": "Dog",
"attack": 3,
"health": 4,
"level": 1,
"item": "Honey"
},
{
"name": "Slot"
},
]
},
"enemy_team": {
"name": "The Super Auto Pets 2",
"pets": [
{
"name": "Dog",
"attack": 3,
"health": 4,
"level": 1,
"item": "Honey"
},
{
"name": "Dog",
"attack": 3,
"health": 4,
"level": 1,
"item": "Honey"
}
]
}
}