Rest API

Demo

Get list of decks

Get list of decks

GET
/demo/deck/list
AuthorizationBearer <token>

In: header

Query Parameters

limit?number
Default10
cursor?string

Response Body

curl -X GET "https://demo.expostarter.com/api/demo/deck/list?limit=10&cursor=string"
fetch("https://demo.expostarter.com/api/demo/deck/list?limit=10&cursor=string")
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {
  url := "https://demo.expostarter.com/api/demo/deck/list?limit=10&cursor=string"

  req, _ := http.NewRequest("GET", url, nil)
  
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))
}
import requests

url = "https://demo.expostarter.com/api/demo/deck/list?limit=10&cursor=string"

response = requests.request("GET", url)

print(response.text)
{
  "items": [
    {
      "id": "string",
      "title": "string",
      "description": "string",
      "category": "string",
      "language": "string",
      "cardCount": 0,
      "progress": 0,
      "createdAt": "2019-08-24T14:15:22Z"
    }
  ],
  "nextCursor": "string",
  "totalCount": 0
}
{
  "message": "string",
  "code": "string",
  "issues": [
    {
      "message": "string"
    }
  ]
}

Save deck of flash card

Save deck of flash card

POST
/demo/deck/create
AuthorizationBearer <token>

In: header

topicstring
numberCards?number
Default5
Range5 <= value <= 50
language?string
Default"auto"

Response Body

curl -X POST "https://demo.expostarter.com/api/demo/deck/create" \
  -H "Content-Type: application/json" \
  -d '{
    "topic": "string"
  }'
const body = JSON.stringify({
  "topic": "string"
})

fetch("https://demo.expostarter.com/api/demo/deck/create", {
  body
})
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
  "strings"
)

func main() {
  url := "https://demo.expostarter.com/api/demo/deck/create"
  body := strings.NewReader(`{
    "topic": "string"
  }`)
  req, _ := http.NewRequest("POST", url, body)
  req.Header.Add("Content-Type", "application/json")
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))
}
import requests

url = "https://demo.expostarter.com/api/demo/deck/create"
body = {
  "topic": "string"
}
response = requests.request("POST", url, json = body, headers = {
  "Content-Type": "application/json"
})

print(response.text)
{
  "id": "string",
  "title": "string",
  "description": "string",
  "category": "string",
  "language": "string",
  "cards": [
    {
      "id": "string",
      "question": "string",
      "answer": "string"
    }
  ]
}
{
  "message": "string",
  "code": "string",
  "issues": [
    {
      "message": "string"
    }
  ]
}

Get list of decks

Get list of decks

GET
/demo/library
AuthorizationBearer <token>

In: header

Query Parameters

category?string
limit?number
Default10
cursor?string

Response Body

curl -X GET "https://demo.expostarter.com/api/demo/library?category=string&limit=10&cursor=string"
fetch("https://demo.expostarter.com/api/demo/library?category=string&limit=10&cursor=string")
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {
  url := "https://demo.expostarter.com/api/demo/library?category=string&limit=10&cursor=string"

  req, _ := http.NewRequest("GET", url, nil)
  
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))
}
import requests

url = "https://demo.expostarter.com/api/demo/library?category=string&limit=10&cursor=string"

response = requests.request("GET", url)

print(response.text)
{
  "items": [
    {
      "id": "string",
      "title": "string",
      "description": "string",
      "category": "string",
      "language": "string",
      "cardCount": 0,
      "createdAt": "2019-08-24T14:15:22Z"
    }
  ],
  "nextCursor": "string",
  "totalCount": 0
}
{
  "message": "string",
  "code": "string",
  "issues": [
    {
      "message": "string"
    }
  ]
}