You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to find a way to do a search for core/experiment, but never get a response back from the API. I tried various ways to fill the parameters in the Swagger interface and a Python script. Some results of that are below.
Response object is always empty (also for the create method).
Request data:
{"uri": null, "label": "INIT-OPEN-FIELD-6", "objective": "Initial tests with vectors and sensors for the Open field module.", "comment": "Initial tests with vectors and sensors for the Open field module.", "campaign": "2020", "isPublic": true, "species": "http://aims.fao.org/aos/agrovoc/c_14386", "keywords": ["drone"], "projects": ["http://www.npectest01.nl/set/projects#project.bnpec-initialize-open-field-module"], "groups": ["os-g:project-manager2"], "infrastructures": [], "installations": [], "scientificSupervisors": ["os-u:julia.vanoord"], "technicalSupervisors": ["os-u:peter.roos"], "variables": ["http://www.npectest01.nl/opensilex/id/variables/v001"], "sensors": ["http://www.npectest01.nl/opensilex/2020/s20001"], "startDate": "2020-05-01", "endDate": "2020-06-30"}
I'm trying to find a way to do a search for core/experiment, but never get a response back from the API. I tried various ways to fill the parameters in the Swagger interface and a Python script. Some results of that are below.
Response object is always empty (also for the create method).
First load an Experiment
REQUEST START
Contacting service url: http://145.100.57.177:8666/rest/core/experiment/create
Header:
{'Content-Type': 'application/json', 'accept': 'application/json', 'Authorization': 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzUxMiJ9.eyJpc19hZG1pbiI6dHJ1ZSwic3ViIjoib3MtdTpwZXRlci5yb29zIiwiaXNzIjoib3BlbnNpbGV4IiwibmFtZSI6InBldGVyIHJvb3MgPHBldGVyLnJvb3NAd3VyLm5sPiIsImV4cCI6MTU5NDIwNTYyNSwiZ2l2ZW5fbmFtZSI6InBldGVyIiwiaWF0IjoxNTk0MjAzODI1LCJmYW1pbHlfbmFtZSI6InJvb3MiLCJ1c2VyX2dyb3VwX3VyaXMiOltdLCJlbWFpbCI6InBldGVyLnJvb3NAd3VyLm5sIiwiY3JlZGVudGlhbHNfbGlzdCI6W119.AvpmUfx2jI-DDIZr9hT-OtJWGJEwcvx2Mwmx8pkVlnH_-UIdwFyxpmGqe9zS42C85YP8WH3sxnMibfu7hbqeBKixQ0u0Ael5yuRSfOBieIF4W9vA9_h8RVWU7EEv_dCKU9a0XHVRrnspzwY-X9jize_9Ap19bb6nYn927kbYhxqkqzoMD_3SDqk4p80JmeFg_AZVrtRXWyy6PwMg22N-GAuGz5gygXsn3xj6raFJ1Cmt6PVNrkw1rngPnYbABYtj74gaV4hqmTibRt0BbzihvrWPNbu7HpQCLQLGvohPFMxzY7n38XGWwe3dtmQld4ga-5x21763W2kPk6csMN7pCw'}
Request data:
{"uri": null, "label": "INIT-OPEN-FIELD-6", "objective": "Initial tests with vectors and sensors for the Open field module.", "comment": "Initial tests with vectors and sensors for the Open field module.", "campaign": "2020", "isPublic": true, "species": "http://aims.fao.org/aos/agrovoc/c_14386", "keywords": ["drone"], "projects": ["http://www.npectest01.nl/set/projects#project.bnpec-initialize-open-field-module"], "groups": ["os-g:project-manager2"], "infrastructures": [], "installations": [], "scientificSupervisors": ["os-u:julia.vanoord"], "technicalSupervisors": ["os-u:peter.roos"], "variables": ["http://www.npectest01.nl/opensilex/id/variables/v001"], "sensors": ["http://www.npectest01.nl/opensilex/2020/s20001"], "startDate": "2020-05-01", "endDate": "2020-06-30"}
Performing POST request...
URL:
'http://145.100.57.177:8666/rest/core/experiment/create'
Reponse code:
Status code 201
Reponse data:
<Response [201]>
REQUEST END
I can verify in the RDF4J workbench that it is loaded.
Then try to retrieve it:
REQUEST START
Contacting service url: http://145.100.57.177:8666/rest/core/experiment/search
Header:
{'Content-Type': 'application/json', 'accept': 'application/json', 'Authorization': 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzUxMiJ9.eyJpc19hZG1pbiI6dHJ1ZSwic3ViIjoib3MtdTpwZXRlci5yb29zIiwiaXNzIjoib3BlbnNpbGV4IiwibmFtZSI6InBldGVyIHJvb3MgPHBldGVyLnJvb3NAd3VyLm5sPiIsImV4cCI6MTU5NDIwNTc1OSwiZ2l2ZW5fbmFtZSI6InBldGVyIiwiaWF0IjoxNTk0MjAzOTU5LCJmYW1pbHlfbmFtZSI6InJvb3MiLCJ1c2VyX2dyb3VwX3VyaXMiOltdLCJlbWFpbCI6InBldGVyLnJvb3NAd3VyLm5sIiwiY3JlZGVudGlhbHNfbGlzdCI6W119.lz_Lz6sRuPOqgCTrYO33TSMLWDlpgucZeidxa_7s0J5SVL4mIwoDXfWANVxI_GgTJ4lFMIkrdmOEr_Tissta5Gp7DBCs8bfkGYUI7bTJfTbSSMYIjMBK-AuEXVscUrnJ0RICtCZf2-XmnXyBW_AWKFsPULJLBa_9eALIrWIer_tE_4qBiK4YWCbgNq0DxpCm4CYh0g3gSBUY3WaQKRFFIRJHgCC_MtsqC2c95GYXe7mtFuBqkQcivwsJ59VZs2cTvmZOariRGcRCmuPZA-QHe54Dh-TBbfvwpkcwNgeBMatGMYIh2ElOX5Veyyyxz-5R3j7e0z-FLNDX6IFcesPppA'}
Request data:
{}
Performing GET request...
URL:
'http://145.100.57.177:8666/rest/core/experiment/search'
Reponse code:
Status code 204
Reponse data:
<Response [204]>
REQUEST END
REQUEST START
Contacting service url: http://145.100.57.177:8666/rest/core/experiment/search
Header:
{'Content-Type': 'application/json', 'accept': 'application/json', 'Authorization': 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzUxMiJ9.eyJpc19hZG1pbiI6dHJ1ZSwic3ViIjoib3MtdTpwZXRlci5yb29zIiwiaXNzIjoib3BlbnNpbGV4IiwibmFtZSI6InBldGVyIHJvb3MgPHBldGVyLnJvb3NAd3VyLm5sPiIsImV4cCI6MTU5NDIwNTc1OSwiZ2l2ZW5fbmFtZSI6InBldGVyIiwiaWF0IjoxNTk0MjAzOTU5LCJmYW1pbHlfbmFtZSI6InJvb3MiLCJ1c2VyX2dyb3VwX3VyaXMiOltdLCJlbWFpbCI6InBldGVyLnJvb3NAd3VyLm5sIiwiY3JlZGVudGlhbHNfbGlzdCI6W119.lz_Lz6sRuPOqgCTrYO33TSMLWDlpgucZeidxa_7s0J5SVL4mIwoDXfWANVxI_GgTJ4lFMIkrdmOEr_Tissta5Gp7DBCs8bfkGYUI7bTJfTbSSMYIjMBK-AuEXVscUrnJ0RICtCZf2-XmnXyBW_AWKFsPULJLBa_9eALIrWIer_tE_4qBiK4YWCbgNq0DxpCm4CYh0g3gSBUY3WaQKRFFIRJHgCC_MtsqC2c95GYXe7mtFuBqkQcivwsJ59VZs2cTvmZOariRGcRCmuPZA-QHe54Dh-TBbfvwpkcwNgeBMatGMYIh2ElOX5Veyyyxz-5R3j7e0z-FLNDX6IFcesPppA'}
Request data:
{}
Performing GET request...
URL:
'http://145.100.57.177:8666/rest/core/experiment/search?label=.%2A'
Reponse code:
Status code 204
Reponse data:
<Response [204]>
REQUEST END
REQUEST START
Contacting service url: http://145.100.57.177:8666/rest/core/experiment/search
Header:
{'Content-Type': 'application/json', 'accept': 'application/json', 'Authorization': 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzUxMiJ9.eyJpc19hZG1pbiI6dHJ1ZSwic3ViIjoib3MtdTpwZXRlci5yb29zIiwiaXNzIjoib3BlbnNpbGV4IiwibmFtZSI6InBldGVyIHJvb3MgPHBldGVyLnJvb3NAd3VyLm5sPiIsImV4cCI6MTU5NDIwNTc1OSwiZ2l2ZW5fbmFtZSI6InBldGVyIiwiaWF0IjoxNTk0MjAzOTU5LCJmYW1pbHlfbmFtZSI6InJvb3MiLCJ1c2VyX2dyb3VwX3VyaXMiOltdLCJlbWFpbCI6InBldGVyLnJvb3NAd3VyLm5sIiwiY3JlZGVudGlhbHNfbGlzdCI6W119.lz_Lz6sRuPOqgCTrYO33TSMLWDlpgucZeidxa_7s0J5SVL4mIwoDXfWANVxI_GgTJ4lFMIkrdmOEr_Tissta5Gp7DBCs8bfkGYUI7bTJfTbSSMYIjMBK-AuEXVscUrnJ0RICtCZf2-XmnXyBW_AWKFsPULJLBa_9eALIrWIer_tE_4qBiK4YWCbgNq0DxpCm4CYh0g3gSBUY3WaQKRFFIRJHgCC_MtsqC2c95GYXe7mtFuBqkQcivwsJ59VZs2cTvmZOariRGcRCmuPZA-QHe54Dh-TBbfvwpkcwNgeBMatGMYIh2ElOX5Veyyyxz-5R3j7e0z-FLNDX6IFcesPppA'}
Request data:
{}
Performing GET request...
URL:
'http://145.100.57.177:8666/rest/core/experiment/search?label=INIT-OPEN-FIELD-6'
Reponse code:
Status code 204
Reponse data:
<Response [204]>
REQUEST END
The text was updated successfully, but these errors were encountered: