A Simple API for a Deck of 52 Cards

        try the Demo. With Authentication

Check existing Deck

Get a new deck:
https://cards.soward.net/deck/newDeck  
Response:
    {
        "success":true,
        "deckID":"c344427bf063e9c4",
        "cardsRemaining":52
    }
Decks may be automatically removed 24 hours after their last access.

Shuffle an existing deck:
https://cards.soward.net/deck/shuffleDeck/<deckid>  
Response:
    {
        "success":true,
        "deckID":"c344427bf063e9c4",
        "cardsRemaining":52
    }

Draw Cards from a Deck.
https://cards.soward.net/deck/drawFromDeck/<deckID>/<count>  
Response: (called with a count of 2)
    {
        "success":true,
        "cards":[
            {
                "suitName":"clubs",
                "suitLetter":"C",
                "intValue":6,
                "value":6,
                "color":"black",
                "svgImage":"https:\/\/cards.soward.net\/images\/fronts\/clubs_6.svg",
                "pngImage":"https:\/\/cards.soward.net\/images\/fronts\/png_96_dpi\/clubs_6.png",
                "svgAlt":null,
                "pngAlt":null
            },{
                "suitName":"diamonds",
                "suitLetter":"D",
                "intValue":2,
                "value":2,
                "color":"red",
                "svgImage":"https:\/\/cards.soward.net\/images\/fronts\/diamonds_2.svg",
                "pngImage":"https:\/\/cards.soward.net\/images\/fronts\/png_96_dpi\/diamonds_2.png",
                "svgAlt":null,
                "pngAlt":null
            }
        ]
    }
            

Get a Deck's Status
https://cards.soward.net/deck/deckStatus/<deckid>  
Response:
    {
        "success":true,
        "deckID":"19cd3b6022adb909",
        "cardsRemaining":30
    }

Delete a Deck
Note: Requires using HTTP DELETE Method, will not work with GET
https://cards.soward.net/deck/deleteDeck/<deckid>  
Response:
    {
        "success":true,
        "19cd3b6022adb909":"Deleted"
    }