Skip to content

Commit ccc1860

Browse files
authored
Merge pull request #6 from openconnectivityfoundation/WAvdBeek-patch-1
Update query-test.swagger.json
2 parents 949f213 + c0676b0 commit ccc1860

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

module_testing/query-test.swagger.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"paths": {
1717
"/QueryTestResURI" : {
1818
"get": {
19-
"description": "This resource describes a test resource with a optional query parameter.\n",
19+
"description": "This resource describes a test resource with a optional query parameter. using the query-value set the value of the query-value property in the resource",
2020
"parameters": [
2121
{"$ref": "#/parameters/interface"},
2222
{
@@ -55,7 +55,7 @@
5555
}
5656
},
5757
"post": {
58-
"description": "Sets the desired value.\nIf a unit is included and the server does not support the unit indicated the request will fail.\nIf the units are omitted value is taken to be in C.\n",
58+
"description": "Sets the desired value.\nIf a query-value is included and the server does not support the query-value indicated the request will fail.\nIf the query-value are omitted the value is taken to be 'C'.\n",
5959
"parameters": [
6060
{"$ref": "#/parameters/interface"},
6161
{
@@ -67,6 +67,14 @@
6767
{
6868
"value": 18.0
6969
}
70+
},
71+
{
72+
"in": "query",
73+
"description": "query-value, only using A, B and C",
74+
"type": "string",
75+
"enum": ["A", "B", "C"],
76+
"name": "query-value",
77+
"x-queryexample" : "/QueryTestResURI?query-value=A"
7078
}
7179
],
7280
"responses": {

0 commit comments

Comments
 (0)