This PR adds the ability for the LRS to render the GET method of the /statements route as html if provided with the Accept: text/html header.
The functionality can be toggled with the :com.yetanalytics.lrs.pedestal.interceptor/enable-statement-html key in the service map.
If authentication is implemented and html rendering is enabled, :com.yetanalytics.lrs.pedestal.interceptor/www-auth-realm will specify the basic auth realm for browser auth. Users will get a login/pass browser dialog and then be able to browse.
By default the server will render full html pages, but fragments can be requested with the unwrap_html=true query param.
LRS-34
/statements
UI/browser interfaceThis PR adds the ability for the LRS to render the GET method of the
/statements
route as html if provided with theAccept: text/html
header.The functionality can be toggled with the
:com.yetanalytics.lrs.pedestal.interceptor/enable-statement-html
key in the service map.If authentication is implemented and html rendering is enabled,
:com.yetanalytics.lrs.pedestal.interceptor/www-auth-realm
will specify the basic auth realm for browser auth. Users will get a login/pass browser dialog and then be able to browse.By default the server will render full html pages, but fragments can be requested with the
unwrap_html=true
query param.Data Attributes
Adds the following html data attributes to rendered JSON:
data-entry-key-name
- for a.json-map-entry
this is the key namedata-entry-idx
- the index of the map entrydata-element-idx
- the index of a.json-array-element
data-path
- the comma-separated path into the json structuredata-count
- for collections like maps + arrays, the number of elementsdata-json
- appears on.json-map
, contains pretty-printed json suitable for display.data-scalar-value
- for leaves, the content string