Commit 1fc773eb authored by François Agneray's avatar François Agneray
Browse files

Change dataset config format

parent cccaf876
Pipeline #5415 passed with stages
in 2 minutes and 35 seconds
......@@ -72,10 +72,10 @@ curl -d '{"label":"SVOM dataset family","display":20}' --header 'Content-Type: a
curl -d '{"label":"IRiS dataset family","display":30}' --header 'Content-Type: application/json' -X POST http://localhost/instance/default/dataset-family
# Add datasets
curl -d '{"name":"vipers_dr2_w1","table_ref":"aspic_vipers_dr2_w1","label":"VIPERS-W1 (DR2)","description":"VIPERS W1 dataset","display":10,"data_path":"\/ASPIC\/VIPERS_DR2","config":{"cone_search":{"enabled":false,"column_ra":null,"column_dec":null},"result_page_modules":{"results_server_link":false,"opened_datatable":false,"selectable_row":false},"results_format":{"csv":false,"ascii":false,"vo":false}},"public":true,"survey_name":"anis_survey"}' --header 'Content-Type: application/json' -X POST http://localhost/dataset-family/1/dataset
curl -d '{"name":"sp_cards","table_ref":"sp_cards","label":"SP Metadata","description":"Contains metadata of scientific products (Core Program & General Program)","display":20,"data_path":"","config":{"cone_search":{"enabled":false,"column_ra":null,"column_dec":null},"result_page_modules":{"results_server_link":false,"opened_datatable":false,"selectable_row":false},"results_format":{"csv":false,"ascii":false,"vo":false}},"public":true,"survey_name":"svom"}' --header 'Content-Type: application/json' -X POST http://localhost/dataset-family/2/dataset
curl -d '{"name":"observations","table_ref":"v_observation","label":"IRiS obs","description":"IRiS observations","display":10,"data_path":"\/IRIS\/observations","config":{"cone_search":{"enabled":false,"column_ra":null,"column_dec":null},"result_page_modules":{"results_server_link":false,"opened_datatable":false,"selectable_row":false},"results_format":{"csv":false,"ascii":false,"vo":false}},"public":true,"survey_name":"iris"}' --header 'Content-Type: application/json' -X POST http://localhost/dataset-family/3/dataset
curl -d '{"name":"vvds_f02_udeep","table_ref":"aspic_vvds_f02_udeep","label":"VVDS2h Ultra Deep","description":"VVDS2h Ultra Deep","display":20,"data_path":"","config":{"cone_search":{"enabled":false,"column_ra":null,"column_dec":null},"result_page_modules":{"results_server_link":false,"opened_datatable":false,"selectable_row":false},"results_format":{"csv":false,"ascii":false,"vo":false}},"public":true,"survey_name":"anis_survey"}' --header 'Content-Type: application/json' -X POST http://localhost/dataset-family/1/dataset
curl -d '{"name":"vipers_dr2_w1","table_ref":"aspic_vipers_dr2_w1","label":"VIPERS-W1 (DR2)","description":"VIPERS W1 dataset","display":10,"data_path":"\/ASPIC\/VIPERS_DR2","config":{"cone_search":{"enabled":false,"column_ra":null,"column_dec":null},"download":{"enabled":true,"opened":false,"csv":true,"ascii":true,"vo":false,"archive":true},"summary":{"enabled":true,"opened":false},"server_link":{"enabled":false},"samp":{"enabled":false},"datatable":{"enabled":true,"selectable_row":false}},"public":true,"survey_name":"anis_survey"}' --header 'Content-Type: application/json' -X POST http://localhost/dataset-family/1/dataset
curl -d '{"name":"sp_cards","table_ref":"sp_cards","label":"SP Metadata","description":"Contains metadata of scientific products (Core Program & General Program)","display":20,"data_path":"","config":{"cone_search":{"enabled":false,"column_ra":null,"column_dec":null},"download":{"enabled":true,"opened":false,"csv":true,"ascii":true,"vo":false,"archive":true},"summary":{"enabled":true,"opened":false},"server_link":{"enabled":false},"samp":{"enabled":false},"datatable":{"enabled":true,"selectable_row":false}},"public":true,"survey_name":"svom"}' --header 'Content-Type: application/json' -X POST http://localhost/dataset-family/2/dataset
curl -d '{"name":"observations","table_ref":"v_observation","label":"IRiS obs","description":"IRiS observations","display":10,"data_path":"\/IRIS\/observations","config":{"cone_search":{"enabled":false,"column_ra":null,"column_dec":null},"download":{"enabled":true,"opened":false,"csv":true,"ascii":true,"vo":false,"archive":true},"summary":{"enabled":true,"opened":false},"server_link":{"enabled":false},"samp":{"enabled":false},"datatable":{"enabled":true,"selectable_row":false}},"public":true,"survey_name":"iris"}' --header 'Content-Type: application/json' -X POST http://localhost/dataset-family/3/dataset
curl -d '{"name":"vvds_f02_udeep","table_ref":"aspic_vvds_f02_udeep","label":"VVDS2h Ultra Deep","description":"VVDS2h Ultra Deep","display":20,"data_path":"","config":{"cone_search":{"enabled":false,"column_ra":null,"column_dec":null},"download":{"enabled":true,"opened":false,"csv":true,"ascii":true,"vo":false,"archive":true},"summary":{"enabled":true,"opened":false},"server_link":{"enabled":false},"samp":{"enabled":false},"datatable":{"enabled":true,"selectable_row":false}},"public":true,"survey_name":"anis_survey"}' --header 'Content-Type: application/json' -X POST http://localhost/dataset-family/1/dataset
# Add vipers_dr2_w1 attributes
curl -d '{"label":"Default","display":10}' --header 'Content-Type: application/json' -X POST http://localhost/dataset/vipers_dr2_w1/criteria-family
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment