Czechitas

Tady si muzes zkouset API dle libosti - muzes se podivat na ukazky pro lektory, pro hlasky a vyzkouset si POST na Math.

Seznam endpointu

Hlasky

  • GET api/czechitas/hlasky/all
    Returns { result: {id: number, quote: string}[]}
  • GET api/czechitas/hlasky/random
    Returns { result: string }
  • GET api/czechitas/hlasky/:id
    Returns { result: string }
    Returns { error: string }
  • POST api/czechitas/hlasky/create
    BODY { quote: string }
    Returns { result: string }
    Returns { error: string }

Lektori

  • GET api/czechitas/lektori/all
    Returns { result: { id: number, firstName: string, lastName: string, lectures: string[] }[] }
  • GET api/czechitas/lektori/random
    Returns { result: { id: number, firstName: string, lastName: string, lectures: string[] } }
  • GET api/czechitas/lektori/:id
    Returns { result: { id: number, firstName: string, lastName: string, lectures: string[] } }
    Returns { error: string }
  • GET api/czechitas/lektori/:name
    BODY { quote: string }
    Returns { result: { id: number, firstName: string, lastName: string, lectures: string[] } }
    Returns { error: string }

Math

  • GET api/math/add
    PARAMS?a=1&b=2 - jedna se o parametry, koukni na request, ktery se vykona, kdyz zmacknes Calculate!
    Returns { result: number }
    Returns { error: string }