From 1b5efd90ed47bdf431c83660909c8ad331d3e42e Mon Sep 17 00:00:00 2001 From: Marek Szkowron Date: Wed, 10 Jun 2020 13:24:11 +0200 Subject: [PATCH] Add /oc/con to client_certification_tests_IDD --- apps/client_certification_tests_IDD.cbor | Bin 3415 -> 4554 bytes apps/client_certification_tests_IDD.json | 93 +++++++++++++++++++++++ 2 files changed, 93 insertions(+) diff --git a/apps/client_certification_tests_IDD.cbor b/apps/client_certification_tests_IDD.cbor index e920144df71a83c84a2e672192b892f45c07ab1e..c7e19c9151d395803f051ca0c6fa30a0ad51993c 100644 GIT binary patch delta 938 zcmb7?&u-K(5XMym5?!uHlm#Tia^L`)!V46sh^i72e^l-`_BfesVjGXc?wzET%t_uncw$)^JDyd^7&wuB}OE|=tgAVn^OrS99oY? zFOJ>;naT-ZKIfkCqA+t}$~g7{K4B=61%V0$LmjFmkGGgNECm)iD$FVeaypt>?sy3v z9IYGq(1BWvCrMYV+nt*$bU@Z<0&2vw{rv&O2Sp->lJ^(yOcDtSHO5(#9QI>2qucOE zYv_WENAIoVK8k<=C{Io0WA%EkXH?(aNmfz^R+$>POi^#%xr2{YV3fayEcgGx(#;G& z|DkQu@4;WhZ5y`j*Mp-`S`MT)GwX~6=P`Jgx(g26+Xi{Ew7`tocyU$)^iWbGL09E^ zW>8G$r_+#MZFa|_yhME*|L@eluHLG@?B3YRLIAuf{Q0wO%XQ7KJyj{HL41oRC&BjD zhcDT&4hx{T0Af^GYn%tk(q%wFVwbX*$bxE`a)JUiVE^srm!sWYZIfDa-L^Eas55Y2 z6xT!6S!B(tl53_Mf|kXS#ck+!n!vNT;Nj32@8b?XDBuN|w=C>-0U|2H?jXhMZ@O%j ivDo`7vE++apfjKEJ(oVjqR2bcS=*i$@oh2sdF2m`wR)NW delta 16 YcmX@5d|hgS{bo%jcdpGp`7Sa6068NDY5)KL diff --git a/apps/client_certification_tests_IDD.json b/apps/client_certification_tests_IDD.json index 22d968a6e..33f3e6496 100644 --- a/apps/client_certification_tests_IDD.json +++ b/apps/client_certification_tests_IDD.json @@ -7,6 +7,48 @@ "application/json" ], "paths":{ + "/oc/con": { + "get": { + "description": "Resource that allows for Device specific information to be configured.\n", + "parameters": [ + { + "$ref": "#/parameters/interface-all" + } + ], + "responses": { + "200": { + "description" : "", + "schema": { + "$ref": "#/definitions/Configuration" + } + } + } + }, + "post": { + "description": "Update the information about the Device\n", + "parameters": [ + { + "$ref": "#/parameters/interface-rw" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ConfigurationUpdate" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ConfigurationUpdate" + } + } + } + } + }, "/oic/p":{ "get":{ "responses":{ @@ -324,6 +366,57 @@ } }, "type":"object" + }, + "Configuration": { + "properties": { + "rt": { + "description": "Resource Type of the Resource", + "items": { + "enum": ["oic.wk.con"], + "type": "string", + "maxLength": 64 + }, + "minItems": 1, + "uniqueItems": true, + "readOnly": true, + "type": "array", + "default": ["oic.wk.con"] + }, + "n": { + "type": "string", + "readOnly": true, + "maxLength": 64, + "description": "" + }, + "if" : { + "description": "The OCF Interfaces supported by this Resource", + "items": { + "enum": [ + "oic.if.baseline", + "oic.if.rw" + ], + "type": "string", + "maxLength": 64 + }, + "minItems": 1, + "uniqueItems": true, + "readOnly": true, + "type": "array" + } + }, + "type" : "object", + "required": ["n"] + }, + "ConfigurationUpdate" : { + "properties": { + "n": { + "description": "The human friendly name to be set on the Resource, this is also reflected in the same Property in oic.wk.d", + "maxLength": 64, + "type": "string" + } + }, + "required": ["n"], + "type" : "object" } }, "info":{ -- GitLab