Skip to content
spencermehta edited this page Jul 26, 2020 · 4 revisions

GET /hello

Parameters

None

Responses

[
  "Hello from CDI-CAT API!"
]

GET /startItem

Parameters

  • age_mos: Child's age in months (12-36)

Responses

{
  "index": 354,
  "definition": "mommy*"
}

GET /nextItem

Parameters

  • responses: user's responses (0,1) to each item (e.g. [1,0])

  • items: sequence of item IDs presented so far to a user (e.g. [35,10])

Responses

{
  "index": 337,
  "definition": "long",
  "curTheta": 1.279
}

GET /itemDefinition

Parameters

  • itemID: Given numeric ID (1-679) returns the item definition (e.g. 2)

Responses

"a lot"

GET /itemDefinitions

Parameters

  • items: Given list of numeric ID (1-679) returns the item definitions (e.g., [1,2])

Responses

[
  "a",
  "a lot",
  "about"
]

GET /easiestWord

Parameters

  • items: Given list of numeric ID (1-679) returns the id and definition of the word with the lowest difficulty

Responses

{
  "index": 2,
  "definition": "a lot"
}

GET /hardestWord

Parameters

  • items: Given list of numeric ID (1-679) returns the id and definition of the word with the highest difficulty

Responses

{
  "index": 2,
  "definition": "a lot"
}