in progress...
This commit is contained in:
24
Readme.md
24
Readme.md
@ -146,9 +146,9 @@ The response is in JSON.
|
||||
]
|
||||
```
|
||||
|
||||
### Example JSON Queries
|
||||
### Example Queries
|
||||
|
||||
Following examples build on this data:
|
||||
Following examples build on a waveform data (see below). They also work for scalars (consider it as a waveform of length = 1) and images (waveform of length = dimX * dimY).
|
||||
|
||||

|
||||
|
||||
@ -226,8 +226,9 @@ Following examples build on this data:
|
||||
]
|
||||
```
|
||||
|
||||
### Query Examples
|
||||
|
||||
#### Query by Pulse-Id
|
||||
##### Query by Pulse-Id
|
||||
|
||||
```
|
||||
{
|
||||
@ -239,7 +240,11 @@ Following examples build on this data:
|
||||
}
|
||||
```
|
||||
|
||||
#### Query by Time
|
||||
```bash
|
||||
curl -H "Content-Type: application/json" -X POST -d '{"startPulseId":0,"endPulseId":3,"channels":["Channel_01"]}' http://sf-nube-14.psi.ch:8080/query
|
||||
```
|
||||
|
||||
##### Query by Time
|
||||
|
||||
```
|
||||
{
|
||||
@ -253,7 +258,12 @@ Following examples build on this data:
|
||||
}
|
||||
```
|
||||
|
||||
#### Query by Date
|
||||
```bash
|
||||
curl -H "Content-Type: application/json" -X POST -d '{"startMillis":0,"startNanos":0,"endMillis":30,"endNanos":999999,"channels":["Channel_01"]}' http://sf-nube-14.psi.ch:8080/query
|
||||
```
|
||||
|
||||
|
||||
##### Query by Date
|
||||
|
||||
```
|
||||
{
|
||||
@ -265,4 +275,8 @@ Following examples build on this data:
|
||||
"Channel_01"
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
```bash
|
||||
curl -H "Content-Type: application/json" -X POST -d '{"startDate":"1970/01/01 01:00:00.000","startNanos":0,"endDate":"1970/01/01 01:00:00.030","endNanos":999999,"channels":["Channel_01"]}' http://sf-nube-14.psi.ch:8080/query
|
||||
```
|
Reference in New Issue
Block a user