mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-02 18:24:15 +02:00
0501533b80
git-subtree-dir: cadump git-subtree-mainline:c99ec49917git-subtree-split:89228a57f2
24 lines
1.0 KiB
HTTP
24 lines
1.0 KiB
HTTP
# For a quick start check out our HTTP Requests collection (Tools|HTTP Client|Open HTTP Requests Collection) or
|
|
# paste cURL into the file and request will be converted to HTTP Request format.
|
|
#
|
|
# Following HTTP Request Live Templates are available:
|
|
# * 'gtrp' and 'gtr' create a GET request with or without query parameters;
|
|
# * 'ptr' and 'ptrp' create a POST request with a simple or parameter-like body;
|
|
# * 'mptr' and 'fptr' create a POST request to submit a form with a text or file field (multipart/form-data);
|
|
|
|
# curl -XPUT -d '{"range":{"startPulseId": 11281433214, "endPulseId": 7281489688}, "parameters":{"output_file":"test.h5"}}' http://localhost:10200/notify
|
|
PUT http://localhost:10200/notify
|
|
Content-Type: application/json
|
|
|
|
{"range":{"startPulseId": 11876043548, "endPulseId": 11876044548}, "parameters":{"output_file":"test.h5"}}
|
|
|
|
###
|
|
|
|
PUT http://localhost:10200/notify
|
|
Content-Type: application/json
|
|
|
|
{"range":{"startPulseId": 11876043548, "endPulseId": 11876044548}, "parameters":{"output_file":"test.h5"}, "channels": ["ABC"]}
|
|
|
|
###
|
|
|