... | ... | @@ -12,4 +12,19 @@ You need the docker daemon for this installation. |
|
|
|
|
|
# Add your first dataset
|
|
|
|
|
|
1. |
|
|
\ No newline at end of file |
|
|
Anis Server development is supplied with a test business database (anis_test) ans one astrophysic table (obs_cat).
|
|
|
|
|
|
1. Add the database anis_test into the metamodel database
|
|
|
2. Add a new project (Anis Project Test) and link the database to the project
|
|
|
3. Add a new default dataset family
|
|
|
4. Add the obs_cat dataset
|
|
|
|
|
|
CURL cmds:
|
|
|
|
|
|
1. `curl -d '{"label":"Test","dbname":"anis_test","dbtype":"pgsql","dbhost":"db","dbport":5432,"dblogin":"anis","dbpassword":"anis"}' -H "Content-Type: application/json" -X POST http://localhost:8080/metadata/database`
|
|
|
2. `curl -d '{"name":"anis_project","label":"Anis Project Test","description":"Project used for testing","link":"http://project.com","manager":"M. Durand","id_database":1}' -H "Content-Type: application/json" -X POST http://localhost:8080/metadata/project`
|
|
|
3. `curl -d '{"label":"Default dataset family","description":"Default dataset family","display":10}' -H "Content-Type: application/json" -X POST http://localhost:8080/metadata/family/dataset`
|
|
|
4. `curl -d '{"name":"my_dataset","table_ref":"obs_cat","label":"ObsCat dataset","description":"ObsCay":"10","count":"10000","vo":false,"data_path":"/mnt/mount","project_name":"anis_project","id_dataset_family":1}' -H "Content-Type: application/json" -X POST http://localhost:8080/metadata/dataset`
|
|
|
|
|
|
# Test exec your first search
|
|
|
|