Commit 37b71837 authored by ymir's avatar ymir
Browse files

dummy OSB GraphQL client

parent 7089ca65
......@@ -78,15 +78,15 @@
</row>
<row>
<cell>subscribe_clients</cell>
<cell>subscription($readClientsInput:ReadClientsInput!,$period:Int!,$occurencesNumber:Int!,$callbackEndpoint:String,$withAddress:Boolean!,$withPurchaseOrders:Boolean!,$withOrderLines:Boolean!){readClients(readClientsInput:$readClientsInput,period:$period,occurencesNumber:$occurencesNumber,callbackEndpoint:$callbackEndpoint,withAddress:$withAddress,withPurchaseOrders:$withPurchaseOrders,withOrderLines:$withOrderLines){id,firstName,lastName,address@include(if:$withAddress){id,houseNumber,street,zipCode,city}purchaseOrders@include(if:$withPurchaseOrders){id,creationDate,orderLines@include(if:$withOrderLines){id,item{id,name,price},quantity}}}}</cell>
<cell>subscription ($readClientsInput:ReadClientsInput!,$period:Int!,$occurencesNumber:Int!,$callbackEndpoint:String,$withAddress:Boolean!,$withPurchaseOrders:Boolean!,$withOrderLines:Boolean!){readClients(readClientsInput:$readClientsInput,period:$period,occurencesNumber:$occurencesNumber,callbackEndpoint:$callbackEndpoint,withAddress:$withAddress,withPurchaseOrders:$withPurchaseOrders,withOrderLines:$withOrderLines){id,firstName,lastName,address@include(if:$withAddress){id,houseNumber,street,zipCode,city}purchaseOrders@include(if:$withPurchaseOrders){id,creationDate,orderLines@include(if:$withOrderLines){id,item{id,name,price},quantity}}}}</cell>
</row>
<row>
<cell>subscribe_purchaseOrders</cell>
<cell>subscription($readPurchaseOrdersInput:ReadPurchaseOrdersInput!,$period:Int!,$occurencesNumber:Int!,$callbackEndpoint:String,$withOrderLines:Boolean!,$withClient:Boolean!,$withAddress:Boolean!){readPurchaseOrders(readPurchaseOrdersInput:$readPurchaseOrdersInput,period:$period,occurencesNumber:$occurencesNumber,callbackEndpoint:$callbackEndpoint,withOrderLines:$withOrderLines,withClient:$withClient,withAddress:$withAddress){id,creationDate,orderLines@include(if:$withOrderLines){id,item{id,name,price},quantity},client@include(if:$withClient){id,firstName,lastName,address@include(if:$withAddress){id,houseNumber,street,zipCode,city}}}}</cell>
<cell>subscription ($readPurchaseOrdersInput:ReadPurchaseOrdersInput!,$period:Int!,$occurencesNumber:Int!,$callbackEndpoint:String,$withOrderLines:Boolean!,$withClient:Boolean!,$withAddress:Boolean!){readPurchaseOrders(readPurchaseOrdersInput:$readPurchaseOrdersInput,period:$period,occurencesNumber:$occurencesNumber,callbackEndpoint:$callbackEndpoint,withOrderLines:$withOrderLines,withClient:$withClient,withAddress:$withAddress){id,creationDate,orderLines@include(if:$withOrderLines){id,item{id,name,price},quantity},client@include(if:$withClient){id,firstName,lastName,address@include(if:$withAddress){id,houseNumber,street,zipCode,city}}}}</cell>
</row>
<row>
<cell>subscribe_items</cell>
<cell>subscription($readItemsInput:ReadItemsInput!,$period:Int!,$occurencesNumber:Int!,$callbackEndpoint:String,$withClients:Boolean!,$withAddress:Boolean!,$withPurchaseOrders:Boolean!){readItems(readItemsInput:$readItemsInput,period:$period,occurencesNumber:$occurencesNumber,callbackEndpoint:$callbackEndpoint,withClients:$withClients,withAddress:$withAddress,withPurchaseOrders:$withPurchaseOrders){name,price,clients@include(if:$withClients){firstName,lastName,purchaseOrders@include(if:$withPurchaseOrders){creationDate,quantity},address@include(if:$withAddress){houseNumber,street,zipCode,city}}}}</cell>
<cell>subscription ($readItemsInput:ReadItemsInput!,$period:Int!,$occurencesNumber:Int!,$callbackEndpoint:String,$withClients:Boolean!,$withAddress:Boolean!,$withPurchaseOrders:Boolean!){readItems(readItemsInput:$readItemsInput,period:$period,occurencesNumber:$occurencesNumber,callbackEndpoint:$callbackEndpoint,withClients:$withClients,withAddress:$withAddress,withPurchaseOrders:$withPurchaseOrders){name,price,clients@include(if:$withClients){firstName,lastName,purchaseOrders@include(if:$withPurchaseOrders){creationDate,quantity},address@include(if:$withAddress){houseNumber,street,zipCode,city}}}}</cell>
</row>
</rows>
</dvm>
......@@ -9,6 +9,8 @@
<xsd:element name="ids" maxOccurs="unbounded" type="xsd:integer"/>
<xsd:element name="firstName" type="xsd:string"/>
<xsd:element name="lastName" type="xsd:string"/>
<xsd:element name="limit" type="xsd:integer"/>
<xsd:element name="offset" type="xsd:integer"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
......
{"readClientsInput": {
"ids":[0,0],
"firstName":"first_name#",
"lastName":"last_name#"
"lastName":"last_name#",
"limit": 1,
"offset": 0
},
"period":1, "occurencesNumber":1,
"callbackEndpoint" : "http://10.7.1.11:8082/",
......
......@@ -8,6 +8,8 @@
<xsd:sequence>
<xsd:element name="ids" maxOccurs="unbounded" type="xsd:integer"/>
<xsd:element name="name" type="xsd:string"/>
<xsd:element name="limit" type="xsd:integer"/>
<xsd:element name="offset" type="xsd:integer"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
......
{"readItemsInput": {
"ids":[0,0],
"name":"name#"
"name":"name#",
"limit": 1,
"offset": 0
},
"period":1, "occurencesNumber":1,
"callbackEndpoint" : "http://10.7.1.11:8082/",
......
......@@ -9,6 +9,8 @@
<xsd:element name="ids" maxOccurs="unbounded" type="xsd:integer"/>
<xsd:element name="minimumCreationDate" type="xsd:integer"/>
<xsd:element name="maximumCreationDate" type="xsd:integer"/>
<xsd:element name="limit" type="xsd:integer"/>
<xsd:element name="offset" type="xsd:integer"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
......
{"readPurchaseOrdersInput": {
"ids":[0,0],
"minimumCreationDate":20200101,
"maximumCreationDate":20201231
"maximumCreationDate":20201231,
"limit": 1,
"offset": 0
},
"period":1, "occurencesNumber":1,
"callbackEndpoint" : "http://10.7.1.11:8082/",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment