Skip to content

koisland/SAPTester

Repository files navigation

SAPTester

GitHub Pages Backend CI

Front-end website and REST API for the saptest library.

View @ https://koisland.github.io/SAPTester/

API

To view database fields, refer to the saptest db module documentation.

Deployed on fly.io in the following regions.

  • 'sjc'
  • 'lax'
  • 'bos

Pets

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"

Foods

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"

Battle

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"
            }
        ]
    }
}

Sources

About

A website and API to test battles in Super Auto Pets!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages