Skip to content

Instantly share code, notes, and snippets.

View hburgund's full-sized avatar

Halsey Burgund hburgund

View GitHub Profile
@hburgund
hburgund / api2-uiconfig.json
Last active October 7, 2017 14:53
proposed response format from new api/2/projects/:id/uiconfig/ endpoint
{
"speak": [
{
"select": "single",
"group_short_name": "Gender",
"header_display_text": "What gender are you?",
"display_items": [
{
"id": 8,
"tag_id": 3,
{"ui_groups":[
{
"ui_mode": "listen",
"name": "exhibition",
"header_text_loc": "Which exhibition?",
"select": "single",
"active": True,
"index": 0,
"tag_category": 1,
"project": 1,
@hburgund
hburgund / api2-tags
Last active March 9, 2016 19:38
Sample results from proposed new tags endpoint: http://devapi.digita11y.org/api/2/projects/1/tags/?session_id=1
{"tags":[
{
"id": 10,
"tag_category": 1,
"value": "Ropes Mansion",
"description": "a big house",
"data": "{'text': 'some optional JSON'}",
"relationships": [
{
"id": 100,
@hburgund
hburgund / move_listener
Created February 2, 2015 19:29
sample RW server response to move_listener APIv1 call
{
"success": true
}
@hburgund
hburgund / modify_stream
Created February 2, 2015 19:27
sample RW server response to modify_stream APIv1 call
{
"success": true
}
@hburgund
hburgund / request_stream
Created February 2, 2015 19:26
sample RW server response to request_stream APIv1 call
{
"stream_url": "http://scapesaudio.dyndns.org:8000/scapes1.mp3"
}
@hburgund
hburgund / tags
Created January 28, 2015 03:30
server JSON response for get_tags API call (currently api/1)
{
"listen": [
{
"code": "gender",
"defaults": [
3,
4
],
"header_text": "What genders do you want to listen to?",
"name": "What genders do you want to listen to?",
@hburgund
hburgund / config
Created January 24, 2015 21:53
sample RW server response to get_config APIv1 call
[
{
"device": {
"device_id": "485e6c7f-ca92-4299-88df-edabeb944db7"
}
},
{
"notifications": {
"startup_message": ""
}