Commit 03c27700 authored by François Agneray's avatar François Agneray
Browse files

Reorganize conf-dev files

parent 10441459
Pipeline #4992 passed with stages
in 2 minutes and 24 seconds
--
-- PostgreSQL database dump
--
-- Dumped from database version 10.14
-- Dumped by pg_dump version 10.14
-- Started on 2020-09-07 16:05:33 CEST
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', false);
SET check_function_bodies = false;
SET xmloption = content;
SET client_min_messages = warning;
SET row_security = off;
SET default_tablespace = '';
SET default_with_oids = false;
--
-- TOC entry 219 (class 1259 OID 833027)
-- Name: aspic_gama_g02; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.aspic_gama_g02 (
cataid numeric NOT NULL,
ra numeric,
"dec" numeric,
z numeric,
fuv numeric,
err_fuv numeric,
nuv numeric,
err_nuv numeric,
mag_auto_u_1 numeric,
magerr_auto_u_1 numeric,
mag_auto_g_1 numeric,
magerr_auto_g_1 numeric,
mag_auto_r_1 numeric,
magerr_auto_r_1 numeric,
mag_auto_i_1 numeric,
magerr_auto_i_1 numeric,
mag_auto_z_1 numeric,
magerr_auto_z_1 numeric,
ks numeric,
err_ks numeric,
ywir numeric,
err_ywir numeric,
sig_hb numeric,
sig_hb_err numeric,
hb_flux numeric,
hb_flux_err numeric,
hb_ew numeric,
hb_ew_err numeric,
sig_hb_abs numeric,
sig_hb_abs_err numeric,
hb_abs_flux numeric,
hb_abs_flux_err numeric,
hb_abs_ew numeric,
hb_abs_ew_err numeric,
sig_hb_b numeric,
sig_hb_b_err numeric,
hb_b_flux numeric,
hb_b_flux_err numeric,
hb_b_ew numeric,
hb_b_ew_err numeric,
sig_oiiib numeric,
sig_oiiib_err numeric,
oiiib_flux numeric,
oiiib_flux_err numeric,
oiiib_ew numeric,
oiiib_ew_err numeric,
sig_oiiir numeric,
sig_oiiir_err numeric,
oiiir_flux numeric,
oiiir_flux_err numeric,
oiiir_ew numeric,
oiiir_ew_err numeric,
sig_ha numeric,
sig_ha_err numeric,
ha_flux numeric,
ha_flux_err numeric,
ha_ew numeric,
ha_ew_err numeric,
sig_ha_abs numeric,
sig_ha_abs_err numeric,
ha_abs_flux numeric,
ha_abs_flux_err numeric,
ha_abs_ew numeric,
ha_abs_ew_err numeric,
sig_ha_b numeric,
sig_ha_b_err numeric,
ha_b_flux numeric,
ha_b_flux_err numeric,
ha_b_ew numeric,
ha_b_ew_err numeric,
sig_niib numeric,
sig_niib_err numeric,
niib_flux numeric,
niib_flux_err numeric,
niib_ew numeric,
niib_ew_err numeric,
sig_niir numeric,
sig_niir_err numeric,
niir_flux numeric,
niir_flux_err numeric,
niir_ew numeric,
niir_ew_err numeric,
url character varying(255),
url_img character varying(255),
chi2_red numeric,
logmstar numeric,
logmstar_err numeric,
sfr numeric,
sfr_err numeric
);
ALTER TABLE public.aspic_gama_g02 OWNER TO anis;
--
-- TOC entry 5271 (class 0 OID 833027)
-- Dependencies: 219
-- Data for Name: aspic_gama_g02; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public.aspic_gama_g02 (cataid, ra, "dec", z, fuv, err_fuv, nuv, err_nuv, mag_auto_u_1, magerr_auto_u_1, mag_auto_g_1, magerr_auto_g_1, mag_auto_r_1, magerr_auto_r_1, mag_auto_i_1, magerr_auto_i_1, mag_auto_z_1, magerr_auto_z_1, ks, err_ks, ywir, err_ywir, sig_hb, sig_hb_err, hb_flux, hb_flux_err, hb_ew, hb_ew_err, sig_hb_abs, sig_hb_abs_err, hb_abs_flux, hb_abs_flux_err, hb_abs_ew, hb_abs_ew_err, sig_hb_b, sig_hb_b_err, hb_b_flux, hb_b_flux_err, hb_b_ew, hb_b_ew_err, sig_oiiib, sig_oiiib_err, oiiib_flux, oiiib_flux_err, oiiib_ew, oiiib_ew_err, sig_oiiir, sig_oiiir_err, oiiir_flux, oiiir_flux_err, oiiir_ew, oiiir_ew_err, sig_ha, sig_ha_err, ha_flux, ha_flux_err, ha_ew, ha_ew_err, sig_ha_abs, sig_ha_abs_err, ha_abs_flux, ha_abs_flux_err, ha_abs_ew, ha_abs_ew_err, sig_ha_b, sig_ha_b_err, ha_b_flux, ha_b_flux_err, ha_b_ew, ha_b_ew_err, sig_niib, sig_niib_err, niib_flux, niib_flux_err, niib_ew, niib_ew_err, sig_niir, sig_niir_err, niir_flux, niir_flux_err, niir_ew, niir_ew_err, url, url_img, chi2_red, logmstar, logmstar_err, sfr, sfr_err) FROM stdin;
2343537 36.162575 -4.228418 0.06168 -9999.0 -9999.0 -9999.0 -9999.0 19.3666 0.000940856 18.237 0.000396547 17.6881 0.000350743 17.3413 0.000340303 17.1094 0.00044649 -9999.0 -9999.0 16.94440380240272 0.0057 1.41176 0.111765 147.386 15.0323 5.04562 0.51518 7.08086 1.11626 -131.987 32.5804 -4.51865 1.11562 -99999.0 -99999.0 -99999.0 -99999.0 -99999.0 -99999.0 1.12838 0.0 32.2545 5.484 1.1057 0.188069 1.1242 0.0 55.4157 6.92746 1.90095 0.23781 2.32382 0.0537263 568.051 18.5769 25.1713 0.828212 6.54805 4.09869 -34.8483 41.7552 -1.54417 1.85023 -99999.0 -99999.0 -99999.0 -99999.0 -99999.0 -99999.0 2.36541 0.0689657 60.1321 7.58228 2.66438 0.3361 2.36597 0.0689821 193.954 7.8292 8.5952 0.348353 GAMA_DR3/gama/G02_Y5_091_355.fit http://www.gama-survey.org/dr3/data/spectra/gama/reduced_27/1d/png/G02_Y5_091_355.png 1.4539229248865058 10.151737935278518 9.754073378451837 3.812972348882642 2.796305316790736
1788881 36.2402 -4.238301 0.06214 22.013 0.046 21.185 0.024 18.9691 0.000820007 17.5127 0.000300377 16.7448 0.000216459 16.3034 0.000199637 15.9684 0.000219477 -9999.0 -9999.0 15.71552093081774 0.0018 1.1242 0.0 27.4934 8.24876 0.609904 0.183013 13.8602 0.0 -132.68 29.8946 -2.94328 0.663321 -99999.0 -99999.0 -99999.0 -99999.0 -99999.0 -99999.0 14.2024 0.0 133.275 28.2246 2.95404 0.625769 14.2701 0.0 48.4965 40.5725 1.07446 0.898914 4.18545 0.198376 1233.9 58.4829 15.9545 0.757137 5.12256 0.402927 -758.023 63.5312 -9.80131 0.821794 -99999.0 -99999.0 -99999.0 -99999.0 -99999.0 -99999.0 3.69904 0.106143 158.032 13.8784 2.04347 0.179523 3.7053 0.106323 551.54 21.3258 7.13096 0.276244 GAMA_DR3/gama/G02_Y3_006_342.fit http://www.gama-survey.org/dr3/data/spectra/gama/reduced_27/1d/png/G02_Y3_006_342.png 2.423742496247961 10.719200986351614 9.844051813626809 0.3227338175704813 0.1882968476672116
1789890 36.164642 -4.169397 0.10402 21.099 0.019 20.57 0.0090 19.7118 0.00114264 18.4866 0.000443642 17.9292 0.000387229 17.5889 0.000358621 17.3518 0.000526344 -9999.0 -9999.0 17.21133146944058 0.0060 1.1242 0.0 61.5117 28.9882 2.36139 1.11303 14.4006 0.0 -155.853 35.3941 -5.98281 1.35972 -99999.0 -99999.0 -99999.0 -99999.0 -99999.0 -99999.0 4.08359 1.50003 42.666 22.4109 1.64055 0.861841 4.10064 1.50629 36.3019 20.8321 1.39694 0.801743 2.35482 0.11237 288.679 19.3187 15.914 1.07414 -99999.0 -99999.0 -99999.0 -99999.0 -99999.0 -99999.0 34.8762 29.6012 44.0998 55.9947 2.43116 3.08699 2.41524 0.22677 21.0494 5.68096 1.16033 0.313324 2.41606 0.226847 96.1154 11.5255 5.29893 0.637116 GAMA_DR3/gama/G02_Y5_082_307.fit http://www.gama-survey.org/dr3/data/spectra/gama/reduced_27/1d/png/G02_Y5_082_307.png 3.335582324322374 10.128526687623188 9.289252754179097 6.686186360539965 3.1495999263214616
1789752 36.238906 -4.178767 0.14214 24.433 0.09 23.325 0.036 21.4536 0.00341768 19.9475 0.000986789 18.9848 0.000697223 18.516 0.000635056 18.1256 0.000736899 -9999.0 -9999.0 17.972101907509405 0.0073 4.83655 1.59994 87.0773 30.8447 11.4031 4.04254 6.5627 1.51785 -136.05 31.4662 -17.8163 4.12853 -99999.0 -99999.0 -99999.0 -99999.0 -99999.0 -99999.0 0.188547 0.0 6.25742 3.56563 0.818834 0.466738 1.69427 0.0 21.0611 7.79787 2.75503 1.02081 1.69427 0.0 5.8101 14.1763 0.719916 1.75656 2.9023 1.60049 -16.9398 23.6796 -2.09897 2.93414 -99999.0 -99999.0 -99999.0 -99999.0 -99999.0 -99999.0 1.6978 0.0 6.87749 3.16906 0.852228 0.39276 1.69427 0.0 5.61988 3.627 0.696269 0.449401 GAMA_DR3/gama/G02_Y5_107_253.fit http://www.gama-survey.org/dr3/data/spectra/gama/reduced_27/1d/png/G02_Y5_107_253.png 2.7366502121691627 10.566711777977593 9.86247060179375 1.0252312851028487 0.7234934763087535
2343918 36.23596 -4.162365 0.20903 25.232 0.208 24.138 0.063 21.187 0.00256365 19.4706 0.00073707 18.3741 0.000500622 17.8907 0.000406513 17.5729 0.000465037 -9999.0 -9999.0 17.329550023916106 0.0053 2.32242 0.595639 110.37 30.7677 6.96279 1.94219 3.18771 0.738787 -130.54 30.2541 -8.23524 1.9103 -99999.0 -99999.0 -99999.0 -99999.0 -99999.0 -99999.0 3.46677 2.3946 16.1119 15.3957 1.01784 0.972644 3.4764 2.40125 9.79674 11.4037 0.61933 0.720946 3.25006 0.621923 68.9824 13.2003 4.54774 0.870809 5.90576 0.953347 -94.0574 21.9822 -6.20079 1.44982 -99999.0 -99999.0 -99999.0 -99999.0 -99999.0 -99999.0 1.6978 0.0 5.06234 6.95486 0.333787 0.458577 1.69427 0.0 7.35389 3.2333 0.48472 0.213144 GAMA_DR3/gama/G02_Y3_015_358.fit http://www.gama-survey.org/dr3/data/spectra/gama/reduced_27/1d/png/G02_Y3_015_358.png 7.946562803214832 11.200298707270198 10.204868318216658 0.2623157644277296 0.024662972298472533
1789978 36.188498 -4.163845 0.2382 21.843 0.026 21.436 0.016 20.843 0.00252416 19.6231 0.000975016 18.7542 0.000657986 18.3267 0.000676385 18.0685 0.000888444 -9999.0 -9999.0 17.98900897121927 0.012 2.70348 1.28974 18.1832 11.1789 1.55068 0.953446 16.2213 0.0 -34.144 19.3607 -2.91209 1.65145 -99999.0 -99999.0 -99999.0 -99999.0 -99999.0 -99999.0 3.11331 1.12027 1.3802 5.79481 0.118086 0.495788 3.12042 1.12283 21.6388 10.3983 1.8543 0.891217 2.01571 0.192584 59.3708 7.5598 5.20693 0.730907 -99999.0 -99999.0 -99999.0 -99999.0 -99999.0 -99999.0 85.099 50.3268 216.067 165.101 18.9487 14.5223 2.35072 0.314124 -0.13718 7.61249 -0.012033 0.667743 2.3512 0.314189 48.8707 8.50379 4.28497 0.787403 GAMA_DR3/gama/G02_Y5_091_312.fit http://www.gama-survey.org/dr3/data/spectra/gama/reduced_27/1d/png/G02_Y5_091_312.png 1.5134964811240368 10.880978356075236 10.394753502718462 8.658254262866398 9.355826258280498
1789814 36.222075 -4.171732 0.27638 23.824 0.055 22.524 0.019 21.5891 0.00347751 20.411 0.00122627 19.4441 0.000845147 18.9473 0.000780131 18.581 0.000997363 -9999.0 -9999.0 18.368605844398687 0.0117 1.69427 0.0 6.03775 2.86781 0.96617 0.459027 -99999.0 -99999.0 -99999.0 -99999.0 -99999.0 -99999.0 22.3077 0.0 0.0 0.0 0.0 0.0 5.76941 4.49953 7.68786 8.72721 1.23896 1.40652 5.79297 4.51791 5.1736 6.84411 0.836871 1.10713 3.91728 0.31932 75.3841 7.63963 14.972 1.52967 9.40083 0.0 0.0 0.0 0.0 0.0 -99999.0 -99999.0 -99999.0 -99999.0 -99999.0 -99999.0 5.04162 1.18783 12.7539 5.77813 2.53099 1.14713 5.0525 1.19039 32.4315 9.31753 6.44979 1.85492 GAMA_DR3/gama/G02_Y5_082_288.fit http://www.gama-survey.org/dr3/data/spectra/gama/reduced_27/1d/png/G02_Y5_082_288.png 3.942253332189462 10.635353159390663 9.959294869634306 12.656123194170437 8.145555138244266
1789368 36.212655 -4.201258 0.31794 25.779 0.271 26.487 0.499 23.0003 0.0119241 20.9599 0.00181921 19.5002 0.000872459 18.9268 0.000758253 18.5524 0.00097919 -9999.0 -9999.0 -9999.0 -9999.0 2.10515 1.02689 28.2604 14.6208 4.15731 2.1513 2.64591 0.985327 -40.2973 15.0066 -5.92796 2.20849 -99999.0 -99999.0 -99999.0 -99999.0 -99999.0 -99999.0 1.70056 0.0 9.80333 3.42828 1.44914 0.507016 1.69427 0.0 3.48478 3.13491 0.51633 0.464524 1.69427 0.0 0.0 0.0 0.0 0.0 -99999.0 -99999.0 -99999.0 -99999.0 -99999.0 -99999.0 93.5518 29.4085 371.139 144.593 76.7778 31.1664 14.6085 0.0 -36.0865 0.0 -7.40321 0.83699 14.647 0.0 -3.89569 15.4525 -0.811634 3.22075 GAMA_DR3/gama/G02_Y5_107_260.fit http://www.gama-survey.org/dr3/data/spectra/gama/reduced_27/1d/png/G02_Y5_107_260.png 9.361356389985998 11.940832177404799 11.26610197295118 1.2797054854546384 0.27930087622824185
\.
--
-- TOC entry 5084 (class 2606 OID 840720)
-- Name: aspic_gama_g02 aspic_gama_g02_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--
--
-- ALTER TABLE ONLY public.aspic_gama_g02
-- ADD CONSTRAINT aspic_gama_g02_pkey PRIMARY KEY (cataid);
--
-- TOC entry 5277 (class 0 OID 0)
-- Dependencies: 219
-- Name: TABLE aspic_gama_g02; Type: ACL; Schema: public; Owner: postgres
--
-- GRANT SELECT ON TABLE public.aspic_gama_g02 TO consult;
-- Completed on 2020-09-07 16:05:33 CEST
--
-- PostgreSQL database dump complete
--
......@@ -55,143 +55,89 @@ curl -d '{"label":"Display json","value":"json","display":50,"select_name":"rend
curl -d '{"label":"Image","value":"img","display":10,"select_name":"renderer_detail"}' --header 'Content-Type: application/json' -X POST http://localhost/option
curl -d '{"label":"Spectra graph","value":"spectra_graph","display":20,"select_name":"renderer_detail"}' --header 'Content-Type: application/json' -X POST http://localhost/option
# Add database
# Add anis_test database
curl -d '{"label":"Test","dbname":"anis_test","dbtype":"pdo_pgsql","dbhost":"db","dbport":5432,"dblogin":"anis","dbpassword":"anis"}' --header 'Content-Type: application/json' -X POST http://localhost/database
# Add default instance
curl -d '{"name":"default","label":"Default instance","client_url":"http://localhost:4200","config":{"authentication":{"allowed":false},"search":{"allowed":true},"search_multiple":{"allowed":false},"documentation":{"allowed":false}}}' --header 'Content-Type: application/json' -X POST http://localhost/instance
# Add ANIS, SVOM and IRIS projects
curl -d '{"name":"anis_project","label":"Anis Project Test","description":"Project used for testing","link":"http://project.com","manager":"M. Durand","id_database":1}' --header 'Content-Type: application/json' -X POST http://localhost/project
curl -d '{"name":"svom","label":"Svom Project Test","description":"Project used for testing","link":"http://svom.com","manager":"S. Basa","id_database":1}' --header 'Content-Type: application/json' -X POST http://localhost/project
curl -d '{"name":"iris","label":"IRiS Project Test","description":"Project used for testing","link":"http://iris.lam.fr","manager":"S. Basa","id_database":1}' --header 'Content-Type: application/json' -X POST http://localhost/project
curl -d '{"name":"anis_project","label":"ANIS Project","description":"Project used for testing","link":"https://anis.lam.fr","manager":"F. Agneray","id_database":1}' --header 'Content-Type: application/json' -X POST http://localhost/project
curl -d '{"name":"svom","label":"SVOM","description":"Project used for testing","link":"https://www.svom.eu","manager":"S. Basa","id_database":1}' --header 'Content-Type: application/json' -X POST http://localhost/project
curl -d '{"name":"iris","label":"IRiS","description":"Project used for testing","link":"http://iris.lam.fr","manager":"S. Basa","id_database":1}' --header 'Content-Type: application/json' -X POST http://localhost/project
# Add default dataset family and ANIS datasets
# Add dataset families
curl -d '{"label":"Default dataset family","display":10}' --header 'Content-Type: application/json' -X POST http://localhost/instance/default/dataset-family
curl -d '{"name":"obs_cat","table_ref":"obs_cat","label":"ObsCat dataset","description":"ObsCat","display":10,"count":10000,"vo":false,"data_path":"/mnt/mount","config":{"cone_search":{"enabled":true,"column_ra":2,"column_dec":3},"selectable_row":true},"public":true,"project_name":"anis_project"}' --header 'Content-Type: application/json' -X POST http://localhost/dataset-family/1/dataset
curl -d '{"name":"observations","table_ref":"observations_info","label":"Observations dataset","description":"Observations","display":20,"count":177454,"vo":false,"data_path":"/mnt/mount","config":{"selectable_row":false},"public":true,"project_name":"anis_project"}' --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":30,"count":1000,"vo":false,"data_path":"/ASPIC/VIPERS_DR2","config":{"selectable_row":false},"public":true,"project_name":"anis_project"}' --header 'Content-Type: application/json' -X POST http://localhost/dataset-family/1/dataset
curl -d '{"name":"gama_g02_dr3","table_ref":"aspic_gama_g02","label":"GAMA G02 (DR3)","description":"GAMA G02 dataset","display":40,"count":8,"vo":false,"data_path":"/mnt/mount","config":{"selectable_row":false},"public":true,"project_name":"anis_project"}' --header 'Content-Type: application/json' -X POST http://localhost/dataset-family/1/dataset
# Add ANIS obs_cat default criteria family, default output family and default output category
curl -d '{"label":"Default criteria family","display":10}' --header 'Content-Type: application/json' -X POST http://localhost/dataset/obs_cat/criteria-family
curl -d '{"label":"Default output family","display":10}' --header 'Content-Type: application/json' -X POST http://localhost/dataset/obs_cat/output-family
curl -d '{"label":"Default output category","display":10}' --header 'Content-Type: application/json' -X POST http://localhost/output-family/1/output-category
# Add SVOM dataset family and SVOM datasets
curl -d '{"label":"Svom dataset family","display":20}' --header 'Content-Type: application/json' -X POST http://localhost/instance/default/dataset-family
curl -d '{"name":"l1","table_ref":"public.v_rawproducts","label":"L0 & L1","description":"L0 & L1 products list","display":10,"count":0,"vo":false,"data_path":"/mnt/mount","config":{"results_server_link":{"enabled":true},"selectable_row":false},"public":true,"project_name":"svom"}' --header 'Content-Type: application/json' -X POST http://localhost/dataset-family/2/dataset
curl -d '{"name":"products","table_ref":"public.v_products","label":"Scientific Products","description":"SR3 & SR4 products list","display":20,"count":0,"vo":false,"data_path":"/mnt/mount","config":{"results_server_link":{"enabled":true},"selectable_row":false},"public":true,"project_name":"svom"}' --header 'Content-Type: application/json' -X POST http://localhost/dataset-family/2/dataset
curl -d '{"name":"sp_cards","table_ref":"sp_cards","label":"SP Metadata","description":"Contains metadata of scientific products (Core Program & General Program)","display":30,"count":100,"vo":false,"data_path":"/mnt/mount","config":{"results_server_link":{"enabled":true},"selectable_row":false},"public":true,"project_name":"svom"}' --header 'Content-Type: application/json' -X POST http://localhost/dataset-family/2/dataset
# Add SVOM l1 criteria families, default output family and default output category
curl -d '{"label":"Obs","display":10}' --header 'Content-Type: application/json' -X POST http://localhost/dataset/l1/criteria-family
curl -d '{"label":"Card","display":20}' --header 'Content-Type: application/json' -X POST http://localhost/dataset/l1/criteria-family
curl -d '{"label":"Default","display":10}' --header 'Content-Type: application/json' -X POST http://localhost/dataset/l1/output-family
curl -d '{"label":"Default","display":10}' --header 'Content-Type: application/json' -X POST http://localhost/output-family/2/output-category
curl -d '{"label":"SVOM dataset family","display":20}' --header 'Content-Type: application/json' -X POST http://localhost/instance/default/dataset-family
curl -d '{"label":"IRiS dataset family","display":30}' --header 'Content-Type: application/json' -X POST http://localhost/instance/default/dataset-family
# Edit SVOM l1 attributes
curl -d '{"id":1,"name":"rawproduct_id","table_name":"public.v_rawproducts","label":"rawproduct_id","form_label":"Raw product ID","description":null,"output_display":10,"criteria_display":10,"search_flag":"ID","search_type":"field","type":"integer","operator":"eq","min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":"json","renderer_config":null,"display_detail":10,"selected":true,"order_by":false,"order_display":10,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":2,"id_output_category":2}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/l1/attribute/1
curl -d '{"id":2,"name":"filename","table_name":"public.v_rawproducts","label":"filename","form_label":"Filename","description":null,"output_display":20,"criteria_display":20,"search_flag":null,"search_type":null,"type":"text","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"renderer_config":null,"display_detail":20,"selected":true,"order_by":false,"order_display":20,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":2}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/l1/attribute/2
curl -d '{"id":3,"name":"level","table_name":"public.v_rawproducts","label":"level","form_label":"Level","description":null,"output_display":30,"criteria_display":30,"search_flag":null,"search_type":"select-multiple","type":"string","operator":"eq","min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"renderer_config":null,"display_detail":30,"selected":true,"order_by":false,"order_display":30,"detail":false,"renderer_detail":null,"options":[{"label":"L0d","value":"L0d","display":10},{"label":"L0e","value":"L0e","display":20},{"label":"L1","value":"L1","display":30}],"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":2,"id_output_category":2}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/l1/attribute/3
curl -d '{"id":4,"name":"obs_id","table_name":"public.v_rawproducts","label":"obs_id","form_label":"Observation ID","description":null,"output_display":40,"criteria_display":40,"search_flag":null,"search_type":"field","type":"bigint","operator":"eq","min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"renderer_config":null,"display_detail":40,"selected":true,"order_by":false,"order_display":40,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":2,"id_output_category":2}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/l1/attribute/4
curl -d '{"id":5,"name":"obs_seq","table_name":"public.v_rawproducts","label":"obs_seq","form_label":"Obs seq","description":null,"output_display":50,"criteria_display":50,"search_flag":null,"search_type":null,"type":"integer","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"renderer_config":null,"display_detail":50,"selected":true,"order_by":false,"order_display":50,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":2}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/l1/attribute/5
curl -d '{"id":6,"name":"obs_num","table_name":"public.v_rawproducts","label":"obs_num","form_label":"Obs num","description":null,"output_display":60,"criteria_display":60,"search_flag":null,"search_type":null,"type":"integer","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"renderer_config":null,"display_detail":60,"selected":true,"order_by":false,"order_display":60,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":2}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/l1/attribute/6
curl -d '{"id":7,"name":"obs_type","table_name":"public.v_rawproducts","label":"obs_type","form_label":"Obs type","description":null,"output_display":70,"criteria_display":70,"search_flag":null,"search_type":null,"type":"integer","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"renderer_config":null,"display_detail":70,"selected":true,"order_by":false,"order_display":70,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":2}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/l1/attribute/7
curl -d '{"id":8,"name":"object_id","table_name":"public.v_rawproducts","label":"object_id","form_label":"Object ID","description":null,"output_display":80,"criteria_display":80,"search_flag":null,"search_type":null,"type":"integer","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"renderer_config":null,"display_detail":80,"selected":true,"order_by":false,"order_display":80,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":2}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/l1/attribute/8
curl -d '{"id":9,"name":"source_id","table_name":"public.v_rawproducts","label":"source_id","form_label":"Source ID","description":null,"output_display":90,"criteria_display":90,"search_flag":null,"search_type":null,"type":"integer","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"renderer_config":null,"display_detail":90,"selected":true,"order_by":false,"order_display":90,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":2}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/l1/attribute/9
curl -d '{"id":10,"name":"apid","table_name":"public.v_rawproducts","label":"apid","form_label":"Apid","description":null,"output_display":100,"criteria_display":100,"search_flag":null,"search_type":null,"type":"integer","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"renderer_config":null,"display_detail":100,"selected":true,"order_by":false,"order_display":100,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":2}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/l1/attribute/10
curl -d '{"id":11,"name":"category","table_name":"public.v_rawproducts","label":"category","form_label":"Category","description":null,"output_display":110,"criteria_display":110,"search_flag":null,"search_type":null,"type":"string","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"renderer_config":null,"display_detail":110,"selected":true,"order_by":false,"order_display":110,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":2}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/l1/attribute/11
curl -d '{"id":12,"name":"instrument","table_name":"public.v_rawproducts","label":"instrument","form_label":"Instrument","description":null,"output_display":120,"criteria_display":120,"search_flag":null,"search_type":"select","type":"string","operator":"eq","min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"renderer_config":null,"display_detail":120,"selected":true,"order_by":false,"order_display":120,"detail":false,"renderer_detail":null,"options":[{"label":"MXT","value":"MXT","display":10},{"label":"VT","value":"VT","display":20},{"label":"ECL","value":"ECL","display":30},{"label":"GRM","value":"GRM","display":40},{"label":"PDPU","value":"PDPU","display":50},{"label":"GWAC","value":"GWAC","display":60},{"label":"CGFT","value":"CGFT","display":70},{"label":"FGFT","value":"FGFT","display":80},{"label":"FPL","value":"FPL","display":90},{"label":"CPL","value":"CPL","display":100},{"label":"INS","value":"INS","display":110},{"label":"NONE","value":"NONE","display":120}],"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":3,"id_output_category":2}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/l1/attribute/12
curl -d '{"id":13,"name":"detector","table_name":"public.v_rawproducts","label":"detector","form_label":"Detector","description":null,"output_display":130,"criteria_display":130,"search_flag":null,"search_type":null,"type":"string","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"renderer_config":null,"display_detail":130,"selected":true,"order_by":false,"order_display":130,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":2}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/l1/attribute/13
curl -d '{"id":14,"name":"version","table_name":"public.v_rawproducts","label":"version","form_label":"Version","description":null,"output_display":140,"criteria_display":140,"search_flag":null,"search_type":null,"type":"integer","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"renderer_config":null,"display_detail":140,"selected":true,"order_by":false,"order_display":140,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":2}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/l1/attribute/14
curl -d '{"id":15,"name":"ext_name","table_name":"public.v_rawproducts","label":"ext_name","form_label":"Ext name","description":null,"output_display":150,"criteria_display":150,"search_flag":null,"search_type":"field","type":"string","operator":"eq","min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"renderer_config":null,"display_detail":150,"selected":true,"order_by":false,"order_display":150,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":2,"id_output_category":2}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/l1/attribute/15
curl -d '{"id":16,"name":"ext_rel","table_name":"public.v_rawproducts","label":"ext_rel","form_label":"Ext rel","description":null,"output_display":160,"criteria_display":160,"search_flag":null,"search_type":null,"type":"float","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"renderer_config":null,"display_detail":160,"selected":true,"order_by":false,"order_display":160,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":2}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/l1/attribute/16
curl -d '{"id":17,"name":"group_name","table_name":"public.v_rawproducts","label":"group_name","form_label":"Group name","description":null,"output_display":170,"criteria_display":170,"search_flag":null,"search_type":null,"type":"string","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"renderer_config":null,"display_detail":170,"selected":true,"order_by":false,"order_display":170,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":2}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/l1/attribute/17
curl -d '{"id":18,"name":"packet_id","table_name":"public.v_rawproducts","label":"packet_id","form_label":"Packet ID","description":null,"output_display":180,"criteria_display":180,"search_flag":null,"search_type":null,"type":"integer","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"renderer_config":null,"display_detail":180,"selected":true,"order_by":false,"order_display":180,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":2}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/l1/attribute/18
curl -d '{"id":19,"name":"start_stime","table_name":"public.v_rawproducts","label":"start_stime","form_label":"Start Time","description":null,"output_display":190,"criteria_display":190,"search_flag":null,"search_type":"date","type":"datetime","operator":"gt","min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"renderer_config":null,"display_detail":190,"selected":true,"order_by":false,"order_display":190,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":2,"id_output_category":2}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/l1/attribute/19
curl -d '{"id":20,"name":"end_stime","table_name":"public.v_rawproducts","label":"end_stime","form_label":"End Time","description":null,"output_display":200,"criteria_display":200,"search_flag":null,"search_type":"date","type":"datetime","operator":"lt","min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"renderer_config":null,"display_detail":200,"selected":true,"order_by":false,"order_display":200,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":2,"id_output_category":2}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/l1/attribute/20
curl -d '{"id":21,"name":"conf_min","table_name":"public.v_rawproducts","label":"conf_min","form_label":"Conf min","description":null,"output_display":210,"criteria_display":210,"search_flag":null,"search_type":null,"type":"integer","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"renderer_config":null,"display_detail":210,"selected":true,"order_by":false,"order_display":210,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":2}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/l1/attribute/21
curl -d '{"id":23,"name":"temp_low","table_name":"public.v_rawproducts","label":"temp_low","form_label":"Temperature low","description":null,"output_display":230,"criteria_display":230,"search_flag":null,"search_type":null,"type":"float","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"renderer_config":null,"display_detail":230,"selected":true,"order_by":false,"order_display":230,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":2}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/l1/attribute/23
curl -d '{"id":24,"name":"temp_high","table_name":"public.v_rawproducts","label":"temp_high","form_label":"Temperature high","description":null,"output_display":240,"criteria_display":240,"search_flag":null,"search_type":null,"type":"float","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"renderer_config":null,"display_detail":240,"selected":true,"order_by":false,"order_display":240,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":2}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/l1/attribute/24
# Add SVOM products criteria families, default output family and default output category
curl -d '{"label":"Obs","display":10}' --header 'Content-Type: application/json' -X POST http://localhost/dataset/products/criteria-family
curl -d '{"label":"Card","display":20}' --header 'Content-Type: application/json' -X POST http://localhost/dataset/products/criteria-family
curl -d '{"label":"Default","display":10}' --header 'Content-Type: application/json' -X POST http://localhost/dataset/products/output-family
curl -d '{"label":"Default","display":10}' --header 'Content-Type: application/json' -X POST http://localhost/output-family/3/output-category
# Edit SVOM products attributes
curl -d '{"id":1,"name":"product_id","table_name":"public.v_products","label":"product_id","form_label":"Product ID","description":null,"output_display":10,"criteria_display":10,"search_flag":"ID","search_type":"field","type":"integer","operator":"eq","min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"renderer_config":null,"display_detail":10,"selected":true,"order_by":false,"order_display":10,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":4,"id_output_category":3}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/products/attribute/1
curl -d '{"id":2,"name":"obs_id","table_name":"public.v_products","label":"obs_id","form_label":"Observation ID","description":null,"output_display":20,"criteria_display":20,"search_flag":null,"search_type":"field","type":"bigint","operator":"eq","min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"renderer_config":null,"display_detail":20,"selected":true,"order_by":false,"order_display":20,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":4,"id_output_category":3}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/products/attribute/2
curl -d '{"id":3,"name":"sp_acronym","table_name":"public.v_products","label":"sp_acronym","form_label":"Product Acronym","description":null,"output_display":30,"criteria_display":30,"search_flag":null,"search_type":"svom-json-card","type":"string","operator":"eq","min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"renderer_config":null,"display_detail":30,"selected":true,"order_by":false,"order_display":30,"detail":false,"renderer_detail":null,"options":[{"label":"AV_AG_HOST","value":"AV_AG_HOST","display":10},{"label":"AV_AG_LOC","value":"AV_AG_LOC","display":20},{"label":"CLASS_EARLY","value":"CLASS_EARLY","display":30},{"label":"CRCLASS","value":"CRCLASS","display":40},{"label":"DT_GFT_i","value":"DT_GFT_i","display":50},{"label":"DT_GWAC","value":"DT_GWAC","display":60},{"label":"DT_MXT","value":"DT_MXT","display":70},{"label":"DT_VT","value":"DT_VT","display":80},{"label":"FDCHART_GWAC","value":"FDCHART_GWAC","display":90},{"label":"FDCHART_VT_B","value":"FDCHART_VT_B","display":100},{"label":"FDCHART_VT_R","value":"FDCHART_VT_R","display":110},{"label":"FLUENCE_ECL","value":"FLUENCE_ECL","display":120},{"label":"FLUENCE_ECLGRM","value":"FLUENCE_ECLGRM","display":130},{"label":"FLUENCE_GRM","value":"FLUENCE_GRM","display":140},{"label":"HR_ECL","value":"HR_ECL","display":150},{"label":"HR_ECLGRM","value":"HR_ECLGRM","display":160},{"label":"HR_GRM","value":"HR_GRM","display":170},{"label":"LAG_ECL","value":"LAG_ECL","display":180},{"label":"LAG_ECLGRM","value":"LAG_ECLGRM","display":190},{"label":"LAG_GRM","value":"LAG_GRM","display":200},{"label":"LC_ECL","value":"LC_ECL","display":210},{"label":"LC_GFT_i","value":"LC_GFT_i","display":220},{"label":"LC_GRM","value":"LC_GRM","display":230},{"label":"LC_GWAC","value":"LC_GWAC","display":240},{"label":"LC_MXT_i","value":"LC_MXT_i","display":250},{"label":"LC_PARAM_GFT","value":"LC_PARAM_GFT","display":260},{"label":"LC_PARAM_MXT","value":"LC_PARAM_MXT","display":270},{"label":"LC_PARAM_VT_B","value":"LC_PARAM_VT_B","display":280},{"label":"LC_PARAM_VT_R","value":"LC_PARAM_VT_R","display":290},{"label":"LC_VT_B","value":"LC_VT_B","display":300},{"label":"LC_VT_R","value":"LC_VT_R","display":310},{"label":"NH_HOST","value":"NH_HOST","display":320},{"label":"NH_LOC","value":"NH_LOC","display":330},{"label":"OBLC_ECL","value":"OBLC_ECL","display":340},{"label":"OBLC_GRM","value":"OBLC_GRM","display":350},{"label":"PF_ECL","value":"PF_ECL","display":360},{"label":"PF_GRM","value":"PF_GRM","display":370},{"label":"PF_GWAC","value":"PF_GWAC","display":380},{"label":"PHZ","value":"PHZ","display":390},{"label":"PO_ECL","value":"PO_ECL","display":400},{"label":"PO_GFT","value":"PO_GFT","display":410},{"label":"PO_GRM","value":"PO_GRM","display":420},{"label":"PO_GWAC","value":"PO_GWAC","display":430},{"label":"PO_MXT","value":"PO_MXT","display":440},{"label":"PO_VT","value":"PO_VT","display":450},{"label":"QCL_ECL","value":"QCL_ECL","display":460},{"label":"QCL_GRM","value":"QCL_GRM","display":470},{"label":"QF_GFT_i","value":"QF_GFT_i","display":480},{"label":"QF_GWAC","value":"QF_GWAC","display":490},{"label":"QF_MXT","value":"QF_MXT","display":500},{"label":"QF_VT_B","value":"QF_VT_B","display":510},{"label":"QF_VT_R","value":"QF_VT_R","display":520},{"label":"QHR_ECL","value":"QHR_ECL","display":530},{"label":"QHR_ECLGRM","value":"QHR_ECLGRM","display":540},{"label":"QHR_GRM","value":"QHR_GRM","display":550},{"label":"QLC_ECL","value":"QLC_ECL","display":560},{"label":"QLC_GFT_i","value":"QLC_GFT_i","display":570},{"label":"QLC_GRM","value":"QLC_GRM","display":580},{"label":"QLC_GWAC","value":"QLC_GWAC","display":590},{"label":"QLC_MXT","value":"QLC_MXT","display":600},{"label":"QLC_VT_B","value":"QLC_VT_B","display":610},{"label":"QLC_VT_R","value":"QLC_VT_R","display":620},{"label":"QPF_ECL","value":"QPF_ECL","display":630},{"label":"QPF_GRM","value":"QPF_GRM","display":640},{"label":"QPO_ECL","value":"QPO_ECL","display":650},{"label":"QPO_GRM","value":"QPO_GRM","display":660},{"label":"QPO_GWAC","value":"QPO_GWAC","display":670},{"label":"QPO_MXT","value":"QPO_MXT","display":680},{"label":"QPO_VT","value":"QPO_VT","display":690},{"label":"QSP_GRM","value":"QSP_GRM","display":700},{"label":"QSRCLIST_VT","value":"QSRCLIST_VT","display":710},{"label":"QT90_ECL","value":"QT90_ECL","display":720},{"label":"QT90_GRM","value":"QT90_GRM","display":730},{"label":"QTI_GFT_i","value":"QTI_GFT_i","display":740},{"label":"QTI_MXT","value":"QTI_MXT","display":750},{"label":"QTI_VT_B","value":"QTI_VT_B","display":760},{"label":"QTI_VT_R","value":"QTI_VT_R","display":770},{"label":"QUPLIM_GWAC","value":"QUPLIM_GWAC","display":780},{"label":"SP_ECL","value":"SP_ECL","display":790},{"label":"SP_ECLGRM","value":"SP_ECLGRM","display":800},{"label":"SP_GRM","value":"SP_GRM","display":810},{"label":"SP_MXT","value":"SP_MXT","display":820},{"label":"SP_PARAM_MXT","value":"SP_PARAM_MXT","display":830},{"label":"SP_PARAM_T_MXT","value":"SP_PARAM_T_MXT","display":840},{"label":"T90_ECL","value":"T90_ECL","display":850},{"label":"T90_GRM","value":"T90_GRM","display":860},{"label":"TT_ECL","value":"TT_ECL","display":870},{"label":"TT_GRM","value":"TT_GRM","display":880},{"label":"UPLIM_GFT_i","value":"UPLIM_GFT_i","display":890},{"label":"UPLIM_GWAC","value":"UPLIM_GWAC","display":900},{"label":"UPLIM_VT_B","value":"UPLIM_VT_B","display":910},{"label":"UPLIM_VT_R","value":"UPLIM_VT_R","display":920},{"label":"ECL-SKY-IMA","value":"ECL-SKY-IMA","display":82},{"label":"ECL-SOP-IMA","value":"ECL-SOP-IMA","display":84},{"label":"OBATT_VT","value":"OBATT_VT","display":332},{"label":"OBFIND_VT","value":"OBFIND_VT","display":334},{"label":"OBIM1B_VT","value":"OBIM1B_VT","display":336},{"label":"OBIM1R_VT","value":"OBIM1R_VT","display":338},{"label":"QIM1B_VT","value":"QIM1B_VT","display":554},{"label":"QIM1R_VT","value":"QIM1R_VT","display":556},{"label":"MXT-EVT-CAL","value":"MXT-EVT-CAL","display":315},{"label":"LAMTEST_DC1","value":"LAMTEST_DC1","display":5},{"label":"LAMTEST","value":"LAMTEST","display":4}],"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":5,"id_output_category":3}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/products/attribute/3
curl -d '{"id":4,"name":"filename","table_name":"public.v_products","label":"filename","form_label":"Product URL","description":null,"output_display":40,"criteria_display":40,"search_flag":null,"search_type":null,"type":"text","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":"link", "renderer_config": {"href": "$value", "display": "text", "text": "$value", "icon": "fas fa-link", "blank": true}, "display_detail":40,"selected":true,"order_by":false,"order_display":40,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":3}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/products/attribute/4
curl -d '{"id":5,"name":"criteria","table_name":"public.v_products","label":"criteria","form_label":"Criteria","description":null,"output_display":50,"criteria_display":50,"search_flag":null,"search_type":"svom-json-kw","type":"json","operator":"eq","min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":"json","renderer_config":null,"display_detail":50,"selected":true,"order_by":false,"order_display":50,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":5,"id_output_category":3}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/products/attribute/5
curl -d '{"id":6,"name":"added_at","table_name":"public.v_products","label":"added_at","form_label":"Added at","description":null,"output_display":60,"criteria_display":60,"search_flag":null,"search_type":"date","type":"datetime","operator":"gt","min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"renderer_config":null,"display_detail":60,"selected":true,"order_by":false,"order_display":60,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":4,"id_output_category":3}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/products/attribute/6
curl -d '{"id":7,"name":"version","table_name":"public.v_products","label":"version","form_label":"Version","description":null,"output_display":70,"criteria_display":70,"search_flag":null,"search_type":null,"type":"integer","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"renderer_config":null,"display_detail":70,"selected":true,"order_by":false,"order_display":70,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":3}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/products/attribute/7
curl -d '{"id":8,"name":"program","table_name":"public.v_products","label":"program","form_label":"Program","description":null,"output_display":80,"criteria_display":80,"search_flag":null,"search_type":"select","type":"string","operator":"eq","min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"renderer_config":null,"display_detail":80,"selected":true,"order_by":false,"order_display":80,"detail":false,"renderer_detail":null,"options":[{"label":"GP","value":"GP","display":10},{"label":"CP","value":"CP","display":20}],"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":5,"id_output_category":3}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/products/attribute/8
curl -d '{"id":9,"name":"instrument","table_name":"public.v_products","label":"instrument","form_label":"Instrument","description":null,"output_display":90,"criteria_display":90,"search_flag":null,"search_type":"select","type":"string","operator":"eq","min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"renderer_config":null,"display_detail":90,"selected":true,"order_by":false,"order_display":90,"detail":false,"renderer_detail":null,"options":[{"label":"GFT","value":"GFT","display":10},{"label":"MXT","value":"MXT","display":20},{"label":"GWAC","value":"GWAC","display":30},{"label":"VT","value":"VT","display":40},{"label":"GRM","value":"GRM","display":50},{"label":"ECL","value":"ECL","display":60},{"label":"ECLGRM","value":"ECLGRM","display":70},{"label":"ALL","value":"ALL","display":80}],"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":5,"id_output_category":3}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/products/attribute/9
curl -d '{"id":10,"name":"type","table_name":"public.v_products","label":"type","form_label":"Type","description":null,"output_display":100,"criteria_display":100,"search_flag":null,"search_type":null,"type":"string","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"renderer_config":null,"display_detail":100,"selected":true,"order_by":false,"order_display":100,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":3}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/products/attribute/10
# Add SVOM sp_cards criteria family, default output family and default output category
# Add datasets
curl -d '{"name":"vipers_dr2_w1","table_ref":"aspic_vipers_dr2_w1","label":"VIPERS-W1 (DR2)","description":"VIPERS W1 dataset","display":10,"count":0,"vo":false,"data_path":"\/ASPIC\/VIPERS_DR2","config":{"cone_search":{"enabled":false},"results_server_link":false,"opened_datatable":false,"selectable_row":false,"download_results_format":{"csv":false,"ascii":false,"spectra":false,"stamp":false,"vo":false,"fits":false}},"public":true,"project_name":"anis_project"}' --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,"count":0,"vo":false,"data_path":"","config":{"cone_search":{"enabled":false},"results_server_link":false,"opened_datatable":false,"selectable_row":false,"download_results_format":{"csv":false,"ascii":false,"spectra":false,"stamp":false,"vo":false,"fits":false}},"public":true,"project_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,"count":0,"vo":false,"data_path":"\/IRIS\/observations","config":{"cone_search":{"enabled":false},"results_server_link":false,"opened_datatable":false,"selectable_row":false,"download_results_format":{"csv":false,"ascii":false,"spectra":false,"stamp":false,"vo":false,"fits":false}},"public":true,"project_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,"count":0,"vo":false,"data_path":"","config":{"cone_search":{"enabled":false},"results_server_link":false,"opened_datatable":false,"selectable_row":false,"download_results_format":{"csv":false,"ascii":false,"spectra":false,"stamp":false,"vo":false,"fits":false}},"public":true,"project_name":"anis_project"}' --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
curl -d '{"label":"Default","display":10}' --header 'Content-Type: application/json' -X POST http://localhost/dataset/vipers_dr2_w1/output-family
curl -d '{"label":"Default","display":10}' --header 'Content-Type: application/json' -X POST http://localhost/output-family/1/output-category
curl -d '{"id":1,"name":"num","table_name":"aspic_vipers_dr2_w1","label":"num","form_label":"num","description":null,"output_display":10,"criteria_display":10,"search_flag":"ID","search_type":"field","type":"decimal","operator":"eq","min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"renderer":"detail","renderer_config":{"display":"text","blank":true},"display_detail":10,"selected":true,"order_by":false,"order_display":10,"detail":true,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":1,"id_output_category":1}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/vipers_dr2_w1/attribute/1
curl -d '{"id":2,"name":"alpha","table_name":"aspic_vipers_dr2_w1","label":"alpha","form_label":"alpha","description":null,"output_display":20,"criteria_display":20,"search_flag":"RA","search_type":null,"type":"decimal","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"renderer":null,"renderer_config":null,"display_detail":20,"selected":true,"order_by":false,"order_display":20,"detail":true,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":1}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/vipers_dr2_w1/attribute/2
curl -d '{"id":3,"name":"delta","table_name":"aspic_vipers_dr2_w1","label":"delta","form_label":"delta","description":null,"output_display":30,"criteria_display":30,"search_flag":"DEC","search_type":null,"type":"decimal","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"renderer":null,"renderer_config":null,"display_detail":30,"selected":true,"order_by":false,"order_display":30,"detail":true,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":1}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/vipers_dr2_w1/attribute/3
curl -d '{"id":4,"name":"selmag","table_name":"aspic_vipers_dr2_w1","label":"selmag","form_label":"selmag","description":null,"output_display":40,"criteria_display":40,"search_flag":null,"search_type":null,"type":"decimal","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"renderer":null,"renderer_config":null,"display_detail":40,"selected":true,"order_by":false,"order_display":40,"detail":true,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":1}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/vipers_dr2_w1/attribute/4
curl -d '{"id":5,"name":"errselmag","table_name":"aspic_vipers_dr2_w1","label":"errselmag","form_label":"errselmag","description":null,"output_display":50,"criteria_display":50,"search_flag":null,"search_type":null,"type":"decimal","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"renderer":null,"renderer_config":null,"display_detail":50,"selected":true,"order_by":false,"order_display":50,"detail":true,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":1}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/vipers_dr2_w1/attribute/5
curl -d '{"id":6,"name":"pointing","table_name":"aspic_vipers_dr2_w1","label":"pointing","form_label":"pointing","description":null,"output_display":60,"criteria_display":60,"search_flag":null,"search_type":null,"type":"string","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"renderer":null,"renderer_config":null,"display_detail":60,"selected":true,"order_by":false,"order_display":60,"detail":true,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":1}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/vipers_dr2_w1/attribute/6
curl -d '{"id":7,"name":"quadrant","table_name":"aspic_vipers_dr2_w1","label":"quadrant","form_label":"quadrant","description":null,"output_display":70,"criteria_display":70,"search_flag":null,"search_type":null,"type":"decimal","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"renderer":null,"renderer_config":null,"display_detail":70,"selected":true,"order_by":false,"order_display":70,"detail":true,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":1}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/vipers_dr2_w1/attribute/7
curl -d '{"id":8,"name":"zspec","table_name":"aspic_vipers_dr2_w1","label":"zspec","form_label":"zspec","description":null,"output_display":80,"criteria_display":80,"search_flag":null,"search_type":"between","type":"decimal","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"renderer":null,"renderer_config":null,"display_detail":80,"selected":true,"order_by":false,"order_display":80,"detail":true,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":1,"id_output_category":1}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/vipers_dr2_w1/attribute/8
curl -d '{"id":9,"name":"zflg","table_name":"aspic_vipers_dr2_w1","label":"zflg","form_label":"zflg","description":null,"output_display":90,"criteria_display":90,"search_flag":"Z_FLAG","search_type":"datalist","type":"decimal","operator":"in","min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"renderer":null,"renderer_config":null,"display_detail":90,"selected":true,"order_by":false,"order_display":90,"detail":true,"renderer_detail":null,"options":[{"label":"1,2,3,4,9","value":"1,2,3,4,9","display":10},{"label":"2,3,4,9","value":"2,3,4,9","display":20},{"label":"3,4","value":"3,4","display":30},{"label":"1,2,3,4,9,21,22,23,24,29","value":"1,2,3,4,9,21,22,23,24,29","display":40},{"label":"2,3,4,9,22,23,24,29","value":"2,3,4,9,22,23,24,29","display":50}],"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":1,"id_output_category":1}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/vipers_dr2_w1/attribute/9
curl -d '{"id":10,"name":"norm","table_name":"aspic_vipers_dr2_w1","label":"norm","form_label":"norm","description":null,"output_display":100,"criteria_display":100,"search_flag":null,"search_type":null,"type":"decimal","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"renderer":null,"renderer_config":null,"display_detail":100,"selected":true,"order_by":false,"order_display":100,"detail":true,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":1}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/vipers_dr2_w1/attribute/10
curl -d '{"id":11,"name":"epoch","table_name":"aspic_vipers_dr2_w1","label":"epoch","form_label":"epoch","description":null,"output_display":110,"criteria_display":110,"search_flag":null,"search_type":null,"type":"decimal","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"renderer":null,"renderer_config":null,"display_detail":110,"selected":true,"order_by":false,"order_display":110,"detail":true,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":null}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/vipers_dr2_w1/attribute/11
curl -d '{"id":12,"name":"photomask","table_name":"aspic_vipers_dr2_w1","label":"photomask","form_label":"photomask","description":null,"output_display":120,"criteria_display":120,"search_flag":null,"search_type":null,"type":"decimal","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"renderer":null,"renderer_config":null,"display_detail":120,"selected":true,"order_by":false,"order_display":120,"detail":true,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":null}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/vipers_dr2_w1/attribute/12
curl -d '{"id":56,"name":"spec1d","table_name":"aspic_vipers_dr2_w1","label":"spec1d","form_label":"spec1d","description":null,"output_display":560,"criteria_display":560,"search_flag":"SPECTRUM_1D","search_type":null,"type":"text","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"renderer":"download","renderer_config":{"display":"icon-button","text":"DOWNLOAD","icon":"fas fa-download"},"display_detail":560,"selected":true,"order_by":false,"order_display":560,"detail":true,"renderer_detail":"spectra_graph","options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":1}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/vipers_dr2_w1/attribute/56
curl -d '{"id":57,"name":"spec1dnoise","table_name":"aspic_vipers_dr2_w1","label":"spec1dnoise","form_label":"spec1dnoise","description":null,"output_display":570,"criteria_display":570,"search_flag":null,"search_type":null,"type":"text","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"renderer":"download","renderer_config":{"display":"icon-button","text":"DOWNLOAD","icon":"fas fa-download"},"display_detail":570,"selected":true,"order_by":false,"order_display":570,"detail":true,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":1}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/vipers_dr2_w1/attribute/57
curl -d '{"id":58,"name":"spec1dsky","table_name":"aspic_vipers_dr2_w1","label":"spec1dsky","form_label":"spec1dsky","description":null,"output_display":580,"criteria_display":580,"search_flag":null,"search_type":null,"type":"text","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"renderer":"download","renderer_config":{"display":"icon-button","text":"DOWNLOAD","icon":"fas fa-download"},"display_detail":580,"selected":true,"order_by":false,"order_display":580,"detail":true,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":1}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/vipers_dr2_w1/attribute/58
# Add sp_cards attributes
curl -d '{"label":"Card","display":10}' --header 'Content-Type: application/json' -X POST http://localhost/dataset/sp_cards/criteria-family
curl -d '{"label":"Default","display":10}' --header 'Content-Type: application/json' -X POST http://localhost/dataset/sp_cards/output-family
curl -d '{"label":"Default","display":10}' --header 'Content-Type: application/json' -X POST http://localhost/output-family/2/output-category
curl -d '{"id":1,"name":"acronym","table_name":"sp_cards","label":"acronym","form_label":"Product Acronym","description":null,"output_display":10,"criteria_display":10,"search_flag":"ID","search_type":"select","type":"string","operator":"eq","min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"renderer":null,"renderer_config":[],"display_detail":10,"selected":true,"order_by":false,"order_display":10,"detail":false,"renderer_detail":null,"options":[{"label":"LAMTEST","value":"LAMTEST","display":10},{"label":"LAMTEST_DC1","value":"LAMTEST_DC1","display":20},{"label":"MXT-EVT-CAL","value":"MXT-EVT-CAL","display":30}],"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":2,"id_output_category":2}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/sp_cards/attribute/1
curl -d '{"id":2,"name":"sp_id","table_name":"sp_cards","label":"sp_id","form_label":"SP IAP ID","description":null,"output_display":20,"criteria_display":20,"search_flag":null,"search_type":null,"type":"integer","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"renderer":null,"renderer_config":null,"display_detail":20,"selected":true,"order_by":false,"order_display":20,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":2}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/sp_cards/attribute/2
curl -d '{"id":3,"name":"version","table_name":"sp_cards","label":"version","form_label":"Version","description":null,"output_display":30,"criteria_display":30,"search_flag":null,"search_type":null,"type":"float","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"renderer":null,"renderer_config":null,"display_detail":30,"selected":true,"order_by":false,"order_display":30,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":2}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/sp_cards/attribute/3
curl -d '{"id":4,"name":"program","table_name":"sp_cards","label":"program","form_label":"Program","description":null,"output_display":40,"criteria_display":40,"search_flag":null,"search_type":"select","type":"string","operator":"eq","min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"renderer":null,"renderer_config":null,"display_detail":40,"selected":true,"order_by":false,"order_display":40,"detail":false,"renderer_detail":null,"options":[{"label":"CP","value":"CP","display":10},{"label":"GP","value":"GP","display":20}],"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":2,"id_output_category":2}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/sp_cards/attribute/4
curl -d '{"id":5,"name":"instrument","table_name":"sp_cards","label":"instrument","form_label":"Instrument","description":null,"output_display":50,"criteria_display":50,"search_flag":null,"search_type":"select","type":"string","operator":"eq","min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"renderer":null,"renderer_config":null,"display_detail":50,"selected":true,"order_by":false,"order_display":50,"detail":false,"renderer_detail":null,"options":[{"label":"ALL","value":"ALL","display":10},{"label":"MXT","value":"MXT","display":20}],"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":2,"id_output_category":2}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/sp_cards/attribute/5
curl -d '{"id":6,"name":"type","table_name":"sp_cards","label":"type","form_label":"Type","description":null,"output_display":60,"criteria_display":60,"search_flag":null,"search_type":null,"type":"string","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"renderer":null,"renderer_config":null,"display_detail":60,"selected":true,"order_by":false,"order_display":60,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":2}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/sp_cards/attribute/6
curl -d '{"id":7,"name":"json_schema","table_name":"sp_cards","label":"json_schema","form_label":"JSON Schema (original)","description":null,"output_display":70,"criteria_display":70,"search_flag":null,"search_type":null,"type":"json","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"renderer":"json","renderer_config":[],"display_detail":70,"selected":true,"order_by":false,"order_display":70,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":2}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/sp_cards/attribute/7
curl -d '{"id":8,"name":"search_kw","table_name":"sp_cards","label":"search_kw","form_label":"KWs searchable","description":null,"output_display":80,"criteria_display":80,"search_flag":null,"search_type":null,"type":"json","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"renderer":"json","renderer_config":[],"display_detail":80,"selected":true,"order_by":false,"order_display":80,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":2}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/sp_cards/attribute/8
curl -d '{"id":9,"name":"json_schema_uploaded","table_name":"sp_cards","label":"json_schema_uploaded","form_label":"json_schema_uploaded","description":null,"output_display":90,"criteria_display":90,"search_flag":null,"search_type":null,"type":"json","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"renderer":null,"renderer_config":null,"display_detail":90,"selected":true,"order_by":false,"order_display":90,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":null}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/sp_cards/attribute/9
# Add observations attributes
curl -d '{"label":"Default","display":10}' --header 'Content-Type: application/json' -X POST http://localhost/dataset/observations/criteria-family
curl -d '{"label":"Default parameters","display":10}' --header 'Content-Type: application/json' -X POST http://localhost/dataset/observations/output-family
curl -d '{"label":"Astrometry","display":10}' --header 'Content-Type: application/json' -X POST http://localhost/output-family/3/output-category
curl -d '{"label":"Observation","display":10}' --header 'Content-Type: application/json' -X POST http://localhost/output-family/3/output-category
curl -d '{"id":1,"name":"id","table_name":"v_observation","label":"id","form_label":"id","description":"Observation Ident","output_display":10,"criteria_display":10,"search_flag":"ID","search_type":null,"type":"integer","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"renderer":null,"renderer_config":null,"display_detail":10,"selected":true,"order_by":false,"order_display":10,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":3}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/observations/attribute/1
curl -d '{"id":2,"name":"ra","table_name":"v_observation","label":"ra","form_label":"Alpha J2000","description":"Alpha J2000","output_display":20,"criteria_display":20,"search_flag":"RA","search_type":null,"type":"float","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"renderer":null,"renderer_config":null,"display_detail":20,"selected":true,"order_by":false,"order_display":20,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":3}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/observations/attribute/2
curl -d '{"id":3,"name":"dec","table_name":"v_observation","label":"dec","form_label":"Delta J2000","description":"Delta J2000","output_display":30,"criteria_display":30,"search_flag":"DEC","search_type":null,"type":"float","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"renderer":null,"renderer_config":null,"display_detail":30,"selected":true,"order_by":false,"order_display":30,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":3}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/observations/attribute/3
curl -d '{"id":4,"name":"date_time","table_name":"v_observation","label":"date_time","form_label":"Date Time","description":"Date Time","output_display":40,"criteria_display":40,"search_flag":null,"search_type":"between-date","type":"datetime","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"renderer":null,"renderer_config":null,"display_detail":40,"selected":true,"order_by":false,"order_display":40,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":1,"id_output_category":4}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/observations/attribute/4
curl -d '{"id":5,"name":"exposure_time","table_name":"v_observation","label":"exposure_time","form_label":"Exposure Time","description":"Exposure Time","output_display":50,"criteria_display":50,"search_flag":null,"search_type":"between","type":"integer","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"renderer":null,"renderer_config":null,"display_detail":50,"selected":true,"order_by":false,"order_display":50,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":1,"id_output_category":4}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/observations/attribute/5
curl -d '{"id":6,"name":"filter","table_name":"v_observation","label":"filter","form_label":"Filter","description":"Filter","output_display":60,"criteria_display":60,"search_flag":null,"search_type":"select","type":"string","operator":"eq","min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"renderer":null,"renderer_config":null,"display_detail":60,"selected":true,"order_by":false,"order_display":60,"detail":false,"renderer_detail":null,"options":[{"label":"Halpha","value":"Halpha","display":10},{"label":"SDSS g","value":"SDSS g","display":20}],"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":1,"id_output_category":4}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/observations/attribute/6
curl -d '{"id":7,"name":"object_name","table_name":"v_observation","label":"object_name","form_label":"Object name","description":"Object name","output_display":70,"criteria_display":70,"search_flag":null,"search_type":"field","type":"string","operator":"lk","min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"renderer":"link","renderer_config":{"href":"http:\/\/cdsportal.u-strasbg.fr\/?target=$value","display":"text","text":"$value","icon":"fas fa-link","blank":true},"display_detail":70,"selected":true,"order_by":false,"order_display":70,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":1,"id_output_category":4}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/observations/attribute/7
curl -d '{"id":8,"name":"fits_file","table_name":"v_observation","label":"fits_file","form_label":"fits_file","description":null,"output_display":80,"criteria_display":80,"search_flag":null,"search_type":null,"type":"string","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"renderer":"download","renderer_config":{"display":"icon-button","text":"DOWNLOAD","icon":"fas fa-download"},"display_detail":80,"selected":true,"order_by":false,"order_display":80,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":4}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/observations/attribute/8
curl -d '{"id":9,"name":"fits_png","table_name":"v_observation","label":"fits_png","form_label":"fits_png","description":null,"output_display":90,"criteria_display":90,"search_flag":null,"search_type":null,"type":"string","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"renderer":"image","renderer_config":{"type":"fits","display":"modal","width":"50","height":"50"},"display_detail":90,"selected":true,"order_by":false,"order_display":90,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":4}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/observations/attribute/9
# Add vvds_f02_udeep attributes
curl -d '{"label":"Default","display":10}' --header 'Content-Type: application/json' -X POST http://localhost/dataset/vvds_f02_udeep/criteria-family
curl -d '{"label":"Default","display":10}' --header 'Content-Type: application/json' -X POST http://localhost/dataset/vvds_f02_udeep/output-family
curl -d '{"label":"Default","display":10}' --header 'Content-Type: application/json' -X POST http://localhost/output-family/4/output-category
# Edit SVOM sp_cards attributes
curl -d '{"id":1,"name":"acronym","table_name":"sp_cards","label":"acronym","form_label":"Product Acronym","description":null,"output_display":10,"criteria_display":10,"search_flag":null,"search_type":"select","type":"string","operator":"eq","min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"renderer_config":null,"display_detail":10,"selected":true,"order_by":false,"order_display":10,"detail":false,"renderer_detail":null,"options":[{"label":"AV_AG_HOST","value":"AV_AG_HOST","display":10},{"label":"AV_AG_LOC","value":"AV_AG_LOC","display":20},{"label":"CLASS_EARLY","value":"CLASS_EARLY","display":30},{"label":"CRCLASS","value":"CRCLASS","display":40},{"label":"DT_GFT_i","value":"DT_GFT_i","display":50},{"label":"DT_GWAC","value":"DT_GWAC","display":60},{"label":"DT_MXT","value":"DT_MXT","display":70},{"label":"DT_VT","value":"DT_VT","display":80},{"label":"FDCHART_GWAC","value":"FDCHART_GWAC","display":90},{"label":"FDCHART_VT_B","value":"FDCHART_VT_B","display":100},{"label":"FDCHART_VT_R","value":"FDCHART_VT_R","display":110},{"label":"FLUENCE_ECL","value":"FLUENCE_ECL","display":120},{"label":"FLUENCE_ECLGRM","value":"FLUENCE_ECLGRM","display":130},{"label":"FLUENCE_GRM","value":"FLUENCE_GRM","display":140},{"label":"HR_ECL","value":"HR_ECL","display":150},{"label":"HR_ECLGRM","value":"HR_ECLGRM","display":160},{"label":"HR_GRM","value":"HR_GRM","display":170},{"label":"LAG_ECL","value":"LAG_ECL","display":180},{"label":"LAG_ECLGRM","value":"LAG_ECLGRM","display":190},{"label":"LAG_GRM","value":"LAG_GRM","display":200},{"label":"LC_ECL","value":"LC_ECL","display":210},{"label":"LC_GFT_i","value":"LC_GFT_i","display":220},{"label":"LC_GRM","value":"LC_GRM","display":230},{"label":"LC_GWAC","value":"LC_GWAC","display":240},{"label":"LC_MXT_i","value":"LC_MXT_i","display":250},{"label":"LC_PARAM_GFT","value":"LC_PARAM_GFT","display":260},{"label":"LC_PARAM_MXT","value":"LC_PARAM_MXT","display":270},{"label":"LC_PARAM_VT_B","value":"LC_PARAM_VT_B","display":280},{"label":"LC_PARAM_VT_R","value":"LC_PARAM_VT_R","display":290},{"label":"LC_VT_B","value":"LC_VT_B","display":300},{"label":"LC_VT_R","value":"LC_VT_R","display":310},{"label":"NH_HOST","value":"NH_HOST","display":320},{"label":"NH_LOC","value":"NH_LOC","display":330},{"label":"OBLC_ECL","value":"OBLC_ECL","display":340},{"label":"OBLC_GRM","value":"OBLC_GRM","display":350},{"label":"PF_ECL","value":"PF_ECL","display":360},{"label":"PF_GRM","value":"PF_GRM","display":370},{"label":"PF_GWAC","value":"PF_GWAC","display":380},{"label":"PHZ","value":"PHZ","display":390},{"label":"PO_ECL","value":"PO_ECL","display":400},{"label":"PO_GFT","value":"PO_GFT","display":410},{"label":"PO_GRM","value":"PO_GRM","display":420},{"label":"PO_GWAC","value":"PO_GWAC","display":430},{"label":"PO_MXT","value":"PO_MXT","display":440},{"label":"PO_VT","value":"PO_VT","display":450},{"label":"QCL_ECL","value":"QCL_ECL","display":460},{"label":"QCL_GRM","value":"QCL_GRM","display":470},{"label":"QF_GFT_i","value":"QF_GFT_i","display":480},{"label":"QF_GWAC","value":"QF_GWAC","display":490},{"label":"QF_MXT","value":"QF_MXT","display":500},{"label":"QF_VT_B","value":"QF_VT_B","display":510},{"label":"QF_VT_R","value":"QF_VT_R","display":520},{"label":"QHR_ECL","value":"QHR_ECL","display":530},{"label":"QHR_ECLGRM","value":"QHR_ECLGRM","display":540},{"label":"QHR_GRM","value":"QHR_GRM","display":550},{"label":"QLC_ECL","value":"QLC_ECL","display":560},{"label":"QLC_GFT_i","value":"QLC_GFT_i","display":570},{"label":"QLC_GRM","value":"QLC_GRM","display":580},{"label":"QLC_GWAC","value":"QLC_GWAC","display":590},{"label":"QLC_MXT","value":"QLC_MXT","display":600},{"label":"QLC_VT_B","value":"QLC_VT_B","display":610},{"label":"QLC_VT_R","value":"QLC_VT_R","display":620},{"label":"QPF_ECL","value":"QPF_ECL","display":630},{"label":"QPF_GRM","value":"QPF_GRM","display":640},{"label":"QPO_ECL","value":"QPO_ECL","display":650},{"label":"QPO_GRM","value":"QPO_GRM","display":660},{"label":"QPO_GWAC","value":"QPO_GWAC","display":670},{"label":"QPO_MXT","value":"QPO_MXT","display":680},{"label":"QPO_VT","value":"QPO_VT","display":690},{"label":"QSP_GRM","value":"QSP_GRM","display":700},{"label":"QSRCLIST_VT","value":"QSRCLIST_VT","display":710},{"label":"QT90_ECL","value":"QT90_ECL","display":720},{"label":"QT90_GRM","value":"QT90_GRM","display":730},{"label":"QTI_GFT_i","value":"QTI_GFT_i","display":740},{"label":"QTI_MXT","value":"QTI_MXT","display":750},{"label":"QTI_VT_B","value":"QTI_VT_B","display":760},{"label":"QTI_VT_R","value":"QTI_VT_R","display":770},{"label":"QUPLIM_GWAC","value":"QUPLIM_GWAC","display":780},{"label":"SP_ECL","value":"SP_ECL","display":790},{"label":"SP_ECLGRM","value":"SP_ECLGRM","display":800},{"label":"SP_GRM","value":"SP_GRM","display":810},{"label":"SP_MXT","value":"SP_MXT","display":820},{"label":"SP_PARAM_MXT","value":"SP_PARAM_MXT","display":830},{"label":"SP_PARAM_T_MXT","value":"SP_PARAM_T_MXT","display":840},{"label":"T90_ECL","value":"T90_ECL","display":850},{"label":"T90_GRM","value":"T90_GRM","display":860},{"label":"TT_ECL","value":"TT_ECL","display":870},{"label":"TT_GRM","value":"TT_GRM","display":880},{"label":"UPLIM_GFT_i","value":"UPLIM_GFT_i","display":890},{"label":"UPLIM_GWAC","value":"UPLIM_GWAC","display":900},{"label":"UPLIM_VT_B","value":"UPLIM_VT_B","display":910},{"label":"UPLIM_VT_R","value":"UPLIM_VT_R","display":920},{"label":"ECL-SKY-IMA","value":"ECL-SKY-IMA","display":82},{"label":"ECL-SOP-IMA","value":"ECL-SOP-IMA","display":84},{"label":"OBATT_VT","value":"OBATT_VT","display":332},{"label":"OBFIND_VT","value":"OBFIND_VT","display":334},{"label":"OBIM1B_VT","value":"OBIM1B_VT","display":336},{"label":"OBIM1R_VT","value":"OBIM1R_VT","display":338},{"label":"QIM1B_VT","value":"QIM1B_VT","display":554},{"label":"QIM1R_VT","value":"QIM1R_VT","display":556},{"label":"MXT-EVT-CAL","value":"MXT-EVT-CAL","display":315},{"label":"LAMTEST_DC1","value":"LAMTEST_DC1","display":5},{"label":"LAMTEST","value":"LAMTEST","display":4}],"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":6,"id_output_category":4}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/sp_cards/attribute/1
curl -d '{"id":2,"name":"sp_id","table_name":"sp_cards","label":"sp_id","form_label":"SP IAP ID","description":null,"output_display":20,"criteria_display":20,"search_flag":"ID","search_type":null,"type":"integer","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":"http://svom.iap.fr/fiches/view_fiche.php?fiche=","renderer":"link","renderer_config": {"href": "$value", "display": "text", "text": "$value", "icon": "fas fa-link", "blank": true}, "display_detail":20,"selected":true,"order_by":false,"order_display":20,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":4}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/sp_cards/attribute/2
curl -d '{"id":3,"name":"version","table_name":"sp_cards","label":"version","form_label":"Version","description":null,"output_display":30,"criteria_display":30,"search_flag":null,"search_type":null,"type":"float","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"renderer_config":null,"display_detail":30,"selected":true,"order_by":false,"order_display":30,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":4}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/sp_cards/attribute/3
curl -d '{"id":4,"name":"program","table_name":"sp_cards","label":"program","form_label":"Program","description":null,"output_display":40,"criteria_display":40,"search_flag":null,"search_type":"select","type":"string","operator":"eq","min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"renderer_config":null,"display_detail":40,"selected":true,"order_by":false,"order_display":40,"detail":false,"renderer_detail":null,"options":[{"label":"GP","value":"GP","display":10},{"label":"CP","value":"CP","display":20}],"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":6,"id_output_category":4}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/sp_cards/attribute/4
curl -d '{"id":5,"name":"instrument","table_name":"sp_cards","label":"instrument","form_label":"Instrument","description":null,"output_display":50,"criteria_display":50,"search_flag":null,"search_type":"select","type":"string","operator":"eq","min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"renderer_config":null,"display_detail":50,"selected":true,"order_by":false,"order_display":50,"detail":false,"renderer_detail":null,"options":[{"label":"GFT","value":"GFT","display":10},{"label":"MXT","value":"MXT","display":20},{"label":"GWAC","value":"GWAC","display":30},{"label":"VT","value":"VT","display":40},{"label":"GRM","value":"GRM","display":50},{"label":"ECL","value":"ECL","display":60},{"label":"NONE","value":"NONE","display":80},{"label":"ECLGRM","value":"ECLGRM","display":70}],"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":6,"id_output_category":4}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/sp_cards/attribute/5
curl -d '{"id":6,"name":"type","table_name":"sp_cards","label":"type","form_label":"Type","description":null,"output_display":60,"criteria_display":60,"search_flag":null,"search_type":null,"type":"string","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"renderer_config":null,"display_detail":60,"selected":true,"order_by":false,"order_display":60,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":4}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/sp_cards/attribute/6
curl -d '{"id":7,"name":"json_schema","table_name":"sp_cards","label":"json_schema","form_label":"JSON Schema (original)","description":null,"output_display":80,"criteria_display":80,"search_flag":null,"search_type":null,"type":"json","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":"json","renderer_config":null,"display_detail":80,"selected":true,"order_by":false,"order_display":80,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":4}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/sp_cards/attribute/7
curl -d '{"id":8,"name":"search_kw","table_name":"sp_cards","label":"search_kw","form_label":"KWs searchable","description":null,"output_display":90,"criteria_display":90,"search_flag":null,"search_type":null,"type":"json","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":"json","renderer_config":null,"display_detail":90,"selected":true,"order_by":false,"order_display":90,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":4}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/sp_cards/attribute/8
curl -d '{"id":9,"name":"json_schema_uploaded","table_name":"sp_cards","label":"json_schema_uploaded","form_label":"json_schema_uploaded","description":null,"output_display":70,"criteria_display":70,"search_flag":null,"search_type":null,"type":"json","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"renderer_config":null,"display_detail":70,"selected":true,"order_by":false,"order_display":70,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":null}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/sp_cards/attribute/9
# Add IRIS dataset family and IRIS dataset
curl -d '{"label":"IRiS dataset family","display":30}' --header 'Content-Type: application/json' -X POST http://localhost/instance/default/dataset-family
curl -d '{"name":"anis_observation","table_ref":"anis_observation","label":"IRiS OBS","description":"IRiS observations","display":10,"count":0,"vo":true,"data_path":"/IRIS/observations","config":{"cone_search":{"enabled":true,"column_ra":2,"column_dec":3},"selectable_row":true},"public":true,"project_name":"iris"}' --header 'Content-Type: application/json' -X POST http://localhost/dataset-family/3/dataset
# Add IRIS anis_observation default criteria family, output families and output categories
curl -d '{"label":"Default criteria family","display":10}' --header 'Content-Type: application/json' -X POST http://localhost/dataset/anis_observation/criteria-family
curl -d '{"label":"Default parameters","display":10}' --header 'Content-Type: application/json' -X POST http://localhost/dataset/anis_observation/output-family
curl -d '{"label":"Astrometry","display":10}' --header 'Content-Type: application/json' -X POST http://localhost/output-family/5/output-category
curl -d '{"label":"Observation","display":20}' --header 'Content-Type: application/json' -X POST http://localhost/output-family/5/output-category
curl -d '{"label":"Additionnal parameters","display":20}' --header 'Content-Type: application/json' -X POST http://localhost/dataset/anis_observation/output-family
curl -d '{"label":"Download","display":10}' --header 'Content-Type: application/json' -X POST http://localhost/output-family/6/output-category
# Edit IRIS anis_observation attributes
curl -d '{"id":1,"name":"id","table_name":"anis_observation","label":"id_obs","form_label":"ID_OBS","description":"Observation Ident","output_display":10,"criteria_display":10,"search_flag":"ID","search_type":null,"type":"integer","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"renderer_config":null,"display_detail":10,"selected":true,"order_by":false,"order_display":10,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":5}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/anis_observation/attribute/1
curl -d '{"id":2,"name":"ra","table_name":"anis_observation","label":"ra","form_label":"Alpha J2000","description":"Alpha J2000","output_display":20,"criteria_display":20,"search_flag":"RA","search_type":null,"type":"float","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"renderer_config":null,"display_detail":20,"selected":true,"order_by":false,"order_display":20,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":5}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/anis_observation/attribute/2
curl -d '{"id":3,"name":"dec","table_name":"anis_observation","label":"dec","form_label":"Delta J2000","description":"Delta J2000","output_display":30,"criteria_display":30,"search_flag":"DEC","search_type":null,"type":"float","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"renderer_config":null,"display_detail":30,"selected":true,"order_by":false,"order_display":30,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":5}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/anis_observation/attribute/3
curl -d '{"id":4,"name":"date_time","table_name":"anis_observation","label":"date_time","form_label":"Date Time","description":"Date Time","output_display":40,"criteria_display":40,"search_flag":null,"search_type":"between-date","type":"datetime","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"renderer_config":null,"display_detail":40,"selected":true,"order_by":false,"order_display":40,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":7,"id_output_category":6}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/anis_observation/attribute/4
curl -d '{"id":5,"name":"exposure_time","table_name":"anis_observation","label":"exposure_time","form_label":"Exposure Time","description":"Exposure Time","output_display":50,"criteria_display":50,"search_flag":null,"search_type":"between","type":"integer","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"renderer_config":null,"display_detail":50,"selected":true,"order_by":false,"order_display":50,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":7,"id_output_category":6}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/anis_observation/attribute/5
curl -d '{"id":6,"name":"filter","table_name":"anis_observation","label":"filter","form_label":"Filter","description":"Filter","output_display":60,"criteria_display":60,"search_flag":null,"search_type":"select","type":"string","operator":"eq","min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"renderer_config":null,"display_detail":60,"selected":true,"order_by":false,"order_display":60,"detail":false,"renderer_detail":null,"options":[{"label":"Filter 1","value":"filter1","display":10},{"label":"Filter 2","value":"filter2","display":20}],"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":7,"id_output_category":6}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/anis_observation/attribute/6
curl -d '{"id":7,"name":"object_name","table_name":"anis_observation","label":"object_name","form_label":"Object name","description":"Object name","output_display":70,"criteria_display":70,"search_flag":"NAME","search_type":"field","type":"string","operator":"eq","min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":"link/detail?dataset=anis_observation&other=","renderer":null,"renderer_config":null,"display_detail":70,"selected":true,"order_by":false,"order_display":70,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":7,"id_output_category":6}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/anis_observation/attribute/7
curl -d '{"id":8,"name":"fits_file","table_name":"anis_observation","label":"obs_fits","form_label":"Observation (fits)","description":"Observation (fits)","output_display":80,"criteria_display":80,"search_flag":null,"search_type":null,"type":"string","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"renderer_config":null,"display_detail":80,"selected":false,"order_by":false,"order_display":80,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":7}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/anis_observation/attribute/8
curl -d '{"id":9,"name":"png_file","table_name":"anis_observation","label":"png_file","form_label":"Observation (png)","description":"Observation (png)","output_display":90,"criteria_display":90,"search_flag":null,"search_type":null,"type":"string","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":"image","renderer_config":{"type":"fits","display":"mini","width":"50","height":"50"},"display_detail":90,"selected":true,"order_by":false,"order_display":90,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":6}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/anis_observation/attribute/9
curl -d '{"id":10,"name":"observer","table_name":"anis_observation","label":"observer","form_label":"Observer","description":"Observer","output_display":100,"criteria_display":100,"search_flag":null,"search_type":null,"type":"string","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"renderer_config":null,"display_detail":100,"selected":true,"order_by":false,"order_display":100,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":null}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/anis_observation/attribute/10
curl -d '{"id":11,"name":"pack_obs","table_name":"anis_observation","label":"pack_obs","form_label":"Observation archive (zip)","description":"Observation archive (zip)","output_display":110,"criteria_display":110,"search_flag":null,"search_type":null,"type":"string","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"renderer_config":null,"display_detail":110,"selected":false,"order_by":false,"order_display":110,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":7}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/anis_observation/attribute/11
curl -d '{"id":12,"name":"readme_obs","table_name":"anis_observation","label":"readme_obs","form_label":"Observation Readme (zip)","description":"Observation Readme (zip)","output_display":120,"criteria_display":120,"search_flag":null,"search_type":null,"type":"string","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"renderer_config":null,"display_detail":120,"selected":false,"order_by":false,"order_display":120,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":7}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/anis_observation/attribute/12
curl -d '{"id":13,"name":"pack_calib","table_name":"anis_observation","label":"pack_calib","form_label":"Calibration archive (zip)","description":"Calibration archive (zip)","output_display":130,"criteria_display":130,"search_flag":null,"search_type":null,"type":"string","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"renderer_config":null,"display_detail":130,"selected":false,"order_by":false,"order_display":130,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":7}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/anis_observation/attribute/13
curl -d '{"id":14,"name":"readme_calib","table_name":"anis_observation","label":"readme_calib","form_label":"Calibration Readme (zip)","description":"Calibration Readme (zip)","output_display":140,"criteria_display":140,"search_flag":null,"search_type":null,"type":"string","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"renderer_config":null,"display_detail":140,"selected":false,"order_by":false,"order_display":140,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":7}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/anis_observation/attribute/14
# Add ANIS vipers_dr2_w1 default criteria family, default output family and default output category
curl -d '{"label":"Default criteria family","display":10}' --header 'Content-Type: application/json' -X POST http://localhost/dataset/vipers_dr2_w1/criteria-family
curl -d '{"label":"Default output family","display":10}' --header 'Content-Type: application/json' -X POST http://localhost/dataset/vipers_dr2_w1/output-family
curl -d '{"label":"Default output category","display":10}' --header 'Content-Type: application/json' -X POST http://localhost/output-family/7/output-category
# Edit ANIS vipers_dr2_w1 attributes
curl -d '{"id":1,"name":"num","table_name":"aspic_vipers_dr2_w1","label":"num","form_label":"num","description":null,"output_display":10,"criteria_display":10,"search_flag":"ID","search_type":"list","type":"decimal","operator":"eq","min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"renderer":"detail","renderer_config":{"display":"text-button","blank":"false"},"display_detail":10,"selected":true,"order_by":false,"order_display":10,"detail":true,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":8,"id_output_category":8}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/vipers_dr2_w1/attribute/1
curl -d '{"id":2,"name":"alpha","table_name":"aspic_vipers_dr2_w1","label":"alpha","form_label":"alpha","description":null,"output_display":20,"criteria_display":20,"search_flag":"RA","search_type":null,"type":"decimal","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"renderer":null,"renderer_config":null,"display_detail":20,"selected":true,"order_by":false,"order_display":20,"detail":true,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":8}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/vipers_dr2_w1/attribute/2
curl -d '{"id":3,"name":"delta","table_name":"aspic_vipers_dr2_w1","label":"delta","form_label":"delta","description":null,"output_display":30,"criteria_display":30,"search_flag":"DEC","search_type":null,"type":"decimal","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"renderer":null,"renderer_config":null,"display_detail":30,"selected":true,"order_by":false,"order_display":30,"detail":true,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":8}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/vipers_dr2_w1/attribute/3
curl -d '{"id":8,"name":"zspec","table_name":"aspic_vipers_dr2_w1","label":"zspec","form_label":"zspec","description":null,"output_display":80,"criteria_display":80,"search_flag":"Z","search_type":"between","type":"decimal","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"renderer":null,"renderer_config":null,"display_detail":80,"selected":true,"order_by":false,"order_display":80,"detail":true,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":8,"id_output_category":8}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/vipers_dr2_w1/attribute/8
curl -d '{"id":9,"name":"zflg","table_name":"aspic_vipers_dr2_w1","label":"zflg","form_label":"zflg","description":null,"output_display":90,"criteria_display":90,"search_flag":null,"search_type":"select","type":"decimal","operator":"eq","min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"renderer":null,"renderer_config":null,"display_detail":90,"selected":true,"order_by":false,"order_display":90,"detail":false,"renderer_detail":null,"options":[{"label":"1","value":"1","display":10},{"label":"2","value":"2","display":20},{"label":"3","value":"3","display":30},{"label":"4","value":"4","display":40},{"label":"9","value":"9","display":50},{"label":"12","value":"12","display":60},{"label":"19","value":"19","display":70},{"label":"21","value":"21","display":80},{"label":"23","value":"23","display":90}],"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":8,"id_output_category":null}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/vipers_dr2_w1/attribute/9
curl -d '{"id":56,"name":"spec1d","table_name":"aspic_vipers_dr2_w1","label":"spec1d","form_label":"spec1d","description":null,"output_display":560,"criteria_display":560,"search_flag":"SPECTRUM_1D","search_type":null,"type":"text","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"renderer":"download","renderer_config":{"display":"icon-button","text":"DOWNLOAD","icon":"fas fa-download"},"display_detail":560,"selected":true,"order_by":false,"order_display":560,"detail":true,"renderer_detail":"spectra_graph","options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":8}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/vipers_dr2_w1/attribute/56
curl -d '{"id":57,"name":"spec1dnoise","table_name":"aspic_vipers_dr2_w1","label":"spec1dnoise","form_label":"spec1dnoise","description":null,"output_display":570,"criteria_display":570,"search_flag":null,"search_type":null,"type":"text","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"renderer":"download","renderer_config":{"display":"icon-button","text":"DOWNLOAD","icon":"fas fa-download"},"display_detail":570,"selected":true,"order_by":false,"order_display":570,"detail":true,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":8}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/vipers_dr2_w1/attribute/57
curl -d '{"id":58,"name":"spec1dsky","table_name":"aspic_vipers_dr2_w1","label":"spec1dsky","form_label":"spec1dsky","description":null,"output_display":580,"criteria_display":580,"search_flag":null,"search_type":null,"type":"text","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"renderer":"download","renderer_config":{"display":"icon-button","text":"DOWNLOAD","icon":"fas fa-download"},"display_detail":580,"selected":true,"order_by":false,"order_display":580,"detail":true,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":8}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/vipers_dr2_w1/attribute/58
# Add groups
curl -d '{"role":"SVOM","datasets":["obs_cat","observations"]}' --header 'Content-Type: application/json' -X POST http://localhost/instance/default/group
curl -d '{"role":"ASPIC","datasets":[]}' --header 'Content-Type: application/json' -X POST http://localhost/instance/default/group
curl -d '{"id":1,"name":"vvds_ident","table_name":"aspic_vvds_f02_udeep","label":"vvds_ident","form_label":"vvds_ident","description":null,"output_display":10,"criteria_display":10,"search_flag":"ID","search_type":null,"type":"decimal","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"renderer":null,"renderer_config":null,"display_detail":10,"selected":true,"order_by":false,"order_display":10,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":5}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/vvds_f02_udeep/attribute/1
curl -d '{"id":2,"name":"id_iau","table_name":"aspic_vvds_f02_udeep","label":"id_iau","form_label":"id_iau","description":null,"output_display":20,"criteria_display":20,"search_flag":null,"search_type":null,"type":"string","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"renderer":null,"renderer_config":null,"display_detail":20,"selected":true,"order_by":false,"order_display":20,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":5}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/vvds_f02_udeep/attribute/2
curl -d '{"id":3,"name":"alpha","table_name":"aspic_vvds_f02_udeep","label":"alpha","form_label":"alpha","description":null,"output_display":30,"criteria_display":30,"search_flag":null,"search_type":null,"type":"decimal","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"renderer":null,"renderer_config":null,"display_detail":30,"selected":true,"order_by":false,"order_display":30,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":5}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/vvds_f02_udeep/attribute/3
curl -d '{"id":4,"name":"delta","table_name":"aspic_vvds_f02_udeep","label":"delta","form_label":"delta","description":null,"output_display":40,"criteria_display":40,"search_flag":null,"search_type":null,"type":"decimal","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"renderer":null,"renderer_config":null,"display_detail":40,"selected":true,"order_by":false,"order_display":40,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":5}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/vvds_f02_udeep/attribute/4
curl -d '{"id":5,"name":"z_spec","table_name":"aspic_vvds_f02_udeep","label":"z_spec","form_label":"z_spec","description":null,"output_display":50,"criteria_display":50,"search_flag":null,"search_type":"between","type":"decimal","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"renderer":null,"renderer_config":null,"display_detail":50,"selected":true,"order_by":false,"order_display":50,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":4,"id_output_category":5}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/vvds_f02_udeep/attribute/5
curl -d '{"id":6,"name":"zflag","table_name":"aspic_vvds_f02_udeep","label":"zflag","form_label":"zflag","description":null,"output_display":60,"criteria_display":60,"search_flag":null,"search_type":null,"type":"decimal","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"renderer":null,"renderer_config":null,"display_detail":60,"selected":true,"order_by":false,"order_display":60,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":5}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/vvds_f02_udeep/attribute/6
curl -d '{"id":7,"name":"sel_mag","table_name":"aspic_vvds_f02_udeep","label":"sel_mag","form_label":"sel_mag","description":null,"output_display":70,"criteria_display":70,"search_flag":null,"search_type":"between","type":"decimal","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"renderer":null,"renderer_config":null,"display_detail":70,"selected":true,"order_by":false,"order_display":70,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":4,"id_output_category":5}' --header 'Content-Type: application/json' -X PUT http://localhost/dataset/vvds_f02_udeep/attribute/7
This source diff could not be displayed because it is too large. You can view the blob instead.
--
-- PostgreSQL database dump
--
-- Dumped from database version 10.12
-- Dumped by pg_dump version 10.12
-- Started on 2020-03-31 15:44:07 CEST
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', false);
SET check_function_bodies = false;
SET xmloption = content;
SET client_min_messages = warning;
SET row_security = off;
SET default_tablespace = '';
-- IRIS observations
CREATE TABLE public.observation (
id integer NOT NULL,
ra double precision NOT NULL,
"dec" double precision NOT NULL,
date_time timestamp without time zone NOT NULL,
exposure_time integer NOT NULL,
filter character varying(255),
object_name character varying(255),
fits_file character varying(255),
id_obspack integer NOT NULL
);
ALTER TABLE public.observation OWNER TO anis;
SET default_with_oids = false;
COPY public.observation (id, ra, "dec", date_time, exposure_time, filter, object_name, fits_file, id_obspack) FROM stdin;
418 148.900499999999994 69.0669999999999931 2014-10-02 20:13:50 10 SDSS g M 81 20141002/M_81-S001-R001-C001-SDSS_g.fits 86
419 322.5 12.1669999999999998 2014-10-02 20:31:45 10 SDSS g M 15 20141002/M_15-S001-R001-C001-SDSS_g.fits 86
420 322.5 12.1669999999999998 2014-10-02 20:40:42 10 SDSS g M 15 20141002/M_15-S001-R001-C001-SDSS_g_dupe-1.fits 86
421 322.5 12.1669999999999998 2014-10-02 21:36:38 60 SDSS g M 15 20141002/M_15-S001-R001-C001-SDSS_g_dupe-5.fits 86
422 323.0505 48.4329999999999998 2014-10-02 21:25:08 10 SDSS g M 15 20141002/M_15-S001-R001-C001-SDSS_g_dupe-4.fits 86
423 322.5 12.1669999999999998 2014-10-02 20:45:13 10 SDSS g M 15 20141002/M_15-S001-R001-C001-SDSS_g_dupe-2.fits 86
424 323.0505 48.4329999999999998 2014-10-02 21:03:56 10 SDSS g M 39 20141002/M_39-S001-R001-C001-SDSS_g.fits 86
425 10.6754999999999995 41.267000000000003 2014-10-02 20:19:57 10 SDSS g M 31 20141002/M_31-S001-R001-C001-SDSS_g.fits 86
426 322.5 12.1669999999999998 2014-10-02 20:59:09 10 SDSS g M 15 20141002/M_15-S001-R001-C001-SDSS_g_dupe-3.fits 86
427 299.899499999999989 22.7169999999999987 2014-10-03 19:18:25 60 Halpha M 27 20141003/M_27-S001-R001-C001-Halpha.fits 87
\.
--
-- TOC entry 445 (class 1259 OID 1777304)
-- Name: aspic_vipers_dr2_w1; Type: TABLE; Schema: public; Owner: postgres
--
CREATE VIEW v_observation AS
SELECT id, ra, "dec", date_time, exposure_time, filter, object_name, fits_file, fits_file as fits_png
FROM observation;
ALTER TABLE public.v_observation OWNER TO anis;
-- VIPERS DR2 W1
CREATE TABLE public.aspic_vipers_dr2_w1 (
num numeric,
alpha numeric,
......@@ -88,16 +92,8 @@ CREATE TABLE public.aspic_vipers_dr2_w1 (
spec1dsky text,
zflg_vipers numeric
);
ALTER TABLE public.aspic_vipers_dr2_w1 OWNER TO anis;
--
-- TOC entry 5252 (class 0 OID 1777304)
-- Dependencies: 445
-- Data for Name: aspic_vipers_dr2_w1; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public.aspic_vipers_dr2_w1 (num, alpha, delta, selmag, errselmag, pointing, quadrant, zspec, zflg, norm, epoch, photomask, tsr, ssr, classflag, id_t07, u, g, r, i, z, erru, errg, errr, erri, errz, u_t07, g_t07, r_t07, i_t07, iy_t07, z_t07, erru_t07, errg_t07, errr_t07, erri_t07, erriy_t07, errz_t07, k_video, ks, fuv, nuv, errk_video, errks, errfuv, errnuv, deltaug, deltagr, deltari, ebv, r2, r2_t07, classflag_2, photomask_2, spectromask, spec1d, spec1dnoise, spec1dsky, zflg_vipers) FROM stdin;
125105118 36.2372494 -4.2348133 20.5761 0.0034 W1P198 4 0.2096 23 26.2311 2 1 0.0 0.0 0 495700 21.2228 20.2467 19.621 19.2464 19.0479 0.0138 0.0037 0.0048 0.0034 0.0074 21.11 20.263 19.667 19.284 -99.0 19.204 0.013 0.0040 0.0040 0.0030 -99.0 0.0070 -99.99 18.443 -99.0 21.843 -99.99 0.012 -99.0 0.024 -0.04 0.0020 0.0496 0.02522 5.99 6.01 0 1 1 spec1D/VIPERS_125105118_bis.fits spec1Dnoise/VIPERS_125105118_noise.fits spec1DSky/VIPERS_125105118_sky.fits 23.4
125105354 36.1644993 -4.234881 19.2464 0.0034 W1P198 4 0.2096 23 26.2311 2 1 0.0 0.0 0 495700 21.2228 20.2467 19.621 19.2464 19.0479 0.0138 0.0037 0.0048 0.0034 0.0074 21.11 20.263 19.667 19.284 -99.0 19.204 0.013 0.0040 0.0040 0.0030 -99.0 0.0070 -99.99 18.443 -99.0 21.843 -99.99 0.012 -99.0 0.024 -0.04 0.0020 0.0496 0.02522 5.99 6.01 0 1 1 spec1D/VIPERS_125105354_bis.fits spec1Dnoise/VIPERS_125105354_noise.fits spec1DSky/VIPERS_125105354_sky.fits 23.4
......@@ -222,10 +218,58 @@ COPY public.aspic_vipers_dr2_w1 (num, alpha, delta, selmag, errselmag, pointing,
101126090 30.883329 -5.9584916 20.8376 0.0093 W1P198 4 0.4634 3 7.7087 2 1 0.5880223 0.979798 1 498271 23.4894 22.6261 21.3981 20.8376 20.4869 0.0703 0.0201 0.0151 0.0093 0.0188 23.452 22.638 21.482 20.862 -99.0 20.626 0.066 0.019 0.011 0.0090 -99.0 0.017 -99.99 19.582 -99.0 -99.0 -99.99 0.023 -99.0 -99.0 -0.04 0.0020 0.0496 0.02505 3.71 3.74 1 1 1 spec1D/VIPERS_101126090_bis.fits spec1Dnoise/VIPERS_101126090_noise.fits spec1DSky/VIPERS_101126090_sky.fits 3.5
\.
-- SVOM SP_CARDS
CREATE TABLE public.sp_cards (
acronym character varying(20) NOT NULL,
sp_id integer,
version double precision NOT NULL,
program character varying(2) NOT NULL,
instrument character varying(20),
type character varying(45),
json_schema jsonb,
search_kw jsonb,
json_schema_uploaded jsonb
);
ALTER TABLE public.sp_cards OWNER TO anis;
-- Completed on 2020-03-31 15:44:07 CEST
COPY public.sp_cards (acronym, sp_id, version, program, instrument, type, json_schema, search_kw, json_schema_uploaded) FROM stdin;