rossvideo / Catena

BSD 3-Clause "New" or "Revised" License
6 stars 2 forks source link

add hacky support for EOs in time for NAB demo #146

Closed mejohnnaylor closed 5 months ago

mejohnnaylor commented 6 months ago

1) add an option to full_service to specify a root folder from which to serve external objects (e.g. xml files, pngs, jpegs). 2) add the ExternalObjectRequest RFC to the existing service. Note that this is the same pattern RFC as DeviceRequest. For now, respond to requests with a single-element stream - i.e. send the whole external object in one go, not chunks. 3) the external objects to serve will be found in ${static_root} - i.e. the root folder specified on the command line. Maybe the default for this should be ${HOME}?

limitations.

Dashboard will request EOs by number only.

  "oid": "7",
  "slot": 1

Interpret this as meaning "give me the file called "7" found in ${static_root}.

Respond with "unavailable" or whatever the closest matching status code is when the file can't be found.

mejohnnaylor commented 5 months ago

closed - working for now. more minor changes required to use correct JSON pointers - JP is working on updating DB to do this. JD to update server side to follow along.