POST
/
get-all-cards
curl --request POST \
  --url http://dolphinflashcards.com/api/get-all-cards \
  --header 'Content-Type: application/json' \
  --data '{
  "userID": "user1"
}'
{
  "Folder": {
    "Flashcard": {
      "cards": {
        "cardID": {
          "last_review": "<string>",
          "review_status": "<string>"
        }
      },
      "flashcardID": "<string>",
      "flashcardName": "<string>"
    },
    "secondFlashcard": {
      "cards": {
        "cardID": {
          "last_review": "<string>",
          "review_status": "<string>"
        }
      },
      "flashcardID": "<string>",
      "flashcardName": "<string>"
    }
  },
  "top-level-parent-name": {
    "parent-name-2": {
      "parent-name-3": {
        "Flashcard": {
          "cards": {
            "cardID": {
              "last_review": "<string>",
              "review_status": "<string>"
            }
          },
          "flashcardID": "<string>",
          "flashcardName": "<string>"
        }
      }
    }
  }
}

Body

application/json
userID
string
required

Identifies the user who wants to retrieve their flashcards.

Example:

"user1"

Response

200
application/json
OK. Returns the string: `"User has no flashcards"` when supplied an invalid userID.
Folder
object

A parent folder containing flashcards.

top-level-parent-name
object

Another parent folder within the same account that contains nested folders and flashcards. It has a different naming convention from the previous folder.