From c67e963e71979c15debf92fdc5dca48d9548c837 Mon Sep 17 00:00:00 2001 From: Clarke Stevens Date: Tue, 20 Mar 2018 22:22:15 +0100 Subject: [PATCH] revert commits for early accepted data models --- 3dprinter.raml | 47 ---- ORFID_reader.raml | 49 ---- ORFID_station.raml | 66 ----- bloodPressure.raml | 47 ---- bloodPressureMonitorAM.raml | 133 --------- bmi.raml | 44 --- bodyFat.raml | 46 --- bodyFatFreeMass.raml | 46 --- bodyLocation.raml | 42 --- bodyLocationTemperature.raml | 42 --- bodyScaleAM.raml | 132 --------- bodySoftLeanMass.raml | 46 --- bodyWater.raml | 46 --- glucose.raml | 46 --- glucoseCarb.raml | 45 --- glucoseExercise.raml | 43 --- glucoseHbA1c.raml | 43 --- glucoseHealth.raml | 45 --- glucoseMeal.raml | 45 --- glucoseMedication.raml | 47 ---- glucoseMeterAM.raml | 132 --------- glucoseSampleLocation.raml | 43 --- glucoseTester.raml | 43 --- height.raml | 123 +++++--- oic.collection-schema.json | 328 ++++++++++++++++++---- oic.collection.batch-retrieve-schema.json | 46 --- oic.collection.linkslist-schema.json | 11 +- oic.r.3dprinter.json | 60 ---- oic.r.bloodpressure.json | 44 --- oic.r.bloodpressuremonitor-am.json | 51 ---- oic.r.bmi.json | 26 -- oic.r.body.fat.json | 32 --- oic.r.body.ffm.json | 32 --- oic.r.body.location.json | 26 -- oic.r.body.location.temperature.json | 27 -- oic.r.body.slm.json | 32 --- oic.r.body.water.json | 32 --- oic.r.bodyscale-am.json | 51 ---- oic.r.bodythermometer-am.json | 51 ---- oic.r.glucose.carb.json | 31 -- oic.r.glucose.exercise.json | 27 -- oic.r.glucose.hba1c.json | 27 -- oic.r.glucose.health.json | 26 -- oic.r.glucose.json | 32 --- oic.r.glucose.meal.json | 26 -- oic.r.glucose.medication.json | 37 --- oic.r.glucose.samplelocation.json | 26 -- oic.r.glucose.tester.json | 26 -- oic.r.glucosemeter-am.json | 51 ---- oic.r.height.json | 55 ++-- oic.r.orfid_reader.json | 28 -- oic.r.orfid_station.json | 32 --- oic.r.printqueue.json | 52 ---- oic.r.pulserate.json | 26 -- oic.r.sensor.props.json | 27 -- oic.r.userid.json | 25 -- oic.r.weight.json | 55 ++-- printqueue.raml | 50 ---- pulseRate.raml | 44 --- rbodyThermometerAM.raml | 131 --------- sensorprops.raml | 71 ----- userID.raml | 43 --- weight.raml | 87 +++--- 63 files changed, 454 insertions(+), 2871 deletions(-) delete mode 100644 3dprinter.raml delete mode 100644 ORFID_reader.raml delete mode 100644 ORFID_station.raml delete mode 100644 bloodPressure.raml delete mode 100644 bloodPressureMonitorAM.raml delete mode 100644 bmi.raml delete mode 100644 bodyFat.raml delete mode 100644 bodyFatFreeMass.raml delete mode 100644 bodyLocation.raml delete mode 100644 bodyLocationTemperature.raml delete mode 100644 bodyScaleAM.raml delete mode 100644 bodySoftLeanMass.raml delete mode 100644 bodyWater.raml delete mode 100644 glucose.raml delete mode 100644 glucoseCarb.raml delete mode 100644 glucoseExercise.raml delete mode 100644 glucoseHbA1c.raml delete mode 100644 glucoseHealth.raml delete mode 100644 glucoseMeal.raml delete mode 100644 glucoseMedication.raml delete mode 100644 glucoseMeterAM.raml delete mode 100644 glucoseSampleLocation.raml delete mode 100644 glucoseTester.raml delete mode 100644 oic.collection.batch-retrieve-schema.json delete mode 100644 oic.r.3dprinter.json delete mode 100644 oic.r.bloodpressure.json delete mode 100644 oic.r.bloodpressuremonitor-am.json delete mode 100644 oic.r.bmi.json delete mode 100644 oic.r.body.fat.json delete mode 100644 oic.r.body.ffm.json delete mode 100644 oic.r.body.location.json delete mode 100644 oic.r.body.location.temperature.json delete mode 100644 oic.r.body.slm.json delete mode 100644 oic.r.body.water.json delete mode 100644 oic.r.bodyscale-am.json delete mode 100644 oic.r.bodythermometer-am.json delete mode 100644 oic.r.glucose.carb.json delete mode 100644 oic.r.glucose.exercise.json delete mode 100644 oic.r.glucose.hba1c.json delete mode 100644 oic.r.glucose.health.json delete mode 100644 oic.r.glucose.json delete mode 100644 oic.r.glucose.meal.json delete mode 100644 oic.r.glucose.medication.json delete mode 100644 oic.r.glucose.samplelocation.json delete mode 100644 oic.r.glucose.tester.json delete mode 100644 oic.r.glucosemeter-am.json delete mode 100644 oic.r.orfid_reader.json delete mode 100644 oic.r.orfid_station.json delete mode 100644 oic.r.printqueue.json delete mode 100644 oic.r.pulserate.json delete mode 100644 oic.r.sensor.props.json delete mode 100644 oic.r.userid.json delete mode 100644 printqueue.raml delete mode 100644 pulseRate.raml delete mode 100644 rbodyThermometerAM.raml delete mode 100644 sensorprops.raml delete mode 100644 userID.raml diff --git a/3dprinter.raml b/3dprinter.raml deleted file mode 100644 index 1c6e63a..0000000 --- a/3dprinter.raml +++ /dev/null @@ -1,47 +0,0 @@ -#%RAML 0.8 -title: 3DPrinter -version: v1.1.0-20180115 -documentation: - - title: (c) 2018 Open Connectivity Foundation, Inc. All rights reserved. - content: | - Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE Open Connectivity Foundation, INC. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE OR WARRANTIES OF NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL THE Open Connectivity Foundation, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -schemas: - - 3DPrinter: !include oic.r.3dprinter.json - -traits: - - interface: - queryParameters: - if: - enum: ["oic.if.r","oic.if.baseline"] - -/3DPrinterResURI: - description: | - This resource describes the attributes associated with 3D Printer. The type of 3D printing technology is specified by an enumerated string value. The maximum sizes in mm are included for the x, y, and z dimensions. A designation of whether the device is capable of WAN connectivity is represented in a boolean. The memory capacity is captured in MB. - - The print - displayName: 3D Printer - is: [ interface ] # valid for all methods - - get: - description: | - Retrieves the current 3D Printer attributes. - responses: - 200: - body: - application/json: - schema: 3DPrinter - example: | - { - "rt" : ["oic.r.3dprinter"], - "id" : "unique_example_id", - "3dprinttype" : "Digital Light Processing", - "printsizex" : 300.00, - "printsizey" : 200.50, - "printsizez" : 250.75, - "wanconnected" : false, - "memorysize" : 120.5 - } \ No newline at end of file diff --git a/ORFID_reader.raml b/ORFID_reader.raml deleted file mode 100644 index 2d1c6c1..0000000 --- a/ORFID_reader.raml +++ /dev/null @@ -1,49 +0,0 @@ -#%RAML 0.8 -title: OpticalRFIDSmartfactory Reader -version: Version 2018-01-30 -documentation: - - title: © 2016 Open Connectivity Foundation, Inc. All rights reserved. - content: | - Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE OPEN INTERCONNECT CONSORTIUM, INC. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE OR WARRANTIES OF NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL THE OPEN INTERCONNECT CONSORTIUM, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -schemas: - - ORFID: !include oic.r.orfid_reader.json - -traits: - - interface: - queryParameters: - if: - enum: ["oic.if.r","oic.if.baseline"] - -/ORFIDSmartFactoryResURI: - description: | - In OCF interface, optical augmented RFID reader+tag became a single OCF resource. The tagid is an integer showing the currently read optical augmented RFID tag's identity information. The process represents the stage of the product in the product line which has an optical RFID tag on its body. Event is represented by a Boolean value set to "True" and "False" alarming the issue when additional action is requested for the tagged product. Actionrequest represent necessary actions like the isolation of the product, to send the product back to other specific line to modify or fix the issue. - - - displayName: Optical RFID - is: [ interface ] - - get: - description: | - Retrieves the tag information from optical augmented RFID reader in smart factory environment. - responses: - 200: - body: - application/json: - schema: ORFID - example: | - { - "rt": ["oic.r.orfid.reader"], - "id": "unique_example_id", - "tagid": 10965742, - "reading" : true - } - - - - - - diff --git a/ORFID_station.raml b/ORFID_station.raml deleted file mode 100644 index 2e6e1bb..0000000 --- a/ORFID_station.raml +++ /dev/null @@ -1,66 +0,0 @@ -#%RAML 0.8 -title: OpticalRFIDSmartfactory Station -version: Version 2018-01-30 -documentation: - - title: © 2016 Open Connectivity Foundation, Inc. All rights reserved. - content: | - Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE OPEN INTERCONNECT CONSORTIUM, INC. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE OR WARRANTIES OF NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL THE OPEN INTERCONNECT CONSORTIUM, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -schemas: - - ORFID: !include oic.r.orfid_station.json - -traits: - - interface: - queryParameters: - if: - enum: ["oic.if.rw","oic.if.baseline"] - -/ORFIDSmartFactoryResURI: - description: | - In OCF interface, optical augmented RFID reader+tag became a single OCF resource. The tagid is an integer showing the currently read optical augmented RFID tag's identity information. The process represents the stage of the product in the product line which has an optical RFID tag on its body. Event is represented by a Boolean value set to "True" and "False" alarming the issue when additional action is requested for the tagged product. Actionrequest represent necessary actions like the isolation of the product, to send the product back to other specific line to modify or fix the issue. - - - displayName: Optical RFID - is: [ interface ] - - get: - description: | - Retrieves the tag information from optical augmented RFID reader in smart factory environment. - responses: - 200: - body: - application/json: - schema: ORFID - example: | - { - "rt": ["oic.r.orfid.station"], - "id": "unique_example_id", - "process": 17, - "event": true, - "actionrequest": 2 - } - - post: - description: | - Sets necessary action in accordance with Tag Information - body: - application/json: - schema: ORFID - example: | - { - "event": false, - "actionrequest": 0 - } - responses: - 200: - body: - application/json: - schema: ORFID - example: | - { - "event": false, - "actionrequest": 0 - } diff --git a/bloodPressure.raml b/bloodPressure.raml deleted file mode 100644 index ad6694e..0000000 --- a/bloodPressure.raml +++ /dev/null @@ -1,47 +0,0 @@ -#%RAML 0.8 -title: OICBloodPressure -version: v1.1.0-20160519 -documentation: - - title: Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved. - content: | - Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE OPEN INTERCONNECT CONSORTIUM, INC. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE OR WARRANTIES OF NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL THE OPEN INTERCONNECT CONSORTIUM, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -schemas: - - BloodPressure: !include oic.r.bloodpressure.json - -traits: - - interface: - queryParameters: - if: - enum: ["oic.if.s", "oic.if.baseline"] - -/BloodPressureResURI: - description: | - This resource describes the properties associated with a person's Blood Pressure. - The unit is a single value that is one of mmHg or kPa. - If the unit Property is missing the default is a millimeter of mercury [mmHg]. - The BloodPressure and unit Properties are read-only values that are provided by the server. - When range (from oic.r.baseresource) is omitted the default is 0 to +MAXFLOAT. - - displayName: Blood Pressure - is: [ interface ] - - get: - description: | - Retrieves blood pressure of an object. - responses: - 200: - body: - application/json: - schema: BloodPressure - example: | - { - "rt": ["oic.r.bloodpressure"], - "id": "unique_example_id", - "systolic": 110, - "diastolic": 85, - "unit": "mmHg" - } diff --git a/bloodPressureMonitorAM.raml b/bloodPressureMonitorAM.raml deleted file mode 100644 index 9771896..0000000 --- a/bloodPressureMonitorAM.raml +++ /dev/null @@ -1,133 +0,0 @@ -#%RAML 0.8 -title: OICBloodPressureMonitorAM -version: v1.1.0-20160519 -documentation: - - title: © 2018 Open Connectivity Foundation, Inc. All rights reserved. - content: | - Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE Open Connectivity Foundation, INC. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE OR WARRANTIES OF NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL THE Open Connectivity Foundation, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -schemas: - - batch-retrieve: !include oic.collection.batch-retrieve-schema.json - - links: !include oic.collection.linkslist-schema.json - - baseline: !include oic.collection-schema.json - -traits: - - interface-all: - queryParameters: - if: - enum: ["oic.if.b", "oic.if.ll", "oic.if.baseline"] - - interface-b: - queryParameters: - if: - enum: ["oic.if.b"] - - interface-ll: - queryParameters: - if: - enum: ["oic.if.ll"] - - interface-baseline: - queryParameters: - if: - enum: ["oic.if.baseline"] - -/BloodPressureMonitorAMResURI?if=oic.if.b: - description: | - This resource describes the proporties associated with Blood Pressure Monitor. - The resource is an atomic measurement of blood pressure (oic.r.bloodpressure), pulse rate (oic.r.pulserate), observed time (oic.r.time.stamp), and user ID (oic.r.userid). - displayName: Blood Pressure Monitor Atomic Measurement Batch Representation - is: [ interface-b ] - - get: - description: | - Retrieves the current blood pressure. - responses: - 200: - body: - application/json: - schema: batch-retrieve - example: | - [ - { - "href": "/myBloodPressureResURI", - "rep": - { - "systolic": 120, - "diastolic": 80, - "units": "mmHg" - } - }, - { - "href": "/myPulseRateResURI", - "rep": - { - "pulserate": 70 - } - } - ] - -/BloodPressureMonitorAMResURI?if=oic.if.ll: - description: | - This resource describes the proporties associated with Blood Pressure Monitor. - The resource is an atomic measurement of blood pressure (oic.r.bloodpressure), pulse rate (oic.r.pulserate), observed time (oic.r.time.stamp), and user ID (oic.r.userid). - displayName: Blood Pressure Monitor Atomic Measurement Linked List Representation - is: [ interface-ll ] - - get: - description: | - Retrieves the current blood pressure. - responses: - 200: - body: - application/json: - schema: links - example: | - [ - { - "href": "/myBloodPressureResURI", - "rt": ["oic.r.bloodpressure"], - "if": ["oic.if.s", "oic.if.baseline"] - }, - { - "href": "/myPulseRateResURI", - "rt": ["oic.r.pulserate"], - "if": ["oic.if.s", "oic.if.baseline"] - } - ] - - -/BloodPressureMonitorAMResURI?if=oic.if.baseline: - description: | - This resource describes the proporties associated with Blood Pressure Monitor. - The resource is an atomic measurement of blood pressure (oic.r.bloodpressure), pulse rate (oic.r.pulserate), observed time (oic.r.time.stamp), and user ID (oic.r.userid). - displayName: Blood Pressure Monitor Atomic Measurement Baseline Representation - is: [ interface-baseline ] - - get: - description: | - Retrieves the current blood pressure. - responses: - 200: - body: - application/json: - schema: baseline - example: | - { - "rt": ["oic.r.bloodpressuremonitor-am", "oic.wk.col.atomic"], - "if": ["oic.if.b", "oic.if.ll", "oic.if.baseline"], - "rts-m": ["oic.r.bloodpressure"], - "rts": ["oic.r.bloodpressure", "oic.r.pulserate"], - "links": [ - { - "href": "/myBloodPressureResURI", - "rt": ["oic.r.bloodpressure"], - "if": ["oic.if.s", "oic.if.baseline"] - }, - { - "href": "/myPulseRateResURI", - "rt": ["oic.r.pulserate"], - "if": ["oic.if.s", "oic.if.baseline"] - } - ] - } diff --git a/bmi.raml b/bmi.raml deleted file mode 100644 index a776b46..0000000 --- a/bmi.raml +++ /dev/null @@ -1,44 +0,0 @@ -#%RAML 0.8 -title: OICBMI -version: v1.1.0-20160519 -documentation: - - title: Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved. - content: | - Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE OPEN INTERCONNECT CONSORTIUM, INC. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE OR WARRANTIES OF NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL THE OPEN INTERCONNECT CONSORTIUM, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -schemas: - - BMI: !include oic.r.bmi.json - -traits: - - interface: - queryParameters: - if: - enum: ["oic.if.s","oic.if.baseline"] - -/BMIResURI: - description: | - This resource describes the properties associated with a person's Body Mass Index (BMI). - The unit, which is the default unit, is kg/m^2. - The bmi and unit Properties are read-only values that are provided by the server. - When range (from oic.r.baseresource) is omitted the default is 0 to +MAXFLOAT. - - displayName: BMI - is: [ interface ] - - get: - description: | - Retrieves BMI of an object. - responses: - 200: - body: - application/json: - schema: BMI - example: | - { - "rt": ["oic.r.bmi"], - "id": "unique_example_id", - "bmi": 20 - } diff --git a/bodyFat.raml b/bodyFat.raml deleted file mode 100644 index 72d4c96..0000000 --- a/bodyFat.raml +++ /dev/null @@ -1,46 +0,0 @@ -#%RAML 0.8 -title: OICBodyFat -version: v1.1.0-20160519 -documentation: - - title: Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved. - content: | - Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE OPEN INTERCONNECT CONSORTIUM, INC. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE OR WARRANTIES OF NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL THE OPEN INTERCONNECT CONSORTIUM, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -schemas: - - BodyFat: !include oic.r.body.fat.json - -traits: - - interface: - queryParameters: - if: - enum: ["oic.if.s","oic.if.baseline"] - -/BodyFatResURI: - description: | - This resource describes the properties associated with a person's Body fat. - The units is a single value that is one of kg, lb or %. - If the units Property is missing the default is kilograms [kg]. - The bodyfat and units Properties are read-only values that are provided by the server. - When range (from oic.r.baseresource) is omitted the default is 0 to +MAXFLOAT. - - displayName: Body Fat - is: [ interface ] - - get: - description: | - Retrieves Body fat of an object. - responses: - 200: - body: - application/json: - schema: BodyFat - example: | - { - "rt": ["oic.r.body.fat"], - "id": "unique_example_id", - "bodyfat": 20, - "units": "kg" - } diff --git a/bodyFatFreeMass.raml b/bodyFatFreeMass.raml deleted file mode 100644 index 2cfb295..0000000 --- a/bodyFatFreeMass.raml +++ /dev/null @@ -1,46 +0,0 @@ -#%RAML 0.8 -title: OICBodyFatFreeMass -version: v1.1.0-20160519 -documentation: - - title: Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved. - content: | - Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE OPEN INTERCONNECT CONSORTIUM, INC. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE OR WARRANTIES OF NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL THE OPEN INTERCONNECT CONSORTIUM, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -schemas: - - BodyFatFreeMass: !include oic.r.body.ffm.json - -traits: - - interface: - queryParameters: - if: - enum: ["oic.if.s","oic.if.baseline"] - -/BodyFatFreeMassResURI: - description: | - This resource describes the properties associated with a person's Body fat free mass. - The units is a single value that is one of kg, lb or %. - If the units Property is missing the default is kilograms [kg]. - The ffm and units Properties are read-only values that are provided by the server. - When range (from oic.r.baseresource) is omitted the default is 0 to +MAXFLOAT. - - displayName: Body Fat Free Mass - is: [ interface ] - - get: - description: | - Retrieves Body fat free mass of an object. - responses: - 200: - body: - application/json: - schema: BodyFatFreeMass - example: | - { - "rt": ["oic.r.body.ffm"], - "id": "unique_example_id", - "ffm": 40, - "units": "kg" - } diff --git a/bodyLocation.raml b/bodyLocation.raml deleted file mode 100644 index 81c7d09..0000000 --- a/bodyLocation.raml +++ /dev/null @@ -1,42 +0,0 @@ -#%RAML 0.8 -title: OICBodyLocation -version: v1.1.0-20160519 -documentation: - - title: Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved. - content: | - Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE OPEN INTERCONNECT CONSORTIUM, INC. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE OR WARRANTIES OF NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL THE OPEN INTERCONNECT CONSORTIUM, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -schemas: - - BodyLocation: !include oic.r.body.location.json - -traits: - - interface: - queryParameters: - if: - enum: ["oic.if.s","oic.if.baseline"] - -/BodyLocationResURI: - description: | - This resource describes the properties associated with Body location of a person. - The bloc Property is a read-only value that is provided by the server. - - displayName: Body Location - is: [ interface ] - - get: - description: | - Retrieves Body location of a person. - responses: - 200: - body: - application/json: - schema: BodyLocation - example: | - { - "rt": ["oic.r.body.location"], - "id": "unique_example_id", - "bloc": "axillary" - } diff --git a/bodyLocationTemperature.raml b/bodyLocationTemperature.raml deleted file mode 100644 index 79179e2..0000000 --- a/bodyLocationTemperature.raml +++ /dev/null @@ -1,42 +0,0 @@ -#%RAML 0.8 -title: OICBodyLocationTemperature -version: v1.1.0-20160519 -documentation: - - title: Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved. - content: | - Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE OPEN INTERCONNECT CONSORTIUM, INC. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE OR WARRANTIES OF NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL THE OPEN INTERCONNECT CONSORTIUM, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -schemas: - - BodyLocationTemperature: !include oic.r.body.location.temperature.json - -traits: - - interface: - queryParameters: - if: - enum: ["oic.if.s","oic.if.baseline"] - -/BodyLocationTemperatureResURI: - description: | - This resource describes the properties associated with Body location for temperature measurement of a person. - The bloc Property is a read-only value that is provided by the server. - - displayName: Body Location Temperature - is: [ interface ] - - get: - description: | - Retrieves Body location for temperature measurement of a person. - responses: - 200: - body: - application/json: - schema: BodyLocationTemperature - example: | - { - "rt": ["oic.r.body.location.temperature"], - "id": "unique_example_id", - "bloc": "ear" - } diff --git a/bodyScaleAM.raml b/bodyScaleAM.raml deleted file mode 100644 index a5cfa33..0000000 --- a/bodyScaleAM.raml +++ /dev/null @@ -1,132 +0,0 @@ -#%RAML 0.8 -title: OICBodyScaleAM -version: v1.1.0-20160519 -documentation: - - title: © 2018 Open Connectivity Foundation, Inc. All rights reserved. - content: | - Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE Open Connectivity Foundation, INC. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE OR WARRANTIES OF NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL THE Open Connectivity Foundation, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -schemas: - - batch-retrieve: !include oic.collection.batch-retrieve-schema.json - - links: !include oic.collection.linkslist-schema.json - - baseline: !include oic.collection-schema.json - -traits: - - interface-all: - queryParameters: - if: - enum: ["oic.if.b", "oic.if.ll", "oic.if.baseline"] - - interface-b: - queryParameters: - if: - enum: ["oic.if.b"] - - interface-ll: - queryParameters: - if: - enum: ["oic.if.ll"] - - interface-baseline: - queryParameters: - if: - enum: ["oic.if.baseline"] - -/BodyScaleAMResURI?if=oic.if.b: - description: | - This resource describes the proporties associated with Body Scale. - The resource is an atomic measurement of Weight (oic.r.weight), Body Mass Index (BMI) (oic.r.bmi), Height (oic.r.height), Body Fat (oic.r.body.fat), Body Water (oic.r.body.water), Body Soft Lean Mass (oic.r.body.slm), Body Fat Free Mass (oic.r.body.ffm), Observed time (oic.r.time.stamp), and User ID (oic.r.userid). - - displayName: Body Scale Atomic Measurement Batch Representation - is: [ interface-b ] - - get: - description: | - Retrieves the current weight. - responses: - 200: - body: - application/json: - schema: batch-retrieve - example: | - [ - { - "href": "/myWeightResURI", - "rep": - { - "weight": 80, - "units": "kg" - } - }, - { - "href": "/myBMIResURI", - "rep": - { - "bmi": 20 - } - } - ] - -/BodyScaleAMResURI?if=oic.if.ll: - description: | - This resource describes the proporties associated with Body Scale. - The resource is an atomic measurement of Weight (oic.r.weight), Body Mass Index (BMI) (oic.r.bmi), Height (oic.r.height), Body Fat (oic.r.body.fat), Body Water (oic.r.body.water), Body Soft Lean Mass (oic.r.body.slm), Body Fat Free Mass (oic.r.body.ffm), Observed time (oic.r.time.stamp), and User ID (oic.r.userid). - displayName: Body Scale Atomic Measurement Linked List Representation - is: [ interface-ll ] - - get: - description: | - Retrieves the current weight. - responses: - 200: - body: - application/json: - schema: links - example: | - [ - { - "href": "/myWeightResURI", - "rt": ["oic.r.weight"], - "if": ["oic.if.s", "oic.if.baseline"] - }, - { - "href": "/myBMIResURI", - "rt": ["oic.r.bmi"], - "if": ["oic.if.s", "oic.if.baseline"] - } - ] - -/BodyScaleAMResURI?if=oic.if.baseline: - description: | - This resource describes the proporties associated with Body Scale. - The resource is an atomic measurement of Weight (oic.r.weight), Body Mass Index (BMI) (oic.r.bmi), Height (oic.r.height), Body Fat (oic.r.body.fat), Body Water (oic.r.body.water), Body Soft Lean Mass (oic.r.body.slm), Body Fat Free Mass (oic.r.body.ffm), Observed time (oic.r.time.stamp), and User ID (oic.r.userid). - displayName: Body Scale Atomic Measurement Baseline Representation - is: [ interface-baseline ] - - get: - description: | - Retrieves the current weight. - responses: - 200: - body: - application/json: - schema: baseline - example: | - { - "rt": ["oic.r.bodyscale-am", "oic.wk.col.atomic"], - "if": ["oic.if.b", "oic.if.ll", "oic.if.baseline"], - "rts": ["oic.r.weight", "oic.r.bmi"], - "rts-m": ["oic.r.weight"], - "links": [ - { - "href": "/myWeightResURI", - "rt": ["oic.r.weight"], - "if": ["oic.if.s", "oic.if.baseline"] - }, - { - "href": "/myBMIResURI", - "rt": ["oic.r.bmi"], - "if": ["oic.if.s", "oic.if.baseline"] - } - ] - } diff --git a/bodySoftLeanMass.raml b/bodySoftLeanMass.raml deleted file mode 100644 index 539f755..0000000 --- a/bodySoftLeanMass.raml +++ /dev/null @@ -1,46 +0,0 @@ -#%RAML 0.8 -title: OICBodySoftLeanMass -version: v1.1.0-20160519 -documentation: - - title: Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved. - content: | - Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE OPEN INTERCONNECT CONSORTIUM, INC. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE OR WARRANTIES OF NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL THE OPEN INTERCONNECT CONSORTIUM, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -schemas: - - BodySoftLeanMass: !include oic.r.body.slm.json - -traits: - - interface: - queryParameters: - if: - enum: ["oic.if.s","oic.if.baseline"] - -/BodySoftLeanMassResURI: - description: | - This resource describes the properties associated with a person's Body soft lean mass. - The units is a single value that is one of kg, lb or %. - If the units Property is missing the default is kilograms [kg]. - The slm and units Properties are read-only values that are provided by the server. - When range (from oic.r.baseresource) is omitted the default is 0 to +MAXFLOAT. - - displayName: BodySoftLeanMass - is: [ interface ] - - get: - description: | - Retrieves Body soft lean mass of an object. - responses: - 200: - body: - application/json: - schema: BodySoftLeanMass - example: | - { - "rt": ["oic.r.body.slm"], - "id": "unique_example_id", - "slm": 20, - "units": "kg" - } diff --git a/bodyWater.raml b/bodyWater.raml deleted file mode 100644 index fe31058..0000000 --- a/bodyWater.raml +++ /dev/null @@ -1,46 +0,0 @@ -#%RAML 0.8 -title: OICBodyWater -version: v1.1.0-20160519 -documentation: - - title: Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved. - content: | - Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE OPEN INTERCONNECT CONSORTIUM, INC. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE OR WARRANTIES OF NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL THE OPEN INTERCONNECT CONSORTIUM, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -schemas: - - BodyWater: !include oic.r.body.water.json - -traits: - - interface: - queryParameters: - if: - enum: ["oic.if.s","oic.if.baseline"] - -/BodyWaterResURI: - description: | - This resource describes the properties associated with a person's Body water. - The units is a single value that is one of kg or lb. - If the units Property is missing the default is kilograms [kg]. - The bwater and units Properties are read-only values that are provided by the server. - When range (from oic.r.baseresource) is omitted the default is 0 to +MAXFLOAT. - - displayName: Body Water - is: [ interface ] - - get: - description: | - Retrieves Body water of an object. - responses: - 200: - body: - application/json: - schema: BodyWater - example: | - { - "rt": ["oic.r.body.water"], - "id": "unique_example_id", - "bwater": 20, - "units": "kg" - } diff --git a/glucose.raml b/glucose.raml deleted file mode 100644 index 0ec66b9..0000000 --- a/glucose.raml +++ /dev/null @@ -1,46 +0,0 @@ -#%RAML 0.8 -title: OICGlucose -version: v1.1.0-20160519 -documentation: - - title: Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved. - content: | - Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE OPEN INTERCONNECT CONSORTIUM, INC. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE OR WARRANTIES OF NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL THE OPEN INTERCONNECT CONSORTIUM, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -schemas: - - Glucose: !include oic.r.glucose.json - -traits: - - interface: - queryParameters: - if: - enum: ["oic.if.s","oic.if.baseline"] - -/GlucoseResURI: - description: | - This resource describes the properties associated with a person's Glucose level. - The unit is a single value that is one of mg/dL, mmol/L. - If the unit Property is missing the default is milligrams per decilitre [mg/dL]. - The glucose and unit Properties are read-only values that are provided by the server. - When range (from oic.r.baseresource) is omitted the default is 0 to +MAXFLOAT. - - displayName: Glucose - is: [ interface ] - - get: - description: | - Retrieves glucose level of a person. - responses: - 200: - body: - application/json: - schema: Glucose - example: | - { - "rt": ["oic.r.glucose"], - "id": "unique_example_id", - "glucose": 90, - "units": "mg/dL" - } diff --git a/glucoseCarb.raml b/glucoseCarb.raml deleted file mode 100644 index ec5bd2a..0000000 --- a/glucoseCarb.raml +++ /dev/null @@ -1,45 +0,0 @@ -#%RAML 0.8 -title: OICGlucoseCarb -version: v1.1.0-20160519 -documentation: - - title: Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved. - content: | - Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE OPEN INTERCONNECT CONSORTIUM, INC. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE OR WARRANTIES OF NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL THE OPEN INTERCONNECT CONSORTIUM, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -schemas: - - GlucoseCarb: !include oic.r.glucose.carb.json - -traits: - - interface: - queryParameters: - if: - enum: ["oic.if.s","oic.if.baseline"] - -/GlucoseCarbResURI: - description: | - This resource describes the properties associated with a context carbohydrates. - The carb property has a default unit of grams[g]. - The carb and meal properties are read-only values that are provided by the server. - When range (from oic.r.baseresource) is omitted the default is 0 to +MAXFLOAT. - - displayName: Context Carbohydrates for Glucose Meter - is: [ interface ] - - get: - description: | - Retrieves Context Carbohydrates for Glucose Meter. - responses: - 200: - body: - application/json: - schema: GlucoseCarb - example: | - { - "rt": ["oic.r.glucose.carb"], - "id": "unique_example_id", - "carb": 100, - "meal": "breakfast" - } diff --git a/glucoseExercise.raml b/glucoseExercise.raml deleted file mode 100644 index fe628bd..0000000 --- a/glucoseExercise.raml +++ /dev/null @@ -1,43 +0,0 @@ -#%RAML 0.8 -title: OICExercise -version: v1.1.0-20160519 -documentation: - - title: Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved. - content: | - Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE OPEN INTERCONNECT CONSORTIUM, INC. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE OR WARRANTIES OF NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL THE OPEN INTERCONNECT CONSORTIUM, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -schemas: - - Exercise: !include oic.r.glucose.exercise.json - -traits: - - interface: - queryParameters: - if: - enum: ["oic.if.s","oic.if.baseline"] - -/ExerciseResURI: - description: | - This resource describes the properties associated with exercise. - The exercise property has a default unit of percentage[%]. - The exercise property is a read-only value that is provided by the server. - - displayName: Exercise - is: [ interface ] - - get: - description: | - Retrieves the level of exercise undertaken in percentage. - responses: - 200: - body: - application/json: - schema: Exercise - example: | - { - "rt": ["oic.r.glucose.exercise"], - "id": "unique_example_id", - "exercise": 30 - } diff --git a/glucoseHbA1c.raml b/glucoseHbA1c.raml deleted file mode 100644 index 9307a02..0000000 --- a/glucoseHbA1c.raml +++ /dev/null @@ -1,43 +0,0 @@ -#%RAML 0.8 -title: OICGlucoseHbA1c -version: v1.1.0-20160519 -documentation: - - title: Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved. - content: | - Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE OPEN INTERCONNECT CONSORTIUM, INC. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE OR WARRANTIES OF NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL THE OPEN INTERCONNECT CONSORTIUM, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -schemas: - - HbA1c: !include oic.r.glucose.hba1c.json - -traits: - - interface: - queryParameters: - if: - enum: ["oic.if.s","oic.if.baseline"] - -/GlucoseHbA1cResURI: - description: | - This resource describes the properties associated with a person's Hba1c level. - The unit is a single value that is percentage [%]. - The hba1c Property is a read-only value that is provided by the server. - - displayName: Hemoglobin Bound to Glucose A1c Form (HbA1c) for Glucose Meter - is: [ interface ] - - get: - description: | - Retrieves Hemoglobin Bound to Glucose A1c Form (HbA1c) for Glucose Meter. - responses: - 200: - body: - application/json: - schema: HbA1c - example: | - { - "rt": ["oic.r.glucose.hba1c"], - "id": "unique_example_id", - "hba1c": 5 - } diff --git a/glucoseHealth.raml b/glucoseHealth.raml deleted file mode 100644 index b238c21..0000000 --- a/glucoseHealth.raml +++ /dev/null @@ -1,45 +0,0 @@ -#%RAML 0.8 -title: OICGlucoseHealth -version: v1.1.0-20160519 -documentation: - - title: Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved. - content: | - Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE OPEN INTERCONNECT CONSORTIUM, INC. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE OR WARRANTIES OF NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL THE OPEN INTERCONNECT CONSORTIUM, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -schemas: - - GlucoseHealth: !include oic.r.glucose.health.json - -traits: - - interface: - queryParameters: - if: - enum: ["oic.if.s","oic.if.baseline"] - -/GlucoseHealthResURI: - description: | - This resource describes the properties associated with context health. - The health Property is a read-only value that is provided by the server where - minor and major are related to the general health or the level of illness of the person; - menses refers to the female menstrual cycle; - stress refers to physiological or psychological stress. - - displayName: Context Health for Glucose Meter - is: [ interface ] - - get: - description: | - Retrieves Context Health for Glucose Meter. - responses: - 200: - body: - application/json: - schema: GlucoseHealth - example: | - { - "rt": ["oic.r.glucose.health"], - "id": "unique_example_id", - "health": "major" - } diff --git a/glucoseMeal.raml b/glucoseMeal.raml deleted file mode 100644 index fe3651a..0000000 --- a/glucoseMeal.raml +++ /dev/null @@ -1,45 +0,0 @@ -#%RAML 0.8 -title: OICGlucoseMeal -version: v1.1.0-20160519 -documentation: - - title: Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved. - content: | - Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE OPEN INTERCONNECT CONSORTIUM, INC. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE OR WARRANTIES OF NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL THE OPEN INTERCONNECT CONSORTIUM, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -schemas: - - GlucoseMeal: !include oic.r.glucose.meal.json - -traits: - - interface: - queryParameters: - if: - enum: ["oic.if.s", "oic.if.baseline"] - -/GlucoseMealResURI: - description: | - This resource describes the properties associated with context meal. - Preprandial means pre-meal. - Postprandial means post-meal. - Fasting meanse the effect of long-term absence of food intake (overnight). - The meal Property is a read-only value that is provided by the server. - - displayName: Context Meal for Glucose Meter - is: [ interface ] - - get: - description: | - Retrieves Context Meal for Glucose Meter. - responses: - 200: - body: - application/json: - schema: GlucoseMeal - example: | - { - "rt": ["oic.r.glucose.meal"], - "id": "unique_example_id", - "meal": "preprandial" - } diff --git a/glucoseMedication.raml b/glucoseMedication.raml deleted file mode 100644 index f620246..0000000 --- a/glucoseMedication.raml +++ /dev/null @@ -1,47 +0,0 @@ -#%RAML 0.8 -title: OICGlucoseMedication -version: v1.1.0-20160519 -documentation: - - title: Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved. - content: | - Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE OPEN INTERCONNECT CONSORTIUM, INC. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE OR WARRANTIES OF NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL THE OPEN INTERCONNECT CONSORTIUM, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -schemas: - - GlucoseMedication: !include oic.r.glucose.medication.json - -traits: - - interface: - queryParameters: - if: - enum: ["oic.if.s","oic.if.baseline"] - -/GlucoseMedicationResURI: - description: | - This resource describes the properties associated with context medication. - The unit is a single value that is one of mg and mL. - The medication property has a default unit of milligrams[mg]. - The medication, unit and regimen Properties are read-only values that are provided by the server. - When range (from oic.r.baseresource) is omitted the default is 0 to +MAXFLOAT. - - displayName: Context Medication for Glucose Meter - is: [ interface ] - - get: - description: | - Retrieves Context Medication for Glucose Meter. - responses: - 200: - body: - application/json: - schema: GlucoseMedication - example: | - { - "rt": ["oic.r.glucose.medication"], - "id": "unique_example_id", - "medication": 100, - "unit": "mg", - "regimen": "rapidacting" - } diff --git a/glucoseMeterAM.raml b/glucoseMeterAM.raml deleted file mode 100644 index fa79de9..0000000 --- a/glucoseMeterAM.raml +++ /dev/null @@ -1,132 +0,0 @@ -#%RAML 0.8 -title: OICGlucoseMeterAM -version: v1.1.0-20160519 -documentation: - - title: © 2018 Open Connectivity Foundation, Inc. All rights reserved. - content: | - Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE Open Connectivity Foundation, INC. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE OR WARRANTIES OF NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL THE Open Connectivity Foundation, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -schemas: - - batch-retrieve: !include oic.collection.batch-retrieve-schema.json - - links: !include oic.collection.linkslist-schema.json - - baseline: !include oic.collection-schema.json - -traits: - - interface-all: - queryParameters: - if: - enum: ["oic.if.b", "oic.if.ll", "oic.if.baseline"] - - interface-b: - queryParameters: - if: - enum: ["oic.if.b"] - - interface-ll: - queryParameters: - if: - enum: ["oic.if.ll"] - - interface-baseline: - queryParameters: - if: - enum: ["oic.if.baseline"] - -/GlucoseMeterAMResURI?if=oic.if.b: - description: | - This resource describes the proporties associated with glucose meter. - The resource is an atomic measurement of glucose (oic.r.glucose), context carbohydrates (oic.r.glucose.carb), context exercise (oic.r.glucose.exercise), Hemoglobin Bound to Glucose A1c Form (HbA1c) (oic.r.glucose.hba1c), context health (oic.r.glucose.health), context meal (oic.r.glucose.meal), context medication (oic.r.glucose.medication), context sample location (oic.r.glucose.samplelocation), context tester (oic.r.glucose.tester), observed time (oic.r.time.stamp), and user ID (oic.r.userid). - - displayName: Glucose Meter Atomic Measurement Batch Representation - is: [ interface-b ] - - get: - description: | - Retrieves the current glucose. - responses: - 200: - body: - application/json: - schema: batch-retrieve - example: | - [ - { - "href": "/myGlucoseResURI", - "rep": - { - "glucose": 100, - "units": "mg/dL" - } - }, - { - "href": "/myHbA1cResURI", - "rep": - { - "hba1c": 5 - } - } - ] - -/GlucoseMeterAMResURI?if=oic.if.ll: - description: | - This resource describes the proporties associated with glucose meter. - The resource is an atomic measurement of glucose (oic.r.glucose), context carbohydrates (oic.r.glucose.carb), context exercise (oic.r.glucose.exercise), Hemoglobin Bound to Glucose A1c Form (HbA1c) (oic.r.glucose.hba1c), context health (oic.r.glucose.health), context meal (oic.r.glucose.meal), context medication (oic.r.glucose.medication), context sample location (oic.r.glucose.samplelocation), context tester (oic.r.glucose.tester), observed time (oic.r.time.stamp), and user ID (oic.r.userid). - displayName: Glucose Meter Atomic Measurement Linked List Representation - is: [ interface-ll ] - - get: - description: | - Retrieves the current glucose. - responses: - 200: - body: - application/json: - schema: links - example: | - [ - { - "href": "/myGlucoseResURI", - "rt": ["oic.r.glucose"], - "if": ["oic.if.s", "oic.if.baseline"] - }, - { - "href": "/myHbA1cResURI", - "rt": ["oic.r.glucose.hba1c"], - "if": ["oic.if.s", "oic.if.baseline"] - } - ] - -/GlucoseMeterAMResURI?if=oic.if.baseline: - description: | - This resource describes the proporties associated with glucose meter. - The resource is an atomic measurement of glucose (oic.r.glucose), context carbohydrates (oic.r.glucose.carb), context exercise (oic.r.glucose.exercise), Hemoglobin Bound to Glucose A1c Form (HbA1c) (oic.r.glucose.hba1c), context health (oic.r.glucose.health), context meal (oic.r.glucose.meal), context medication (oic.r.glucose.medication), context sample location (oic.r.glucose.samplelocation), context tester (oic.r.glucose.tester), observed time (oic.r.time.stamp), and user ID (oic.r.userid). - displayName: Glucose Meter Atomic Measurement Baseline Representation - is: [ interface-baseline ] - - get: - description: | - Retrieves the current glucose. - responses: - 200: - body: - application/json: - schema: baseline - example: | - { - "rt": ["oic.r.glucosemeter-am", "oic.wk.col.atomic"], - "if": ["oic.if.b", "oic.if.ll", "oic.if.baseline"], - "rts": ["oic.r.glucose", "oic.r.glucose.hba1c"], - "rts-m": ["oic.r.glucose"], - "links": [ - { - "href": "/myGlucoseResURI", - "rt": ["oic.r.glucose"], - "if": ["oic.if.s", "oic.if.baseline"] - }, - { - "href": "/myHbA1cResURI", - "rt": ["oic.r.glucose.hba1c"], - "if": ["oic.if.s", "oic.if.baseline"] - } - ] - } diff --git a/glucoseSampleLocation.raml b/glucoseSampleLocation.raml deleted file mode 100644 index 283f75a..0000000 --- a/glucoseSampleLocation.raml +++ /dev/null @@ -1,43 +0,0 @@ -#%RAML 0.8 -title: OICGlucoseSampleLocation -version: v1.1.0-20160519 -documentation: - - title: Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved. - content: | - Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE OPEN INTERCONNECT CONSORTIUM, INC. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE OR WARRANTIES OF NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL THE OPEN INTERCONNECT CONSORTIUM, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -schemas: - - GlucoseSampleLocation: !include oic.r.glucose.samplelocation.json - -traits: - - interface: - queryParameters: - if: - enum: ["oic.if.s","oic.if.baseline"] - -/GlucoseSampleLocationResURI: - description: | - This resource describes the properties associated with context Sample Location. - AST means Alternative Site Test specifying that the location of test performed was from an alternative site on the body. - The samplelocation Property is a read-only value that is provided by the server. - - displayName: Context Sample Location for Glucose Meter - is: [ interface ] - - get: - description: | - Retrieves Context Sample Location for Glucose Meter. - responses: - 200: - body: - application/json: - schema: GlucoseSampleLocation - example: | - { - "rt": ["oic.r.glucose.samplelocation"], - "id": "unique_example_id", - "samplelocation": "finger" - } diff --git a/glucoseTester.raml b/glucoseTester.raml deleted file mode 100644 index dd3ab34..0000000 --- a/glucoseTester.raml +++ /dev/null @@ -1,43 +0,0 @@ -#%RAML 0.8 -title: OICGlucoseTester -version: v1.1.0-20160519 -documentation: - - title: Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved. - content: | - Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE OPEN INTERCONNECT CONSORTIUM, INC. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE OR WARRANTIES OF NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL THE OPEN INTERCONNECT CONSORTIUM, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -schemas: - - GlucoseTester: !include oic.r.glucose.tester.json - -traits: - - interface: - queryParameters: - if: - enum: ["oic.if.s","oic.if.baseline"] - -/GlucoseTesterResURI: - description: | - This resource describes the properties associated with context Tester. - The tester Property is a read-only value that is provided by the server where especially - hcp stands for HealthCare Professional. - - displayName: Context Tester for Glucose Meter - is: [ interface ] - - get: - description: | - Retrieves Context Tester for Glucose Meter. - responses: - 200: - body: - application/json: - schema: GlucoseTester - example: | - { - "rt": ["oic.r.glucose.Tester"], - "id": "unique_example_id", - "tester": "self" - } diff --git a/height.raml b/height.raml index e95c671..c62106f 100644 --- a/height.raml +++ b/height.raml @@ -1,46 +1,77 @@ -#%RAML 0.8 -title: OICHeight -version: v1.1.0-20160519 -documentation: - - title: Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved. - content: | - Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE OPEN INTERCONNECT CONSORTIUM, INC. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE OR WARRANTIES OF NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL THE OPEN INTERCONNECT CONSORTIUM, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -schemas: - - Height: !include oic.r.height.json - -traits: - - interface: - queryParameters: - if: - enum: ["oic.if.s","oic.if.baseline"] - -/HeightResURI: - description: | - This resource describes the properties associated with height of an object's physical size. - The units is a single value that is one of m, cm, ft or in. - If the units Property is missing the default is meters [m]. - The units Property is a read-only value that is provided by the server. - When range (from oic.r.baseresource) is omitted the default is 0 to +MAXFLOAT. - - displayName: Height - is: [ interface ] - - get: - description: | - Retrieves height of an object. - responses: - 200: - body: - application/json: - schema: Height - example: | - { - "rt": ["oic.r.height"], - "id": "unique_example_id", - "height": 1.8, - "units": "m" - } \ No newline at end of file +#%RAML 0.8 +title: OICHeight +version: v1.1.0-20160519 +documentation: + - title: © 2016 Open Interconnect Consortium, Inc. All rights reserved. + content: | + Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE OPEN INTERCONNECT CONSORTIUM, INC. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE OR WARRANTIES OF NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL THE OPEN INTERCONNECT CONSORTIUM, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +schemas: + - Height: !include oic.r.height.json + +traits: + - interface: + queryParameters: + if: + enum: ["oic.if.a","oic.if.baseline"] + +/HeightResURI: + description: | + This resource describes the properties associated with height of an object's physical size. + Height (height) is height of an object. + displayName: Height + is: [ interface ] + + get: + description: | + Retrieves height of an object. + responses: + 200: + body: + application/json: + schema: Height + example: | + { + "rt": ["oic.r.height"], + "id": "unique_example_id", + "height": 100.0 + } + post: + description: | + Sets the Height. + body: + application/json: + schema: Height + example: | + { + "id": "unique_example_id", + "height": 200.0 + } + responses: + 200: + description: | + Indicates that the height was successfully changed. + The new height is provided in the response. + body: + application/json: + schema: Height + example: | + { + "id": "unique_example_id", + "height": 200.0 + } + 403: + description: | + Indicates that OIC client sent an invalid property value to the server. + The server responds with the current resource representation. + body: + application/json: + schema: Height + example: | + { + "id": "unique_example_id", + "height": 200.0 + } diff --git a/oic.collection-schema.json b/oic.collection-schema.json index 41bcbc5..c86433c 100644 --- a/oic.collection-schema.json +++ b/oic.collection-schema.json @@ -1,47 +1,281 @@ -{ - "$schema": "http://json-schema.org/draft-04/schema#", - "description" : "Copyright (c) 2016 Open Connectivity Foundation, Inc. All rights reserved.", - "id": "https://www.openconnectivity.org/ocf-apis/core/schemas/oic.collection-schema.json#", - "title": "Collection", - "definitions": { - "oic.collection.setoflinks": { - "description": "A set of simple or individual OIC Links.", - "type": "array", - "items": { - "$ref": "oic.oic-link-schema.json#/definitions/oic.oic-link" - } - }, - "oic.collection.alllinks": { - "description": "All forms of links in a collection.", - "oneOf": [ - { - "$ref": "#/definitions/oic.collection.setoflinks" - } - ] - }, - "oic.collection": { - "type": "object", - "description": "A collection is a set of links along with additional properties to describe the collection itself", - "properties": { - "rts": { - "allOf": [ - { - "$ref": "oic.core-schema.json#/definitions/oic.core/properties/rt" - }, - { - "description": "The list of allowable resource types (for Target and anchors) in links included in the collection" - } - ] - }, - "links": { - "$ref": "#/definitions/oic.collection.alllinks" - } - } - } - }, - "type": "object", - "allOf": [ - {"$ref": "oic.core-schema.json#/definitions/oic.core"}, - {"$ref": "#/definitions/oic.collection"} - ] -} \ No newline at end of file +{ + "$schema": "http://json-schema.org/draft-04/schema#", + "description" : "Copyright (c) 2016,2018 Open Connectivity Foundation, Inc. All rights reserved.", + "id": "http://www.openconnectivity.org/ocf-apis/core/schemas/oic.collection-schema.json#", + "title": "Collection", + "definitions": { + "oic.oic-link": { + "type": "object", + "properties": { + "href": { + "type": "string", + "maxLength": 256, + "description": "This is the target URI, it can be specified as a Relative Reference or fully-qualified URI.", + "format": "uri" + }, + "rel": { + "oneOf":[ + { + "type": "array", + "items": { + "type": "string", + "maxLength": 64 + }, + "minItems": 1, + "default": ["hosts"] + }, + { + "type": "string", + "maxLength": 64, + "default": "hosts" + } + ], + "description": "The relation of the target URI referenced by the link to the context URI" + }, + "rt": { + "type": "array", + "items" : { + "type" : "string", + "maxLength": 64 + }, + "minItems" : 1, + "description": "Resource Type of the Resource" + }, + "if": { + "type": "array", + "items": { + "type" : "string", + "enum" : ["oic.if.baseline", "oic.if.ll", "oic.if.b", "oic.if.rw", "oic.if.r", "oic.if.a", "oic.if.s" ] + }, + "minItems": 1, + "description": "The interface set supported by this resource" + }, + "di": { + "description": "The Device ID formatted according to IETF RFC 4122.", + "type": "string", + "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + }, + "p": { + "description": "Specifies the framework policies on the Resource referenced by the target URI", + "type": "object", + "properties": { + "bm": { + "description": "Specifies the framework policies on the Resource referenced by the target URI for e.g. observable and discoverable", + "type": "integer" + } + }, + "required" : ["bm"] + }, + "title": { + "type": "string", + "maxLength": 64, + "description": "A title for the link relation. Can be used by the UI to provide a context." + }, + "anchor": { + "type": "string", + "maxLength": 256, + "description": "This is used to override the context URI e.g. override the URI of the containing collection.", + "format": "uri" + }, + "ins": { + "type": "integer", + "description": "The instance identifier for this web link in an array of web links - used in collections" + }, + "type": { + "type": "array", + "description": "A hint at the representation of the resource referenced by the target URI. This represents the media types that are used for both accepting and emitting.", + "items" : { + "type": "string", + "maxLength": 64 + }, + "minItems": 1, + "default": "application/cbor" + }, + "eps": { + "type": "array", + "description": "the Endpoint information of the target Resource", + "items": { + "type": "object", + "properties": { + "ep": { + "type": "string", + "format": "uri", + "description": "Transport Protocol Suite + Endpoint Locator" + }, + "pri": { + "type": "integer", + "minimum": 1, + "description": "The priority among multiple Endpoints" + } + } + } + } + }, + "required": [ "href", "rt", "if" ] + }, + "oic.collection.links.arrayoflinks": { + "properties": { + "links": { + "description": "A set of simple or individual OIC Links.", + "type": "array", + "items": { + "type": "object", + "properties": { + "href": { + "type": "string", + "maxLength": 256, + "description": "This is the target URI, it can be specified as a Relative Reference or fully-qualified URI.", + "format": "uri" + }, + "rel": { + "oneOf":[ + { + "type": "array", + "items": { + "type": "string", + "maxLength": 64 + }, + "minItems": 1, + "default": ["hosts"] + }, + { + "type": "string", + "maxLength": 64, + "default": "hosts" + } + ], + "description": "The relation of the target URI referenced by the link to the context URI" + }, + "rt": { + "type": "array", + "items" : { + "type" : "string", + "maxLength": 64 + }, + "minItems" : 1, + "description": "Resource Type of the Resource" + }, + "if": { + "type": "array", + "items": { + "type" : "string", + "enum" : ["oic.if.baseline", "oic.if.ll", "oic.if.b", "oic.if.rw", "oic.if.r", "oic.if.a", "oic.if.s" ] + }, + "minItems": 1, + "description": "The interface set supported by this resource" + }, + "di": { + "description": "The Device ID formatted according to IETF RFC 4122.", + "type": "string", + "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + }, + "p": { + "description": "Specifies the framework policies on the Resource referenced by the target URI", + "type": "object", + "properties": { + "bm": { + "description": "Specifies the framework policies on the Resource referenced by the target URI for e.g. observable and discoverable", + "type": "integer" + } + }, + "required" : ["bm"] + }, + "title": { + "type": "string", + "maxLength": 64, + "description": "A title for the link relation. Can be used by the UI to provide a context." + }, + "anchor": { + "type": "string", + "maxLength": 256, + "description": "This is used to override the context URI e.g. override the URI of the containing collection.", + "format": "uri" + }, + "ins": { + "type": "integer", + "description": "The instance identifier for this web link in an array of web links - used in collections" + }, + "type": { + "type": "array", + "description": "A hint at the representation of the resource referenced by the target URI. This represents the media types that are used for both accepting and emitting.", + "items" : { + "type": "string", + "maxLength": 64 + }, + "minItems": 1, + "default": "application/cbor" + }, + "eps": { + "type": "array", + "description": "the Endpoint information of the target Resource", + "items": { + "type": "object", + "properties": { + "ep": { + "type": "string", + "format": "uri", + "description": "Transport Protocol Suite + Endpoint Locator" + }, + "pri": { + "type": "integer", + "minimum": 1, + "description": "The priority among multiple Endpoints" + } + } + } + } + }, + "required": [ "href", "rt", "if" ] + } + } + } + }, + "oic.core": { + "type": "object", + "properties": { + "rt": { + "type": "array", + "items" : { + "type" : "string", + "maxLength": 64 + }, + "minItems" : 1, + "readOnly": true, + "description": "Resource Type of the Resource" + } + } + }, + "uuid": { + "description": "Format pattern according to IETF RFC 4122.", + "type": "string", + "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + }, + "oic.collection.links": { + "properties": { + "links": { + "description": "A set of simple or individual OIC Links.", + "type": "array", + "items": { + "$ref": "#/definitions/oic.oic-link" + } + } + } + }, + "oic.collection.properties": { + "type": "object", + "description": "A collection is a set of links along with additional properties to describe the collection itself", + "properties": { + "rts": { + "$ref": "#/definitions/oic.core/properties/rt", + "description": "The list of allowable resource types (for Target and anchors) in links included in the collection" + } + } + } + }, + "type": "object", + "allOf": [ + {"$ref": "oic.core-schema.json#/definitions/oic.core"}, + {"$ref": "#/definitions/oic.collection.properties"}, + {"$ref": "#/definitions/oic.collection.links"} + ] +} diff --git a/oic.collection.batch-retrieve-schema.json b/oic.collection.batch-retrieve-schema.json deleted file mode 100644 index 2e6f009..0000000 --- a/oic.collection.batch-retrieve-schema.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-04/schema#", - "description" : "Copyright (c) 2016 Open Connectivity Foundation, Inc. All rights reserved.", - "id": "https://www.openconnectivity.org/ocf-apis/core/schemas/oic.collection.batch-retrieve-schema.json#", - "title": "Collection Batch Retrieve Format", - "definitions": { - "oic.batch-retrieve.item": { - "type": "object", - "properties": { - "href": { - "type": "string", - "maxLength": 256, - "format": "uri", - "description": "URI of the target resource relative assuming the collection URI as anchor" - }, - "rep": { - "oneOf": [ - { - "type": "object", - "description": "The response payload from a single resource" - }, - { - "type": "array", - "description": " The response payload from a collection (batch) resource", - "items": { - "$ref": "#/definitions/oic.batch-retrieve.item" - } - } - ] - } - }, - "additionalProperties": true, - "required": ["href","rep"] - }, - "oic.wk.col-batch-retrieve": { - "type": "array", - "minItems": 1, - "items": { - "$ref": "#/definitions/oic.batch-retrieve.item" - } - } - }, - "allOf": [ - {"$ref": "#/definitions/oic.wk.col-batch-retrieve"} - ] -} \ No newline at end of file diff --git a/oic.collection.linkslist-schema.json b/oic.collection.linkslist-schema.json index 11ec67d..4ce6655 100644 --- a/oic.collection.linkslist-schema.json +++ b/oic.collection.linkslist-schema.json @@ -4,10 +4,13 @@ "id": "https://www.openconnectivity.org/ocf-apis/core/schemas/oic.collection.linkslist-schema.json#", "definitions": { "oic.collection.alllinks": { - "$ref": "oic.collection-schema.json#/definitions/oic.collection.alllinks" + "$ref": "oic.collection-schema.json#/definitions/oic.collection.alllinks" } }, - "allOf": [ - { "$ref": "#/definitions/oic.collection.alllinks" } - ] + "type": "object", + "properties": { + "links": { + "$ref": "#/definitions/oic.collection.alllinks" + } + } } diff --git a/oic.r.3dprinter.json b/oic.r.3dprinter.json deleted file mode 100644 index 6c01167..0000000 --- a/oic.r.3dprinter.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "id": "http://openinterconnect.org/iotdatamodels/schemas/oic.r.3dprinter.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description" : "Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved.", - "title": "3D Printer", - "definitions": { - "oic.r.3dprinter": { - "type": "object", - "properties": { - "3dprinttype" : { - "enum": [ - "Fused Filament Fabrication", - "Fused Deposition Modeling", - "Digital Light Processing", - "Powder Bed & inkjet head 3D Printing", - "Photopolymer Jetting Technology", - "Laminated Object Manufacturing", - "Stereolithography Apparatus", - "Selective Laser Sintering", - "Unknown" - ], - "type": "string", - "description": "The type of 3D printing technology.", - "readOnly": true - }, - "printsizex" : { - "type": "number", - "description": "This represents the maximum size of printing object in the direction of X-axis. The unit is mm.", - "readOnly": true - }, - "printsizey" : { - "type": "number", - "description": "This represents the maximum size of printing object in the direction of Y-axis. The unit is mm.", - "readOnly": true - }, - "printsizez" : { - "type": "number", - "description": "This represents the maximum size of printing object in the direction of Z-axis. The unit is mm.", - "readOnly": true - }, - "wanconnected" : { - "type": "boolean", - "description": "This value indicates the connectivity capability of the 3D printer. If the value is false, the printer does not have network facility to Wide Area Network such as internet and GSM. If the value is true, the printer has network connectivity", - "readOnly": true - }, - "memorysize" : { - "type": "number", - "description": "This value represents the total memory size of the printer. The unit is MB(Mega Bytes)", - "readOnly": true - } - } - } - }, - "type": "object", - "allOf": [ - {"$ref": "oic.baseResource.json#/definitions/oic.r.baseresource"}, - {"$ref": "#/definitions/oic.r.3dprinter"} - ], - "required": [ "3dprinttype", "printsizex", "printsizey", "printsizez", "wanconnected", "memorysize" ] -} \ No newline at end of file diff --git a/oic.r.bloodpressure.json b/oic.r.bloodpressure.json deleted file mode 100644 index fa8ff73..0000000 --- a/oic.r.bloodpressure.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "id": "http://openinterconnect.org/iotdatamodels/schemas/oic.r.bloodpressure.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description" : "Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved.", - "title": "Blood Pressure", - "definitions": { - "oic.r.bloodpressure": { - "type": "object", - "properties": { - "systolic": { - "type": "number", - "minimum": 0, - "readOnly": true, - "description": "Systolic blood pressure" - }, - "diastolic": { - "type": "number", - "minimum": 0, - "readOnly": true, - "description": "Diastolic blood pressure" - }, - "map": { - "type": "number", - "minimum": 0, - "readOnly": true, - "description": "Mean Arterial Pressure (MAP)" - }, - "units": { - "type": "string", - "readOnly": true, - "enum": ["mmHg", "kPa"], - "description": "Blood pressure unit" - } - } - } - }, - "type": "object", - "allOf": [ - {"$ref": "oic.core.json#/definitions/oic.core"}, - {"$ref": "oic.baseResource.json#/definitions/oic.r.baseresource"}, - {"$ref": "#/definitions/oic.r.bloodpressure"} - ], - "required": ["systolic", "diastolic"] -} diff --git a/oic.r.bloodpressuremonitor-am.json b/oic.r.bloodpressuremonitor-am.json deleted file mode 100644 index d4edf95..0000000 --- a/oic.r.bloodpressuremonitor-am.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "id": "http://openinterconnect.org/iotdatamodels/schemas/oic.r.bloodpressuremonitor-am.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description" : "Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved.", - "title": "Blood Pressure Monitor Atomic Measurement", - "definitions": { - "oic.r.bloodpressuremonitor-am": { - "type": "object", - "allOf": [ - { - "rt": { - "type": "array", - "minItems": 2, - "maxItems": 2, - "uniqueItems": true, - "items": { - "enum": ["oic.r.bloodpressuremonitor-am", "oic.wk.col.atomic"] - } - }, - "rts": { - "type": "array", - "minItems": 1, - "maxItems": 4, - "uniqueItems": true, - "items": { - "enum": ["oic.r.bloodpressure", "oic.r.pulserate", "oic.r.userid", "oic.r.time.stamp"] - }, - "description": "This contains all possible resource types for this atomic measurement." - }, - "rts-m": { - "type": "array", - "minItems": 1, - "maxItems": 1, - "uniqueItems": true, - "items": { - "enum": ["oic.r.bloodpressure"] - }, - "description": "This contains all mandatory resource types for this atomic measurement." - } - } - ] - } - }, - "type": "object", - "allOf": [ - {"$ref": "oic.core.json#/definitions/oic.core"}, - {"$ref": "#/definitions/oic.r.bloodpressuremonitor-am"}, - {"$ref": "oic.collection-schema.json#/definitions/oic.collection"} - ], - "required": ["rts-m"] -} diff --git a/oic.r.bmi.json b/oic.r.bmi.json deleted file mode 100644 index 4aa9a96..0000000 --- a/oic.r.bmi.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id": "http://openinterconnect.org/iotdatamodels/schemas/oic.r.bmi.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description" : "Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved.", - "title": "Body Mass Index (BMI)", - "definitions": { - "oic.r.bmi": { - "type": "object", - "properties": { - "bmi": { - "type": "number", - "minimum": 0, - "readOnly": true, - "description": "Body Mass Index (BMI) in kg/m^2" - } - } - } - }, - "type": "object", - "allOf": [ - {"$ref": "oic.core.json#/definitions/oic.core"}, - {"$ref": "oic.baseResource.json#/definitions/oic.r.baseresource"}, - {"$ref": "#/definitions/oic.r.bmi"} - ], - "required": ["bmi"] -} diff --git a/oic.r.body.fat.json b/oic.r.body.fat.json deleted file mode 100644 index 16bb1cb..0000000 --- a/oic.r.body.fat.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "id": "http://openinterconnect.org/iotdatamodels/schemas/oic.r.body.fat.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description" : "Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved.", - "title": "Body Fat", - "definitions": { - "oic.r.body.fat": { - "type": "object", - "properties": { - "bodyfat": { - "type": "number", - "minimum": 0, - "readOnly": true, - "description": "Body fat." - }, - "units": { - "type": "string", - "readOnly": true, - "enum": ["kg", "lb", "%"], - "description": "Body fat units" - } - } - } - }, - "type": "object", - "allOf": [ - {"$ref": "oic.core.json#/definitions/oic.core"}, - {"$ref": "oic.baseResource.json#/definitions/oic.r.baseresource"}, - {"$ref": "#/definitions/oic.r.body.fat"} - ], - "required": ["bodyfat"] -} diff --git a/oic.r.body.ffm.json b/oic.r.body.ffm.json deleted file mode 100644 index ab53398..0000000 --- a/oic.r.body.ffm.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "id": "http://openinterconnect.org/iotdatamodels/schemas/oic.r.body.ffm.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description" : "Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved.", - "title": "Body Fat Free Mass", - "definitions": { - "oic.r.body.ffm": { - "type": "object", - "properties": { - "ffm": { - "type": "number", - "minimum": 0, - "readOnly": true, - "description": "Body fat free mass." - }, - "units": { - "type": "string", - "readOnly": true, - "enum": ["kg", "lb", "%"], - "description": "Body fat free mass units" - } - } - } - }, - "type": "object", - "allOf": [ - {"$ref": "oic.core.json#/definitions/oic.core"}, - {"$ref": "oic.baseResource.json#/definitions/oic.r.baseresource"}, - {"$ref": "#/definitions/oic.r.body.ffm"} - ], - "required": ["ffm"] -} diff --git a/oic.r.body.location.json b/oic.r.body.location.json deleted file mode 100644 index aa3a91c..0000000 --- a/oic.r.body.location.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id": "http://openinterconnect.org/iotdatamodels/schemas/oic.r.body.location.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description" : "Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved.", - "title": "Body Location", - "definitions": { - "oic.r.body.location": { - "type": "object", - "properties": { - "bloc": { - "type": "string", - "enum": ["axillary", "body", "ear", "finger", "gitract", "mouth", "rectum", "toe", "tympanum"], - "readOnly": true, - "description": "A list of all potential body locations" - } - } - } - }, - "type": "object", - "allOf": [ - {"$ref": "oic.core.json#/definitions/oic.core"}, - {"$ref": "oic.baseResource.json#/definitions/oic.r.baseresource"}, - {"$ref": "#/definitions/oic.r.body.location"} - ], - "required": ["bloc"] -} diff --git a/oic.r.body.location.temperature.json b/oic.r.body.location.temperature.json deleted file mode 100644 index 5f2cd37..0000000 --- a/oic.r.body.location.temperature.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id": "http://openinterconnect.org/iotdatamodels/schemas/oic.r.body.location.temperature.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description" : "Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved.", - "title": "Body location for temperature", - "definitions": { - "oic.r.body.location.temperature": { - "type": "object", - "properties": { - "bloc": { - "type": "string", - "enum": ["axillary", "body", "ear", "finger", "gitract", "mouth", "rectum", "toe", "tympanum"], - "readOnly": true, - "description": "A list specific to temperature site" - } - } - } - }, - "type": "object", - "allOf": [ - {"$ref": "oic.core.json#/definitions/oic.core"}, - {"$ref": "oic.baseResource.json#/definitions/oic.r.baseresource"}, - {"$ref": "#/definitions/oic.r.body.location"}, - {"$ref": "#/definitions/oic.r.body.location.temperature"} - ], - "required": ["bloc"] -} diff --git a/oic.r.body.slm.json b/oic.r.body.slm.json deleted file mode 100644 index 55e6ee5..0000000 --- a/oic.r.body.slm.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "id": "http://openinterconnect.org/iotdatamodels/schemas/oic.r.body.slm.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description" : "Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved.", - "title": "Body Soft Lean Mass", - "definitions": { - "oic.r.body.slm": { - "type": "object", - "properties": { - "slm": { - "type": "number", - "minimum": 0, - "readOnly": true, - "description": "Body soft lean mass." - }, - "units": { - "type": "string", - "readOnly": true, - "enum": ["kg", "lb", "%"], - "description": "Body soft lean mass units" - } - } - } - }, - "type": "object", - "allOf": [ - {"$ref": "oic.core.json#/definitions/oic.core"}, - {"$ref": "oic.baseResource.json#/definitions/oic.r.baseresource"}, - {"$ref": "#/definitions/oic.r.body.slm"} - ], - "required": ["slm"] -} diff --git a/oic.r.body.water.json b/oic.r.body.water.json deleted file mode 100644 index 9b5fba7..0000000 --- a/oic.r.body.water.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "id": "http://openinterconnect.org/iotdatamodels/schemas/oic.r.body.water.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description" : "Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved.", - "title": "Body Water", - "definitions": { - "oic.r.body.water": { - "type": "object", - "properties": { - "bwater": { - "type": "number", - "minimum": 0, - "readOnly": true, - "description": "Body water." - }, - "units": { - "type": "string", - "readOnly": true, - "enum": ["kg", "lb"], - "description": "Body water unit" - } - } - } - }, - "type": "object", - "allOf": [ - {"$ref": "oic.core.json#/definitions/oic.core"}, - {"$ref": "oic.baseResource.json#/definitions/oic.r.baseresource"}, - {"$ref": "#/definitions/oic.r.body.water"} - ], - "required": ["bwater"] -} diff --git a/oic.r.bodyscale-am.json b/oic.r.bodyscale-am.json deleted file mode 100644 index 6f5e7f3..0000000 --- a/oic.r.bodyscale-am.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "id": "http://openinterconnect.org/iotdatamodels/schemas/oic.r.bodyscale-am.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description" : "Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved.", - "title": "Body Scale Atomic Measurement", - "definitions": { - "oic.r.bodyscale-am": { - "type": "object", - "allOf": [ - { - "rt": { - "type": "array", - "minItems": 2, - "maxItems": 2, - "uniqueItems": true, - "items": { - "enum": ["oic.r.bodyscale-am", "oic.wk.col.atomic"] - } - }, - "rts": { - "type": "array", - "minItems": 1, - "maxItems": 9, - "uniqueItems": true, - "items": { - "enum": ["oic.r.weight", "oic.r.bmi", "oic.r.height", "oic.r.body.fat", "oic.r.body.water", "oic.r.body.slm", "oic.r.body.ffm", "oic.r.time.stamp", "oic.r.userid"] - }, - "description": "This contains all possible resource types for this atomic measurement." - }, - "rts-m": { - "type": "array", - "minItems": 1, - "maxItems": 1, - "uniqueItems": true, - "items": { - "enum": ["oic.r.weight"] - }, - "description": "This contains all mandatory resource types for this atomic measurement." - } - } - ] - } - }, - "type": "object", - "allOf": [ - {"$ref": "oic.core.json#/definitions/oic.core"}, - {"$ref": "#/definitions/oic.r.bodyscale-am"}, - {"$ref": "oic.collection-schema.json#/definitions/oic.collection"} - ], - "required": ["rts-m"] -} diff --git a/oic.r.bodythermometer-am.json b/oic.r.bodythermometer-am.json deleted file mode 100644 index 0f458d1..0000000 --- a/oic.r.bodythermometer-am.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "id": "http://openinterconnect.org/iotdatamodels/schemas/oic.r.bodythermometer-am.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description" : "Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved.", - "title": "Body Thermometer Atomic Measurement", - "definitions": { - "oic.r.bodythermometer-am": { - "type": "object", - "allOf": [ - { - "rt": { - "type": "array", - "minItems": 2, - "maxItems": 2, - "uniqueItems": true, - "items": { - "enum": ["oic.r.bodythermometer-am", "oic.wk.col.atomic"] - } - }, - "rts": { - "type": "array", - "minItems": 1, - "maxItems": 4, - "uniqueItems": true, - "items": { - "enum": ["oic.r.temperature", "oic.r.body.location.temperature", "oic.r.time.stamp", "oic.r.userid"] - }, - "description": "This contains all possible resource types for this atomic measurement." - }, - "rts-m": { - "type": "array", - "minItems": 1, - "maxItems": 1, - "uniqueItems": true, - "items": { - "enum": ["oic.r.temperature"] - }, - "description": "This contains all mandatory resource types for this atomic measurement." - } - } - ] - } - }, - "type": "object", - "allOf": [ - {"$ref": "oic.core.json#/definitions/oic.core"}, - {"$ref": "#/definitions/oic.r.bodythermometer-am"}, - {"$ref": "oic.collection-schema.json#/definitions/oic.collection"} - ], - "required": ["rts-m"] -} diff --git a/oic.r.glucose.carb.json b/oic.r.glucose.carb.json deleted file mode 100644 index 265ed0b..0000000 --- a/oic.r.glucose.carb.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "id": "http://openinterconnect.org/iotdatamodels/schemas/oic.r.glucose.carb.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description" : "Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved.", - "title": "Context Carbohydrates for Glucose Meter", - "definitions": { - "oic.r.glucose.carb": { - "type": "object", - "properties": { - "carb": { - "type": "number", - "readOnly": true, - "description": "The amount of carbohydrates undertaken in grams" - }, - "meal": { - "type": "string", - "readOnly": true, - "enum": ["breakfast", "lunch", "dinner", "snack", "drink", "supper", "brunch", "undetermined", "other", "no_entry", "no_ingestion"], - "description": "Recorded time of carbohydrates intake" - } - } - } - }, - "type": "object", - "allOf": [ - {"$ref": "oic.core.json#/definitions/oic.core"}, - {"$ref": "oic.baseResource.json#/definitions/oic.r.baseresource"}, - {"$ref": "#/definitions/oic.r.glucose.carb"} - ], - "required": ["carb", "meal"] -} diff --git a/oic.r.glucose.exercise.json b/oic.r.glucose.exercise.json deleted file mode 100644 index ac8ccdc..0000000 --- a/oic.r.glucose.exercise.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id": "http://openinterconnect.org/iotdatamodels/schemas/oic.r.glucose.exercise.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description" : "Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved.", - "title": "Exercise", - "definitions": { - "oic.r.glucose.exercise": { - "type": "object", - "properties": { - "exercise": { - "type": "number", - "readOnly": true, - "minimum": 0, - "maximum": 100, - "description": "The level of exercise undertaken in percentage" - } - } - } - }, - "type": "object", - "allOf": [ - {"$ref": "oic.core.json#/definitions/oic.core"}, - {"$ref": "oic.baseResource.json#/definitions/oic.r.baseresource"}, - {"$ref": "#/definitions/oic.r.glucose.exercise"} - ], - "required": ["exercise"] -} diff --git a/oic.r.glucose.hba1c.json b/oic.r.glucose.hba1c.json deleted file mode 100644 index 0f343f4..0000000 --- a/oic.r.glucose.hba1c.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id": "http://openinterconnect.org/iotdatamodels/schemas/oic.r.glucose.hba1c.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description" : "Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved.", - "title": "Hemoglobin Bound to Glucose A1c Form (HbA1c) for Glucose Meter", - "definitions": { - "oic.r.glucose.hba1c": { - "type": "object", - "properties": { - "hba1c": { - "type": "number", - "readOnly": true, - "minimum": 0, - "maximum": 100, - "description": "Current HbA1c measurement in percentage" - } - } - } - }, - "type": "object", - "allOf": [ - {"$ref": "oic.core.json#/definitions/oic.core"}, - {"$ref": "oic.baseResource.json#/definitions/oic.r.baseresource"}, - {"$ref": "#/definitions/oic.r.glucose.hba1c"} - ], - "required": ["hba1c"] -} diff --git a/oic.r.glucose.health.json b/oic.r.glucose.health.json deleted file mode 100644 index 9a57a9d..0000000 --- a/oic.r.glucose.health.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id": "http://openinterconnect.org/iotdatamodels/schemas/oic.r.glucose.health.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description" : "Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved.", - "title": "Context Health for Glucose Meter", - "definitions": { - "oic.r.glucose.health": { - "type": "object", - "properties": { - "health": { - "type": "string", - "readOnly": true, - "enum": ["minor", "major", "menses", "stress", "none"], - "description": "The various levels of health a person feels when taking a glucose." - } - } - } - }, - "type": "object", - "allOf": [ - {"$ref": "oic.core.json#/definitions/oic.core"}, - {"$ref": "oic.baseResource.json#/definitions/oic.r.baseresource"}, - {"$ref": "#/definitions/oic.r.glucose.health"} - ], - "required": ["health"] -} diff --git a/oic.r.glucose.json b/oic.r.glucose.json deleted file mode 100644 index a9288ef..0000000 --- a/oic.r.glucose.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "id": "http://openinterconnect.org/iotdatamodels/schemas/oic.r.glucose.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description" : "Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved.", - "title": "Glucose", - "definitions": { - "oic.r.glucose": { - "type": "object", - "properties": { - "glucose": { - "type": "number", - "minimum": 0, - "readOnly": true, - "description": "A measurement of glucose concentration in the blood" - }, - "units": { - "type": "string", - "readOnly": true, - "enum": ["mg/dL", "mmol/L"], - "description": "Glucose unit" - } - } - } - }, - "type": "object", - "allOf": [ - {"$ref": "oic.core.json#/definitions/oic.core"}, - {"$ref": "oic.baseResource.json#/definitions/oic.r.baseresource"}, - {"$ref": "#/definitions/oic.r.glucose"} - ], - "required": ["glucose"] -} diff --git a/oic.r.glucose.meal.json b/oic.r.glucose.meal.json deleted file mode 100644 index 291fe81..0000000 --- a/oic.r.glucose.meal.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id": "http://openinterconnect.org/iotdatamodels/schemas/oic.r.glucose.meal.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description" : "Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved.", - "title": "Context Meal for Glucose Meter", - "definitions": { - "oic.r.glucose.meal": { - "type": "object", - "properties": { - "meal": { - "type": "string", - "readOnly": true, - "enum": ["preprandial", "postprandial", "fasting", "bedtime", "casual"], - "description": "Time of day when the measurement is taken." - } - } - } - }, - "type": "object", - "allOf": [ - {"$ref": "oic.core.json#/definitions/oic.core"}, - {"$ref": "oic.baseResource.json#/definitions/oic.r.baseresource"}, - {"$ref": "#/definitions/oic.r.glucose.meal"} - ], - "required": ["meal"] -} diff --git a/oic.r.glucose.medication.json b/oic.r.glucose.medication.json deleted file mode 100644 index 5f43bd1..0000000 --- a/oic.r.glucose.medication.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "id": "http://openinterconnect.org/iotdatamodels/schemas/oic.r.glucose.medication.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description" : "Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved.", - "title": "Context Medication for Glucose Meter", - "definitions": { - "oic.r.glucose.medication": { - "type": "object", - "properties": { - "medication": { - "type": "number", - "readOnly": true, - "description": "The level of medication undertaken" - }, - "unit": { - "type": "string", - "readOnly": true, - "enum": ["mg", "mL"], - "description": "Current exercise movement type measurement" - }, - "regimen": { - "type": "string", - "readOnly": true, - "enum": ["rapidacting", "shortacting", "intermediateacting", "longacting", "premix"], - "description": "Medication regimen" - } - } - } - }, - "type": "object", - "allOf": [ - {"$ref": "oic.core.json#/definitions/oic.core"}, - {"$ref": "oic.baseResource.json#/definitions/oic.r.baseresource"}, - {"$ref": "#/definitions/oic.r.glucose.medication"} - ], - "required": ["medication"] -} diff --git a/oic.r.glucose.samplelocation.json b/oic.r.glucose.samplelocation.json deleted file mode 100644 index 68e2acf..0000000 --- a/oic.r.glucose.samplelocation.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id": "http://openinterconnect.org/iotdatamodels/schemas/oic.r.glucose.samplelocation.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description" : "Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved.", - "title": "Context Sample Location for Glucose Meter", - "definitions": { - "oic.r.glucose.samplelocation": { - "type": "object", - "properties": { - "samplelocation": { - "type": "string", - "readOnly": true, - "enum": ["finger", "ast", "earlobe", "ctrlsolution"], - "description": "The possible blood locations where the blood sample may be taken." - } - } - } - }, - "type": "object", - "allOf": [ - {"$ref": "oic.core.json#/definitions/oic.core"}, - {"$ref": "oic.baseResource.json#/definitions/oic.r.baseresource"}, - {"$ref": "#/definitions/oic.r.glucose.samplelocation"} - ], - "required": ["samplelocation"] -} diff --git a/oic.r.glucose.tester.json b/oic.r.glucose.tester.json deleted file mode 100644 index bdeac05..0000000 --- a/oic.r.glucose.tester.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id": "http://openinterconnect.org/iotdatamodels/schemas/oic.r.glucose.tester.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description" : "Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved.", - "title": "Context Tester for Glucose Meter", - "definitions": { - "oic.r.glucose.tester": { - "type": "object", - "properties": { - "tester": { - "type": "string", - "readOnly": true, - "enum": ["self", "hcp", "lab"], - "description": "The possible cases of testers who may perform the blood sugar measurement." - } - } - } - }, - "type": "object", - "allOf": [ - {"$ref": "oic.core.json#/definitions/oic.core"}, - {"$ref": "oic.baseResource.json#/definitions/oic.r.baseresource"}, - {"$ref": "#/definitions/oic.r.glucose.tester"} - ], - "required": ["tester"] -} diff --git a/oic.r.glucosemeter-am.json b/oic.r.glucosemeter-am.json deleted file mode 100644 index c702da8..0000000 --- a/oic.r.glucosemeter-am.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "id": "http://openinterconnect.org/iotdatamodels/schemas/oic.r.glucosemeter-am.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description" : "Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved.", - "title": "Glucose Meter Atomic Measurement", - "definitions": { - "oic.r.glucosemeter-am": { - "type": "object", - "allOf": [ - { - "rt": { - "type": "array", - "minItems": 2, - "maxItems": 2, - "uniqueItems": true, - "items": { - "enum": ["oic.r.glucosemeter-am", "oic.wk.col.atomic"] - } - }, - "rts": { - "type": "array", - "minItems": 1, - "maxItems": 11, - "uniqueItems": true, - "items": { - "enum": ["oic.r.glucose", "oic.r.glucose.carb", "oic.r.glucose.exercise", "oic.r.glucose.health", "oic.r.glucose.hba1c", "oic.r.glucose.meal", "oic.r.glucose.medication", "oic.r.glucose.samplelocation", "oic.r.glucose.tester", "oic.r.time.observed", "oic.r.userid"] - }, - "description": "This contains all possible resource types for this atomic measurement." - }, - "rts-m": { - "type": "array", - "minItems": 1, - "maxItems": 1, - "uniqueItems": true, - "items": { - "enum": ["oic.r.glucose"] - }, - "description": "This contains all mandatory resource types for this atomic measurement." - } - } - ] - } - }, - "type": "object", - "allOf": [ - {"$ref": "oic.core.json#/definitions/oic.core"}, - {"$ref": "#/definitions/oic.r.glucosemeter-am"}, - {"$ref": "oic.collection-schema.json#/definitions/oic.collection"} - ], - "required": ["rts-m"] -} diff --git a/oic.r.height.json b/oic.r.height.json index c8f5910..d9a57fd 100644 --- a/oic.r.height.json +++ b/oic.r.height.json @@ -1,31 +1,24 @@ -{ - "id": "http://openinterconnect.org/schemas/oic.r.height.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description": "Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved.", - "title": "Height", - "definitions": { - "oic.r.height": { - "type": "object", - "properties": { - "height": { - "type": "number", - "minimum": 0, - "description": "Height of an object" - }, - "units": { - "type": "string", - "readOnly": true, - "enum": ["m", "cm", "ft", "in"], - "description": "Height unit" - } - } - } - }, - "type": "object", - "allOf": [ - {"$ref": "oic.core.json#/definitions/oic.core"}, - {"$ref": "oic.baseResource.json#/definitions/oic.r.baseresource"}, - {"$ref": "#/definitions/oic.r.height"} - ], - "required": ["height"] -} +{ + "id": "http://openinterconnect.org/schemas/oic.r.height.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "description": "Copyright (c) 2016, 2017 Open Interconnect Consortium, Inc. All rights reserved.", + "title": "Height", + "definitions": { + "oic.r.height": { + "type": "object", + "properties": { + "height": { + "type": "number", + "minimum": 0, + "description": "Height of an object" + } + } + } + }, + "type": "object", + "allOf": [ + {"$ref": "oic.baseResource.json#/definitions/oic.r.baseresource"}, + {"$ref": "#/definitions/oic.r.height"} + ], + "required": ["height"] +} diff --git a/oic.r.orfid_reader.json b/oic.r.orfid_reader.json deleted file mode 100644 index 5c484f0..0000000 --- a/oic.r.orfid_reader.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "id": "http://openinterconnect.org/schemas/oic.r.oifid.reader.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description" : "Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved.", - "title": "ORFID", - "definitions": { - "oic.r.orfid.reader": { - "properties": { - "tagid" : { - "type" : "integer", - "description" : "the tag read by the reader", - "readOnly" : true - }, - "reading" : { - "type" : "boolean", - "description" : "true, the tagid is read e.g. being valid. false, the tagid is invalid", - "readOnly" : true - } - } - } - }, - "type": "object", - "allOf": [ - {"$ref": "oic.baseResource.json#/definitions/oic.r.baseresource"}, - {"$ref": "#/definitions/oic.r.orfid.reader"} - ], - "required": ["tagid", "reading"] -} diff --git a/oic.r.orfid_station.json b/oic.r.orfid_station.json deleted file mode 100644 index edcda3e..0000000 --- a/oic.r.orfid_station.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "id": "http://openinterconnect.org/schemas/oic.r.oifid.reader.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description" : "Copyright (c) 2016 Open Connectivity Foundation, Inc. All rights reserved.", - "title": "ORFID", - "definitions": { - "oic.r.orfid.station": { - "properties": { - "process" : { - "type" : "integer", - "description" : "the process step that is being performed at this station", - "readOnly" : true - }, - "event" : { - "type" : "boolean", - "description" : "when True, the action request should be applied to the product identified by the tagid" - }, - "actionrequest" : { - "type" : "integer", - "description" : "the action request identifier" - } - - } - } - }, - "type": "object", - "allOf": [ - {"$ref": "oic.baseResource.json#/definitions/oic.r.baseresource"}, - {"$ref": "#/definitions/oic.r.orfid.station"} - ], - "required": ["event","actionrequest"] -} \ No newline at end of file diff --git a/oic.r.printqueue.json b/oic.r.printqueue.json deleted file mode 100644 index e1bf53d..0000000 --- a/oic.r.printqueue.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "id": "http://openinterconnect.org/iotdatamodels/schemas/oic.r.printqueue.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description" : "Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved.", - "title": "Print Queue", - "definitions": { - "oic.r.print.queueitem": { - "type": "object", - "properties": { - "uri" : { - "type": "string", - "format": "uri", - "maxLength": 256, - "description": "The URI of the queue item.", - "readOnly": true - }, - "status" : { - "type": "string", - "enum": [ - "Printing", - "Pending", - "Paused", - "Error", - "Unknown" - ], - "description": "The status of the queue item.", - "readOnly": true - } - }, - "required": [ "uri", "status" ] - }, - "oic.r.printqueue": { - "type": "object", - "properties": { - "queue" : { - "type": "array", - "description": "The array of queue items for the printer.", - "items" : { - "$ref": "#/definitions/oic.r.print.queueitem" - }, - "readOnly": true - } - } - } - }, - "type": "object", - "allOf": [ - {"$ref": "oic.baseResource.json#/definitions/oic.r.baseresource"}, - {"$ref": "#/definitions/oic.r.printqueue"} - ], - "required": [ "queue" ] -} \ No newline at end of file diff --git a/oic.r.pulserate.json b/oic.r.pulserate.json deleted file mode 100644 index cfd45a9..0000000 --- a/oic.r.pulserate.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id": "http://openinterconnect.org/iotdatamodels/schemas/oic.r.pulserate.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description" : "Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved.", - "title": "Pulse Rate", - "definitions": { - "oic.r.pulserate": { - "type": "object", - "properties": { - "pulserate": { - "type": "integer", - "minimum": 0, - "readOnly": true, - "description": "Pulse rate in bpm." - } - } - } - }, - "type": "object", - "allOf": [ - {"$ref": "oic.core.json#/definitions/oic.core"}, - {"$ref": "oic.baseResource.json#/definitions/oic.r.baseresource"}, - {"$ref": "#/definitions/oic.r.pulserate"} - ], - "required": ["pulserate"] -} diff --git a/oic.r.sensor.props.json b/oic.r.sensor.props.json deleted file mode 100644 index c520b4e..0000000 --- a/oic.r.sensor.props.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id": "http://openinterconnect.org/iotdatamodels/schemas/oic.r.sensor.props.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description" : "Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved.", - "title": "Sensor Properties", - "definitions": { - "oic.r.sensor.props": { - "type": "object", - "properties": { - "silenttime" : { - "type": "integer", - "description": "The time in seconds from the previous report that the Sensor restrains from sending a state change. This is used to avoid repeated state change reports." - }, - "sensitivity": { - "type": "number", - "description": "The level of the detection accuracy of the Sensor. This is used to control the level at which the Senor detects a state change. Range should be specified per manufacturer device capabilities." - } - } - } - }, - "type": "object", - "allOf": [ - {"$ref": "oic.baseResource.json#/definitions/oic.r.baseresource"}, - {"$ref": "#/definitions/oic.r.sensor.properties"} - ], - "required": ["silenttime", "sensitivity" ] -} \ No newline at end of file diff --git a/oic.r.userid.json b/oic.r.userid.json deleted file mode 100644 index 9f5f4f2..0000000 --- a/oic.r.userid.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "id": "http://openinterconnect.org/iotdatamodels/schemas/oic.r.userid.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description" : "Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved.", - "title": "User ID", - "definitions": { - "oic.r.userid": { - "type": "object", - "properties": { - "userid": { - "type": "string", - "readOnly": true, - "description": "ID of an OCF client" - } - } - } - }, - "type": "object", - "allOf": [ - {"$ref": "oic.core.json#/definitions/oic.core"}, - {"$ref": "oic.baseResource.json#/definitions/oic.r.baseresource"}, - {"$ref": "#/definitions/oic.r.userid"} - ], - "required": ["userid"] -} diff --git a/oic.r.weight.json b/oic.r.weight.json index 8e09841..b0351f8 100644 --- a/oic.r.weight.json +++ b/oic.r.weight.json @@ -1,32 +1,25 @@ -{ - "id": "http://openinterconnect.org/schemas/oic.r.weight.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description": "Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved.", - "title": "Weight", - "definitions": { - "oic.r.weight": { - "type": "object", - "properties": { - "weight": { - "type": "number", - "minimum": 0, +{ + "id": "http://openinterconnect.org/schemas/oic.r.weight.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "description": "Copyright (c) 2016, 2017 Open Interconnect Consortium, Inc. All rights reserved.", + "title": "Weight", + "definitions": { + "oic.r.weight": { + "type": "object", + "properties": { + "weight": { + "type": "number", + "minimum": 0, "readOnly": true, - "description": "Weight of an object" - }, - "units": { - "type": "string", - "readOnly": true, - "enum": ["kg", "g", "lb", "oz"], - "description": "Weight unit" - } - } - } - }, - "type": "object", - "allOf": [ - {"$ref": "oic.core.json#/definitions/oic.core"}, - {"$ref": "oic.baseResource.json#/definitions/oic.r.baseresource"}, - {"$ref": "#/definitions/oic.r.weight"} - ], - "required": ["weight"] -} + "description": "Weight of an object" + } + } + } + }, + "type": "object", + "allOf": [ + {"$ref": "oic.baseResource.json#/definitions/oic.r.baseresource"}, + {"$ref": "#/definitions/oic.r.weight"} + ], + "required": ["weight"] +} diff --git a/printqueue.raml b/printqueue.raml deleted file mode 100644 index c9b141c..0000000 --- a/printqueue.raml +++ /dev/null @@ -1,50 +0,0 @@ -#%RAML 0.8 -title: PrintQueue -version: v1.1.0-20180115 -documentation: - - title: (c) 2018 Open Connectivity Foundation, Inc. All rights reserved. - content: | - Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE Open Connectivity Foundation, INC. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE OR WARRANTIES OF NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL THE Open Connectivity Foundation, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -schemas: - - PrintQueue: !include oic.r.printqueue.json - -traits: - - interface: - queryParameters: - if: - enum: ["oic.if.r","oic.if.baseline"] - -/PrintQueueResURI: - description: | - This resource describes the items in a Printer Queue. The URI and status are read only items that cannot be changed through this resource. - displayName: Print Queue - is: [ interface ] # valid for all methods - - get: - description: | - Retrieves the current Print Queue. - responses: - 200: - body: - application/json: - schema: PrintQueue - example: | - { - "rt" : ["oic.r.printqueue"], - "id" : "unique_example_id", - "queue" : - [ - { - "uri" : "10.10.10.10/3dprinter/queueitem/1", - "status" : "Printing" - }, - { - "uri" : "10.10.10.10/3dprinter/queueitem/2", - "status" : "Pending" - } - ] - } \ No newline at end of file diff --git a/pulseRate.raml b/pulseRate.raml deleted file mode 100644 index 0c3524f..0000000 --- a/pulseRate.raml +++ /dev/null @@ -1,44 +0,0 @@ -#%RAML 0.8 -title: OICPulseRate -version: v1.1.0-20160519 -documentation: - - title: Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved. - content: | - Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE OPEN INTERCONNECT CONSORTIUM, INC. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE OR WARRANTIES OF NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL THE OPEN INTERCONNECT CONSORTIUM, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -schemas: - - PulseRate: !include oic.r.pulserate.json - -traits: - - interface: - queryParameters: - if: - enum: ["oic.if.s","oic.if.baseline"] - -/PulseRateResURI: - description: | - This resource describes the properties associated with a person's pulse rate. - The unit, which is the default unit, is bpm. - The PulseRate and unit Properties are read-only values that are provided by the server. - When range (from oic.r.baseresource) is omitted the default is 0 to +MAXFLOAT. - - displayName: Pulse Rate - is: [ interface ] - - get: - description: | - Retrieves pulse rate of an object. - responses: - 200: - body: - application/json: - schema: PulseRate - example: | - { - "rt": ["oic.r.pulserate"], - "id": "unique_example_id", - "pulserate": 80 - } diff --git a/rbodyThermometerAM.raml b/rbodyThermometerAM.raml deleted file mode 100644 index fc7d2de..0000000 --- a/rbodyThermometerAM.raml +++ /dev/null @@ -1,131 +0,0 @@ -#%RAML 0.8 -title: OICBodyThermometerAM -version: v1.1.0-20160519 -documentation: - - title: © 2018 Open Connectivity Foundation, Inc. All rights reserved. - content: | - Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE Open Connectivity Foundation, INC. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE OR WARRANTIES OF NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL THE Open Connectivity Foundation, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -schemas: - - batch-retrieve: !include oic.collection.batch-retrieve-schema.json - - links: !include oic.collection.linkslist-schema.json - - baseline: !include oic.collection-schema.json - -traits: - - interface-all: - queryParameters: - if: - enum: ["oic.if.b", "oic.if.ll", "oic.if.baseline"] - - interface-b: - queryParameters: - if: - enum: ["oic.if.b"] - - interface-ll: - queryParameters: - if: - enum: ["oic.if.ll"] - - interface-baseline: - queryParameters: - if: - enum: ["oic.if.baseline"] - -/BodyThermometerAMResURI?if=oic.if.b: - description: | - This resource describes the proporties associated with body thermometer. - The resource is an atomic measurement of temperature (oic.r.temperature), body location for temperature (oic.r.body.location.temperature), observed time (oic.r.time.stamp), and user ID (oic.r.userid). - displayName: Body Thermometer Atomic Measurement Batch Representation - is: [ interface-b ] - - get: - description: | - Retrieves the current body temperature. - responses: - 200: - body: - application/json: - schema: batch-retrieve - example: | - [ - { - "href": "/myTemperatureResURI", - "rep": - { - "temperature": 38, - "units": "C" - } - }, - { - "href": "/myBodyLocationForTemperatureResURI", - "rep": - { - "bloc": "mouth" - } - } - ] - -/BodyThermometerAMResURI?if=oic.if.ll: - description: | - This resource describes the proporties associated with body thermometer. - The resource is an atomic measurement of temperature (oic.r.temperature), body location for temperature (oic.r.body.location.temperature), observed time (oic.r.time.stamp), and user ID (oic.r.userid). - displayName: Body Thermometer Atomic Measurement Linked List Representation - is: [ interface-ll ] - - get: - description: | - Retrieves the current body temperature. - responses: - 200: - body: - application/json: - schema: links - example: | - [ - { - "href": "/myTemperatureResURI", - "rt": ["oic.r.temperature"], - "if": ["oic.if.s", "oic.if.baseline"] - }, - { - "href": "/myBodyLocationForTemperatureResURI", - "rt": ["oic.r.body.location.temperature"], - "if": ["oic.if.s", "oic.if.baseline"] - } - ] - -/BodyThermometerAMResURI?if=oic.if.baseline: - description: | - This resource describes the proporties associated with body thermometer. - The resource is an atomic measurement of temperature (oic.r.temperature), body location for temperature (oic.r.body.location.temperature), observed time (oic.r.time.stamp), and user ID (oic.r.userid). - displayName: Body Thermometer Atomic Measurement Baseline Representation - is: [ interface-baseline ] - - get: - description: | - Retrieves the current body temperature. - responses: - 200: - body: - application/json: - schema: baseline - example: | - { - "rt": ["oic.r.bodythermometer-am", "oic.wk.col.atomic"], - "if": ["oic.if.b", "oic.if.ll", "oic.if.baseline"], - "rts": ["oic.r.temperature", "oic.r.body.location.temperature"], - "rts-m": ["oic.r.temperature"], - "links": [ - { - "href": "/myTemperatureResURI", - "rt": ["oic.r.temperature"], - "if": ["oic.if.s", "oic.if.baseline"] - }, - { - "href": "/myBodyLocationForTemperatureResURI", - "rt": ["oic.r.body.location.temperature"], - "if": ["oic.if.s", "oic.if.baseline"] - } - ] - } diff --git a/sensorprops.raml b/sensorprops.raml deleted file mode 100644 index 336fd4a..0000000 --- a/sensorprops.raml +++ /dev/null @@ -1,71 +0,0 @@ -#%RAML 0.8 -title: OICSensorProps -version: v1.1.0-20180115 -documentation: - - title: © 2018 Open Connectivity Foundation, Inc. All rights reserved. - content: | - Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE Open Connectivity Foundation, INC. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE OR WARRANTIES OF NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL THE Open Connectivity Foundation, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -schemas: - - SensorProps: !include oic.r.sensor.props.json - -traits: - - interface: - queryParameters: - if: - enum: ["oic.if.rw","oic.if.baseline"] - -/SensorPropsResURI: - description: | - This resource describes the properties which guide the reporting of a state change of a Sensor. - The silenttime represents the period after which a state change report was sent where the Sensor state change is not reported. - The sensitivity represents the level at which the sensor detects a state change. - These values are completely dependend on the type of Sensor and the manufacturer capability, so no range restrictions are used. - The range from the baseresource is only applied to the sensitivity. - - displayName: Sensor Properties - is: [ interface ] # valid for all methods - - get: - description: | - Gets current Sensor Property values - responses: - 200: - body: - application/json: - schema: SensorProps - example: | - { - "rt": ["oic.r.sensor.props"], - "id": "unique_example_id", - "silenttime": 10, - "sensitivity": 20.5, - "range" : [ 0, 100 ] - } - post: - description: | - Sets Sensor Property values - body: - application/json: - schema: SensorProps - example: | - { - "id": "unique_example_id", - "silenttime": 20, - "sensitivity": 10.75 - } - responses: - 200: - body: - application/json: - schema: SensorProps - example: | - { - "id": "unique_example_id", - "silenttime": 20, - "sensitivity": 10.75 - } \ No newline at end of file diff --git a/userID.raml b/userID.raml deleted file mode 100644 index 14efa1e..0000000 --- a/userID.raml +++ /dev/null @@ -1,43 +0,0 @@ -#%RAML 0.8 -title: OICUserID -version: v1.1.0-20160519 -documentation: - - title: Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved. - content: | - Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE OPEN INTERCONNECT CONSORTIUM, INC. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE OR WARRANTIES OF NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL THE OPEN INTERCONNECT CONSORTIUM, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -schemas: - - UserID: !include oic.r.userid.json - -traits: - - interface: - queryParameters: - if: - enum: ["oic.if.s","oic.if.baseline"] - -/UserIDResURI: - description: | - This resource describes the properties associated with user ID of an OCF client. - The userid Property is a single value whose type is one of string, number or integer. - The userid Property is a read-only value that is provided by the server. - - displayName: User ID - is: [ interface ] - - get: - description: | - Retrieves User ID of an object. - responses: - 200: - body: - application/json: - schema: UserID - example: | - { - "rt": ["oic.r.userid"], - "id": "unique_example_id", - "userid": "USER1" - } diff --git a/weight.raml b/weight.raml index ca9cfb1..bb1afba 100644 --- a/weight.raml +++ b/weight.raml @@ -1,46 +1,41 @@ -#%RAML 0.8 -title: OICWeight -version: v1.1.0-20160519 -documentation: - - title: Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved. - content: | - Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE OPEN INTERCONNECT CONSORTIUM, INC. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE OR WARRANTIES OF NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL THE OPEN INTERCONNECT CONSORTIUM, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -schemas: - - Weight: !include oic.r.weight.json - -traits: - - interface: - queryParameters: - if: - enum: ["oic.if.s","oic.if.baseline"] - -/WeightResURI: - description: | - This resource describes the properties associated with weight of an object. - The units is a single value that is one of kg, g, lb or oz. - If the units Property is missing the default is kilograms [kg]. - The units Property is a read-only value that is provided by the server. - When range (from oic.r.baseresource) is omitted the default is 0 to +MAXFLOAT. - - displayName: Weight - is: [ interface ] - - get: - description: | - Retrieves weight of an object. - responses: - 200: - body: - application/json: - schema: Weight - example: | - { - "rt": ["oic.r.weight"], - "id": "unique_example_id", - "weight": 80.0, - "units": "kg" - } +#%RAML 0.8 +title: OICWeight +version: v1.1.0-20160519 +documentation: + - title: © 2016 Open Interconnect Consortium, Inc. All rights reserved. + content: | + Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE OPEN INTERCONNECT CONSORTIUM, INC. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE OR WARRANTIES OF NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL THE OPEN INTERCONNECT CONSORTIUM, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +schemas: + - Weight: !include oic.r.weight.json + +traits: + - interface: + queryParameters: + if: + enum: ["oic.if.s","oic.if.baseline"] + +/WeightResURI: + description: | + This resource describes the properties associated with weight of an object. + Weight (weight) is weight of an object. + displayName: Weight + is: [ interface ] + + get: + description: | + Retrieves weight of an object. + responses: + 200: + body: + application/json: + schema: Weight + example: | + { + "rt": ["oic.r.weight"], + "id": "unique_example_id", + "weight": 200.0 + }