123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303 |
- {
- "schemes": [
- "http"
- ],
- "swagger": "2.0",
- "consumes": [
- "application/json"
- ],
- "paths": {
- "/bridge/vodlist": {
- "get": {
- "description": "This resource describes the VODs that have been onboarded on the Bridge Platform.\n",
- "responses": {
- "200": {
- "schema": {
- "$ref": "#/definitions/vodlist"
- },
- "description": ""
- }
- },
- "parameters": [
- {
- "$ref": "#/parameters/interface-r"
- },
- {
- "schema": {
- "$ref": "#/definitions/vodlist"
- },
- "in": "body",
- "required": true,
- "name": "body"
- }
- ]
- }
- },
- "/oic/p": {
- "get": {
- "responses": {
- "200": {
- "schema": {
- "$ref": "#/definitions/Platform"
- },
- "description": ""
- }
- },
- "parameters": [
- {
- "$ref": "#/parameters/interface-r"
- }
- ],
- "description": ""
- }
- }
- },
- "definitions": {
- "vodlist": {
- "properties": {
- "n": {
- "type": "string",
- "maxLength": 64,
- "readOnly": true,
- "description": "Friendly name of the Resource"
- },
- "rt": {
- "minItems": 1,
- "items": {
- "enum": [
- "oic.r.vodlist"
- ],
- "type": "string",
- "maxLength": 64
- },
- "description": "Resource Type",
- "uniqueItems": true,
- "readOnly": true,
- "default": [
- "oic.r.vodlist"
- ],
- "type": "array"
- },
- "if": {
- "minItems": 2,
- "items": {
- "enum": [
- "oic.if.r",
- "oic.if.baseline"
- ],
- "type": "string"
- },
- "description": "The OCF Interface set supported by this Resource",
- "uniqueItems": true,
- "readOnly": true,
- "type": "array"
- },
- "vods": {
- "description": "Array of information per VOD created by the Bridge",
- "type": "array",
- "minItems": 0,
- "uniqueItems": true,
- "readOnly": true,
- "items": {
- "$ref": "#/definitions/vodentry"
- }
- }
- },
- "required": [ "vods" ],
- "type": "object"
- },
- "vodentry": {
- "description": "Information for a VOD created by the Bridge",
- "type": "object",
- "properties": {
- "n": {
- "type": "string",
- "maxLength": 64,
- "readOnly": true,
- "description": "Friendly name of the Resource"
- },
- "di": {
- "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}$",
- "readOnly": true,
- "description": "Format pattern according to IETF RFC 4122."
- },
- "econame": {
- "type": "string",
- "enum": [ "ABC", "XYZ" ],
- "readOnly": true,
- "description": "Ecosystem Name of the Bridged Device which is exposed by this VOD"
- }
- },
- "required": ["n", "di", "econame"]
- },
- "Platform": {
- "properties": {
- "id": {
- "type": "string",
- "readOnly": true,
- "maxLength": 64,
- "description": ""
- },
- "if": {
- "minItems": 2,
- "items": {
- "enum": [
- "oic.if.r",
- "oic.if.baseline"
- ],
- "type": "string",
- "maxLength": 64
- },
- "description": "",
- "uniqueItems": true,
- "readOnly": true,
- "type": "array"
- },
- "n": {
- "type": "string",
- "readOnly": true,
- "maxLength": 64,
- "description": ""
- },
- "mnmn": {
- "type": "string",
- "readOnly": true,
- "maxLength": 64,
- "description": ""
- },
- "mnnct": {
- "minItems": 1,
- "items": {
- "minimum": 1,
- "type": "integer",
- "description": ""
- },
- "readOnly": true,
- "type": "array",
- "description": ""
- },
- "mnml": {
- "format": "uri",
- "type": "string",
- "readOnly": true,
- "maxLength": 256,
- "description": ""
- },
- "mnsel": {
- "type": "string",
- "readOnly": true,
- "maxLength": 64,
- "description": ""
- },
- "mnpv": {
- "type": "string",
- "readOnly": true,
- "maxLength": 64,
- "description": ""
- },
- "mnfv": {
- "type": "string",
- "readOnly": true,
- "maxLength": 64,
- "description": ""
- },
- "rt": {
- "minItems": 1,
- "items": {
- "enum": [
- "oic.wk.p"
- ],
- "type": "string",
- "maxLength": 64
- },
- "description": "",
- "uniqueItems": true,
- "readOnly": true,
- "default": [
- "oic.wk.p"
- ],
- "type": "array"
- },
- "mnos": {
- "type": "string",
- "readOnly": true,
- "maxLength": 64,
- "description": ""
- },
- "mnhw": {
- "type": "string",
- "readOnly": true,
- "maxLength": 64,
- "description": ""
- },
- "vid": {
- "type": "string",
- "readOnly": true,
- "maxLength": 64,
- "description": ""
- },
- "mnmo": {
- "type": "string",
- "readOnly": true,
- "maxLength": 64,
- "description": ""
- },
- "mndt": {
- "readOnly": true,
- "type": "string",
- "pattern": "^([0-9]{4})-(1[0-2]|0[1-9])-(3[0-1]|2[0-9]|1[0-9]|0[1-9])$",
- "description": ""
- },
- "pi": {
- "readOnly": true,
- "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}$",
- "description": ""
- },
- "st": {
- "format": "date-time",
- "readOnly": true,
- "type": "string",
- "description": ""
- },
- "mnsl": {
- "format": "uri",
- "type": "string",
- "readOnly": true,
- "maxLength": 256,
- "description": ""
- }
- },
- "required": [
- "pi",
- "mnmn"
- ],
- "type": "object"
- }
- },
- "info": {
- "version": "20190215",
- "title": "serverlite24521",
- "termsOfService": "https://openconnectivityfoundation.github.io/core/DISCLAIMER.md",
- "license": {
- "x-copyright": "copyright 2016-2017, 2019 Open Connectivity Foundation, Inc. All rights reserved.",
- "url": "https://github.com/openconnectivityfoundation/core/blob/e28a9e0a92e17042ba3e83661e4c0fbce8bdc4ba/LICENSE.md",
- "name": "OCF Data Model License"
- }
- },
- "parameters": {
- "interface-r": {
- "enum": [
- "oic.if.r",
- "oic.if.baseline"
- ],
- "type": "string",
- "in": "query",
- "name": "if"
- }
- },
- "produces": [
- "application/json"
- ]
- }
|