Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: API Issues #1545

Open
fweaks opened this issue Jul 29, 2021 · 0 comments
Open

Bug: API Issues #1545

fweaks opened this issue Jul 29, 2021 · 0 comments
Labels

Comments

@fweaks
Copy link

fweaks commented Jul 29, 2021

URL:
https://dr4ft.info/api/games
Browser:
Advanced REST client


Background Information

I'm testing out the API trying to see what I can achieve with it. It seems that the both the documentation is out of date as well as the API itself not seeming to work.

Detailed Description

Sending REST requests directly to the API with ARC. The response error messages guided me through some parameters which were missing from the API documentation:

  • cube.burnsPerPack
  • cube.cubePoolSize

Once I have all the missing parameters, it is now telling me that every single card from my card list is invalid.

I also tried without the set/collector number indicator (e.g. "list":"Geist-Honored Monk\nBloodbond Vampire\nDream Leash\nSylvok...) and this didn't work either.

Further Information

The Response:
400 Bad Request
Invalid cards: Inexorable Blob (soi 212); Unexpected Potential (cns 12); Advantageous Proclamation (cns 1); Worldknit (cns 13); Power Play (cns 8); Summoner's Bond (cn2 11); Paliano, the High City (cns 65); Brago's Favor (cns 3); Sentinel Dispatch (cns 11); Exert Influence (bfz 77); and 357 more

The full JSON request body:
{"title":"Jonnos Cube API Test 2","seats":8,"cube":{"cards":15,"packs":3,"cubePoolSize":367,"burnsPerPack":0,"list":"Geist-Honored Monk (khc 25)\nBloodbond Vampire (e02 15)\nDream Leash (rav 45)\nSylvok Lifestaff (som 209)\nLurking Informant (rav 249)\nGhitu Fire-Eater (ulg 76)\nNevinyrral's Disk (ath 69)\nWurmweaver Coil (gk2 86)\nPhantom General (rtr 16)\nFires of Yavimaya (arc 86)\nFated Retribution (bng 11)\nCarnage Gladiator (dgm 61)\nColdsteel Heart (cm2 181)\nFire Urchin (grn 101)\nFlickerwisp (eve 6)\nBond of Insight (war 43)\nBloodline Keeper (isd 90)\nLightning Bolt (m10 146)\nPilgrim's Eye (wwk 128)\nDisallow (aer 31)\nTrumpet Blast (m13 152)\nGhoulcaller's Accomplice (uma 96)\nJade Mage (m12 181)\nCoercive Portal (cns 56)\nMomentous Fall (roe 197)\nArmageddon (4ed 5)\nOlivia's Dragoon (uma 109)\nWorldslayer (mrd 276)\nCrop Rotation (ulg 98)\nGhoultree (dka 115)\nFumigate (kld 15)\nRecruit the Worthy (mh1 22)\nIncorrigible Youths (psoi 166)\nMolten Disaster (c13 117)\nNettlevine Blight (lrw 131)\nDeadeye Navigator (mm3 36)\nPentavus (mrd 226)\nShattered Angel (nph 23)\nFireball (m10 136)\nEmmara Tandris (c19 191)\nAzure Mage (m12 45)\nMistmeadow Witch (cma 203)\nJourney to Eternity (rix 160)\nOjutai's Summons (dtk 68)\nBoon Satyr (c18 132)\nGhitu Chronicler (dom 125)\nHuatli, Radiant Champion (rix 159)\nBitter Ordeal (fut 80)\nMoldervine Cloak (rav 173)\nLazotep Plating (war 59)\nKalastria Nightwatch (bfz 115)\nRuned Stalactite (lrw 260)\nTithe Drinker (c17 200)\nRabble-Rouser (gpt 73)\nOrzhova, the Church of Deals (gpt 162)\nFirst-Sphere Gargantua (mh1 91)\nLotus Cobra (zen 168)\nInduce Paranoia (rav 56)\nNatural Connection (ddr 13)\nYahenni, Undying Partisan (aer 74)\nAethermage's Touch (mm3 148)\nSapling of Colfenor (c21 228)\nEvolving Wilds (ddo 58)\nBlind Obedience (gtc 6)\nMirrodin's Core (fmb1 119)\nMolderhulk (grn 190)\nScatter the Seeds (gk1 106)\nSoulsurge Elemental (roe 163)\nTwilight Drover (ddk 9)\nInspiring Captain (soi 25)\nLeafcrown Dryad (ths 161)\nKalastria Highborn (plist 101)\nRepeal (gpt 32)\nLoxodon Warhammer (c17 216)\nElite Vanguard (ema 8)\nSmoldering Marsh (afc 262)\nConqueror's Pledge (zen 8)\nSelesnya Evangel (rav 228)\nPyramid of the Pantheon (akh 235)\nFirebolt (dd2 49)\nEcho Mage (c13 43)\nThraben Foulbloods (emn 108)\nGlory-Bound Initiate (akh 16)\nTree of Redemption (isd 207)\nMalakir Familiar (jmp 253)\nRend Flesh (chk 140)\nBeck (plist 238)\nMagus of the Will (2xm 98)\nSelfless Spirit (emn 40)\nPsychic Drain (rav 220)\nKaya, Ghost Assassin (cn2 222)\nHonor the God-Pharaoh (war 132)\nDoubling Season (rav 158)\nMilitia's Pride (lrw 30)\nVessel of Malignity (soi 144)\nJester's Cap (9ed 301)\nOutnumber (jmp 354)\nRancor (afc 167)\nAdanto Vanguard (xln 1)\nFont of Fertility (jou 123)\nSphinx of Uthuun (c18 104)\nDarksteel Axe (ima 214)\nRout (inv 34)\nWind Strider (xln 88)\nSmite (roe 43)\nWall of Roots (arc 73)\nFaith's Fetters (rav 16)\nGhitu Lavarunner (dom 127)\nSeedborn Muse (lgn 138)\nBloodshot Trainee (mm2 107)\nArc Lightning (usg 174)\nTemple of Abandon (ths 224)\nPithing Needle (rtr 231)\nSunpetal Grove (m12 229)\nBloodcrazed Paladin (xln 93)\nSejiri Refuge (zen 224)\nReturned Reveler (jou 79)\nKambal, Consul of Allocation (kld 183)\nDimir Aqueduct (pc2 116)\nWhispers of the Muse (tmp 103)\nSerene Steward (bfz 46)\nCave of Temptation (mh1 237)\nSailor of Means (jmp 172)\nStromkirk Noble (isd 164)\nIrregular Cohort (mh1 15)\nFalkenrath Marauders (isd 141)\nPreordain (cmr 84)\nRecurring Insight (roe 82)\nAcidic Slime (m10 165)\nPulse of the Forge (dst 66)\nLavinia of the Tenth (dgm 80)\nSpellgorger Weird (war 145)\nVitu-Ghazi, the City-Tree (arc 136)\nMold Shambler (c13 156)\nSvogthos, the Restless Tomb (rav 283)\nYavimaya Elder (uds 124)\nPunishing Fire (zen 142)\nSkarrg, the Rage Pits (pca 127)\nAshiok, Nightmare Weaver (ths 188)\nChandra's Outrage (m12 125)\nOviya Pashiri, Sage Lifecrafter (kld 165)\nFrontline Medic (gtc 12)\nSadistic Sacrament (zen 110)\nFalkenrath Aristocrat (mm3 163)\nBold Impaler (emn 120)\nPlated Slagwurm (mrd 127)\nSanctum Seeker (xln 120)\nWild-Field Scarecrow (soi 269)\nDruidic Satchel (c21 241)\nKonda, Lord of Eiganjo (chk 30)\nMausoleum Guard (isd 20)\nAkroan Hoplite (cn2 197)\nReturned Centaur (ori 116)\nVampire of the Dire Moon (m20 120)\nStunt Double (cn2 38)\nKiora, the Crashing Wave (bng 149)\nBasilica Screecher (gtc 58)\nSanguinary Mage (soi 178)\nIcy Manipulator (dom 219)\nDarksteel Brute (dst 108)\nWar Screecher (war 39)\nRestoration Angel (mm3 20)\nSlime Molding (mm3 137)\nPrimal Command (lrw 233)\nStromkirk Captain (dka 143)\nKamahl, Pit Fighter (10e 214)\nHedron Crab (zen 47)\nVisions of Beyond (m12 80)\nPredatory Urge (pca 74)\nSunhome, Fortress of the Legion (hop 138)\nDarksteel Ingot (c13 241)\nStab Wound (ddm 72)\nWall of Omens (ddk 4)\nHour of Reckoning (gk1 104)\nEnigma Drake (akh 198)\nStromkirk Condemned (emn 106)\nHarness by Force (jou 100)\nCrackling Drake (c21 213)\nDogpile (rav 120)\nFlesh (dgm 128)\nBreeding Pool (rna 246)\nCapsize (tmp 55)\nFeral Animist (dgm 70)\nCrow of Dark Tidings (soi 105)\nPanharmonicon (kld 226)\nGhost Quarter (cm2 253)\nUntamed Might (som 131)\nMirko Vosk, Mind Drinker (gk1 17)\nFact or Fiction (cmr 396)\nFelidar Sovereign (bfz 26)\nSunhome Guildmage (gtc 200)\nRise from the Grave (c15 134)\nReady (dgm 132)\nOmenspeaker (cmr 83)\nKor Sanctifiers (zen 22)\nNyx Weaver (jou 153)\nVoyaging Satyr (ths 182)\nDragon Throne of Tarkir (ktk 219)\nRakish Heir (isd 158)\nCreepy Doll (isd 220)\nInsolent Neonate (soi 168)\nStaggershock (ima 147)\nBonesplitter (mrd 146)\nGiant Killer (eld 275)\nSpirit Bonds (m15 37)\nPacifism (m14 25)\nVengevine (uma 189)\nAjani's Pridemate (c13 3)\nAethersnipe (dd2 17)\nLeafdrake Roost (c13 196)\nGuttersnipe (cn2 162)\nWizened Snitches (rav 75)\nReciprocate (ddg 24)\nBlade of the Bloodchief (c17 204)\nWell of Lost Dreams (c17 231)\nMiscalculation (ulg 36)\nSprout Swarm (fut 138)\nArmy of the Damned (c13 69)\nShield of Kaldra (dst 139)\nGrip of Desolation (bfz 94)\nOath of Kaya (war 209)\nMagus of the Abyss (fut 70)\nSpikeshot Elder (mm2 127)\nLorthos, the Tidemaker (zen 53)\nReap and Sow (dst 81)\nGalepowder Mage (ddi 12)\nDomri, Anarch of Bolas (war 191)\nSeasons Past (soi 226)\nMage Slayer (arb 57)\nCatch (dgm 125)\nFatespinner (fmb1 22)\nKilling Wave (avr 111)\nPuppeteer Clique (mm2 91)\nSlash Panther (nph 96)\nVampire Nocturnus (m13 113)\nVampire Nighthawk (e01 38)\nPrey Upon (uma 178)\nDawn of Hope (grn 8)\nObelisk of Alara (pcon 140)\nStuffy Doll (tsp 264)\nAdeliz, the Cinder Wind (dom 190)\nAmorphous Axe (cmr 295)\nCaptivating Vampire (c17 104)\nPia Nalaar (kld 124)\nRise from the Tides (prm 62209)\nWhiplash Trap (zen 77)\nCrimson Mage (m12 129)\nPia and Kiran Nalaar (ori 157)\nGoblin Gaveleer (2xm 126)\nElite Inquisitor (isd 13)\nShivan Reef (m15 246)\nVedalken Entrancer (jmp 188)\nKiora's Follower (ddo 52)\nDarksteel Myr (som 151)\nKuldotha Ringleader (mbs 70)\nSpikeshot Goblin (mrd 108)\nBrazen Borrower (eld 39)\nCoastal Discovery (bfz 73)\nExuberant Firestoker (ala 99)\nMyr Propagator (som 182)\nMavren Fein, Dusk Apostle (xln 24)\nSigil Captain (cmd 225)\nCodex Shredder (cmr 304)\nUnderworld Connections (rtr 83)\nNecrotic Ooze (som 72)\nGlimmerpoint Stag (som 9)\nGrapple with the Past (c18 148)\nCloudkin Seer (m20 54)\nDrownyard Explorers (soi 56)\nCackling Counterpart (mm3 32)\nStonehorn Dignitary (m12 37)\nFated Intervention (bng 121)\nKnight-Captain of Eos (ala 17)\nBloodcrazed Neonate (isd 131)\nPeregrine Drake (ema 64)\nSquirrel Nest (cns 180)\nGrowth Spasm (roe 186)\nBrago, King Eternal (khc 82)\nCaves of Koilos (m15 241)\nSlagstorm (mbs 75)\nBravado (usg 177)\nStensia Bloodhall (isd 247)\nTrading Post (m14 225)\nCryptborn Horror (rtr 212)\nBlade Splicer (2xm 9)\nTerramorphic Expanse (afc 267)\nTormod's Crypt (m15 237)\nBreaking (dgm 124)\nDarksteel Pendant (dst 113)\nFleet Swallower (xln 57)\nCultivator of Blades (kld 151)\nJeskai Sage (frf 38)\nCathartic Reunion (kld 109)\nDelver of Secrets (isd 51)\nGlistening Oil (nph 62)\nAnafenza, Kin-Tree Spirit (dtk 2)\nBlooming Marsh (kld 243)\nDistress (10e 136)\nDirect Current (grn 96)\nExpedition Map (2xm 255)\nForesee (tsr 69)\nAncient Amphitheater (c15 276)\nFlame Slash (roe 145)\nMoorland Haunt (isd 244)\nMarkov Patrician (isd 107)\nAlabaster Mage (2xm 2)\nCrawling Sensation (soi 199)\nWingmate Roc (c19 78)\nObsessive Skinner (soi 220)\nTitanic Growth (m20 343)\nKessig Cagebreakers (cma 122)\nSoul Swallower (soi 230)\nBear Umbra (roe 177)\nInto the Roil (c17 86)\nLiving Death (cmd 88)\nMoonlight Bargain (rav 95)\nTajic, Blade of the Legion (dgm 107)\nEssence Scatter (ddt 6)\nCrypt Ghast (gtc 61)\nFling (m11 139)\nReturn to Nature (war 175)\nStensia Masquerade (soi 184)\nBanisher Priest (m14 7)\nChandra's Phoenix (e01 44)\nMurderous Cut (plist 105)\nProphet of Kruphix (ths 199)\nNegate (m15 71)\nUnbreakable Formation (rna 29)\nDeathcap Cultivator (soi 202)\nVampire Lacerator (a25 114)\nAnt Queen (mm2 139)\nSavage Summoning (m14 194)\nConsuming Vapors (roe 101)\nCallous Dismissal (war 44)\nReveillark (mma 26)\nRite of Replication (zen 61)\nSpawnbroker (rav 65)\nScrib Nibblers (wwk 66)\nNobilis of War (mm2 195)\nBlue Sun's Zenith (c13 32)\nDarksteel Sentinel (som 152)\nDesolate Lighthouse (avr 227)\nLaboratory Maniac (isd 61)\nMagus of the Candelabra (tsp 203)\nOnyx Mage (m12 103)\nSplinterfright (isd 205)\nTriskaidekaphobia (soi 141)\nHellrider (dka 93)\nDuskmantle, House of Shadow (rav 277)\nVeteran's Armaments (mor 146)\nDarksteel Juggernaut (c18 202)\nInfest (cn2 139)\nLife's Finale (nph 65)\nPristine Talisman (c14 264)\nPiston-Fist Cyclops (grn 217)\nSphinx's Tutelage (ori 76)\nAlchemist's Refuge (fmb1 117)\nInexorable Blob (soi 212)\nUnexpected Potential (cns 12)\nAdvantageous Proclamation (cns 1)\nWorldknit (cns 13)\nPower Play (cns 8)\nSummoner's Bond (cn2 11)\nPaliano, the High City (cns 65)\nBrago's Favor (cns 3)\nSentinel Dispatch (cns 11)\nExert Influence (bfz 77)"},"isPrivate":true,"type":"cube draft"}

@fweaks fweaks added the bug label Jul 29, 2021
@fweaks fweaks changed the title Bug: Bug: API Issues Jul 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant