Fixed query template

This commit is contained in:
Luca Frosini 2023-05-15 14:34:49 +02:00
parent cdbd2d2fb7
commit 43b8fbbacd
1 changed files with 10 additions and 12 deletions

View File

@ -1,29 +1,27 @@
{ {
"@class" : "QueryTemplate", "type" : "QueryTemplate",
"name" : "GCat-Get-CallsFor-to-VirtualService", "name" : "GCat-Get-CallsFor-to-VirtualService",
"description" : "The following query return all CallsFor relation from the EService of gcat identified by the UUID provided as parameter to the Virtual Service with name 'catalogue-virtual-service'. The content of the request to run this query template will be something like {\"$uuid\": \"335580b6-c164-4506-980a-21e5bcf8dbcf\"}", "description" : "The following query return all CallsFor relation from the EService of gcat identified by the UUID provided as parameter to the Virtual Service with name 'catalogue-virtual-service'. The content of the request to run this query template will be something like {\"$uuid\": \"335580b6-c164-4506-980a-21e5bcf8dbcf\"}",
"template" : { "template" : {
"@class" : "CallsFor", "type" : "CallsFor",
"source" : { "source" : {
"@class" : "EService", "type" : "EService",
"header" : { "id" : "$uuid",
"uuid" : "$uuid"
},
"consistsOf" : [ { "consistsOf" : [ {
"@class" : "IsIdentifiedBy", "type" : "IsIdentifiedBy",
"target" : { "target" : {
"@class" : "SoftwareFacet", "type" : "SoftwareFacet",
"group" : "org.gcube.data-catalogue", "group" : "org.gcube.data-catalogue",
"name" : "gcat" "name" : "gcat"
} }
} ] } ]
}, },
"target" : { "target" : {
"@class" : "VirtualService", "type" : "VirtualService",
"consistsOf" : [ { "consistsOf" : [ {
"@class" : "IsIdentifiedBy", "type" : "IsIdentifiedBy",
"target" : { "target" : {
"@class" : "SoftwareFacet", "type" : "SoftwareFacet",
"group" : "org.gcube.data-catalogue", "group" : "org.gcube.data-catalogue",
"name" : "catalogue-virtual-service" "name" : "catalogue-virtual-service"
} }
@ -32,7 +30,7 @@
}, },
"templateVariables" : { "templateVariables" : {
"$uuid" : { "$uuid" : {
"@class": "TemplateVariable", "type": "TemplateVariable",
"name": "$uuid", "name": "$uuid",
"description": "The uuid of the gCat EService, e.g. 335580b6-c164-4506-980a-21e5bcf8dbcf. Please note that the default value has no meaning but we need a valid value so that the query can be tested by the resource-registry service.", "description": "The uuid of the gCat EService, e.g. 335580b6-c164-4506-980a-21e5bcf8dbcf. Please note that the default value has no meaning but we need a valid value so that the query can be tested by the resource-registry service.",
"defaultValue": "335580b6-c164-4506-980a-21e5bcf8dbcf" "defaultValue": "335580b6-c164-4506-980a-21e5bcf8dbcf"