Export server documentation

URL construction

To request the server, you need to construct a correct URL. Just below you can find the URL schema and a description of mandatory parameters:

{{ getUrlServer() }}/search/dataset?a=id_attribute&c=id_attribute::operator::value
  • dataset: dataset in which to search. See datasets section for available datasets.
  • a: output parameters as attributes id list semicolon separated. See outputs section for available attributes.
  • a=1;2;3
  • c: criteria list separated with semicolon. A criterion is defined by an id_attribute, an operator and a value. See operators section for available operators.
  • c=3::eq::ping;2::eq::pong

Available parameters

Operators
operator description usage example
eq equal to c=id_attribute::eq::value c=1::eq::89
neq not equal to c=id_attribute::neq::value c=1::neq::89
gt greater than c=id_attribute::gt::value c=1::gt::1.5
gte greater than or equal to c=id_attribute::gte::value c=1::gte::2
lt lower than c=id_attribute::lt::value c=1::lt::1.5
lte lower than or equal to c=id_attribute::lte::value c=1::lte::2
bw between c=id_attribute::bw::value_min|value_max c=1::bw::10|90
lk like c=id_attribute::lk::value c=1::lk::ping
nlk not like c=id_attribute::nlk::value c=1::nlk::pong
in in c=id_attribute::in::value_x|value_y|value_z c=1::in::ping|pong|paff
nin not in c=id_attribute::nin::value_x|value_y|value_z c=1::nin::ping|pong|paf
nl is null c=id_attribute::nl c=1::nl
nnl is not null c=id_attribute::nnl c=1::nnl
js json c=id_attribute::js::extension,keyword|operator|value c=1::js::PrimaryHDU,ID|eq|45

Examples

We supposed to have the dataset ping with following attributes:
id attribute
1 obs_id
2 ra
3 dec
4 instrument
{{ getUrlServer() }}/search/ping?a=1;2;3&c=1::eq::1

This will return the obs_id with its value equals to 1 and display obs_id, RA and DEC as outputs.

{{ getUrlServer() }}/search/ping?a=1;2;3;4&c=4::in::TEL_1|TEL_2

This will return a list of TEL_1 or TEL_2 observations with all available outputs.

{{ getUrlServer() }}/search/ping?a=1&c=2::gt::1;3::gt::2

This will return a list of obs_id where RA is greater than 1 and DEC is greater than 2