API Schema Reference

Overview

This reference topic documents the security schemes and schemas used in the API for generating educational measurement graphs.

bearerAuth

Defines the authentication scheme using a bearer token.

Property Description
type HTTP authentication type.
scheme Bearer token scheme.
bearerFormat Format of the bearer token, JWT.

Example:


{
  "type": "http",
  "scheme": "bearer",
  "bearerFormat": "JWT"
}
            

targetRange

Defines a range of measures with minimum and maximum values and a label.

Property Type Description Example
max object Maximum measure. References measureDisplayAndValue.
{ "value": 1500 }
min object Minimum measure. References measureDisplayAndValue.
{ "value": 1300 }
label string Readable label. More Difficult Target

Example:


{
  "max": { "value": 1500 },
  "min": { "value": 1300 },
  "label": "More Difficult Target"
}
            

targetRangesResponse

Defines an object of target ranges corresponding to request targetRanges.

Property Description Type
additionalProperties References targetRange. object

Example:


{
  "harderRange": {
    "max": { "value": 1500 },
    "min": { "value": 1300 },
    "label": "More Difficult Target"
  },
  "easierRange": {
    "max": { "value": 1300 },
    "min": { "value": 1100 },
    "label": "Less Difficult Target"
  }
}
            

additionalOptionsTargetRangesResponse

Defines target ranges corresponding to additionalOptions.

Property Description Type
additionalProperties References targetRange. object

Example:


{
  "communityCollegeReadinessRange": {
    "max": { "value": 1370 },
    "min": { "value": 1200 },
    "label": "Community College Readiness Range"
  },
  "universityReadinessRange": {
    "max": { "value": 1480 },
    "min": { "value": 1300 },
    "label": "University Readiness Range"
  }
}
            

finalMeasures

Defines estimated and target measures.

Property Type Description Example
estimate object Estimated measure. References measureDisplayAndValue.
{ "value": 1000, "display": "1000L" }
target object Target measure. References measureDisplayAndValue.
{ "value": 1200, "display": "1200L" }

Example:


{
  "estimate": { "value": 1000, "display": "1000L" },
  "target": { "value": 1200, "display": "1200L" }
}
            

measureDisplayAndValue

Defines a measure with value and display string.

Property Type Description Example
value integer Integer value of the measure. -100
display string Display value. BR100L

Example:


{
  "value": -100,
  "display": "BR100L"
}
            

additionalOptions

Defines an array of configuration options for graph rendering, dependent on scale.

Property Description
items A list of strings with valid options based on scale (lexile or quantile).

Example:


[
  "recommendedGrowthPath",
  "universityReadinessRange"
]
            

graphSize

Specifies the size of the rendered graph image.

Property Description
value Render size, defaulting to desktop.

Example:

"desktop"

language

Specifies the language for graph labels.

Property Description
value Language code, defaulting to english.

Example:

"english"

scale

Specifies the measurement framework.

Property Description
value Framework type, defaulting to lexile.

Example:

"lexile"

chart

Defines base64-encoded SVG image data.

Property Description
value Base64-encoded SVG data.

Example:

"string placeholder for brevity of base64-encoded chart."

lexileMeasure

Defines a numeric measure for the Lexile framework.

Property Description
value Integer value between -400 and 2000.

Example:

1000

quantileMeasure

Defines a numeric measure for the Quantile framework.

Property Description
value Integer value between -400 and 1650.

Example:

1000

measures

Defines an array of student observations.

Property Description
items A list of objects with testDate, schoolYearStart, grade, and measure properties.

Example:


[
  {
    "testDate": { "month": 5, "year": 2023 },
    "schoolYearStart": { "month": 8, "year": 2022 },
    "grade": 5,
    "measure": 1000
  }
]
            

measureField

Defines an integer measure based on scale.

Property Description
value Integer value, valid range determined by scale.

Example:

1000

dateField

Defines a date object with month and year.

Property Type Description Example
month integer Month value between 1 and 12. 5
year integer Year value, minimum 0. 2023

Example:


{
  "month": 5,
  "year": 2023
}
            

serverError

Defines a server-side error response.

Property Type Description Example
type string Type of error. server_error
errors array List of error details.
[{ "code": "error", "detail": "A server error occurred.", "attr": null }]

clientError

Defines a client-side error response.

Property Type Description Example
type string Type of error. client_error
errors array List of error details.
[{ "code": "not_authenticated", "detail": "Authentication credentials were 
not provided.", "attr": null }]

validationError

Defines a validation error response.

Property Type Description Example
type string Type of error. validation_error
errors array List of validation error details.
[{ "code": "required", "detail": "Scale is required", "attr": "scale" }]

codes

Defines an array of codes indicating graph generation and range alignment.

Property Description
items List of strings representing range alignment codes.

Example:


[
  "withinWRR"
]
            

authToken

Defines authentication credentials.

Property Type Description Example
clientId string Client identifier. abcdefg
clientSecret string Client secret key. hijklmnopqrstuvwxyz

Example:


{
  "clientId": "abcdefg",
  "clientSecret": "hijklmnopqrstuvwxyz"
}