Closed jankammerath closed 6 years ago
Here is the spec for the server's API:
/ = status info with no of chans, no of programmes & no of recordings /list.json = full channel list with their names and number of programmes /record.json = list of scheduled and existing recordings (GET params provide option to add/ delete) /epg.json = the full epg as json as it appears on the UI /channel/bbc.json = full epg for channel bbc
A server backend running as a daemon will provide a JSON API interface through HTTP. A switch allows to set the application into server-mode and the client will be able to use the server instead of its local files.
Daemon server process
By default the application will launch a daemon running in the background that operates epg data and also controls the scheduled recordings.
JSON HTTP API
The following methods will be available on the server's API:
The json-c lib is already linked and in use. For the server it is potentially interesting to use libmicrohttpd which is a GNU project and provides a reasonable HTTP server.