forked from StreamMachine/StreamMachine
-
Notifications
You must be signed in to change notification settings - Fork 0
Stephane Jourdan edited this page Aug 4, 2015
·
7 revisions
The StreamMachine API gives some information and manipulation options.
All routes are handled in api.coffee.
- GET
/api/streams
outputs the available streams, source status, or HLS information- GET
/api/streams/<stream_name>
outputs specific streams configuration information
- GET
- GET
/api/config
outputs all available configuration for the streams- GET
/api/streams/<stream_name>/config
outputs all available configuration for a single stream
- GET
- GET
/api/slaves
outputs for each stream master/slave status information - GET
/api/listeners
couldn't get it to work but probably outputs the listener count
- POST
/api/streams
creates a new stream - POST
/api/streams/<stream_name>/metadata
- POST
/api/streams/<stream_name>/promote
- POST
/api/streams/<stream_name>/drop
Examples:
- to create a new stream, you need a at least a
key
:
curl -F 'key=test' http://a.b.c.d:port/api/streams
- PUT
/api/streams/<stream_name>/config
- DELETE
/api/streams/<stream_name>
Examples:
- to delete the
test
stream:
$ curl -X "DELETE" http://a.b.c.d:port/api/streams/test
"OK"