-
Notifications
You must be signed in to change notification settings - Fork 9
Bugzilla 2483 #46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
WAvdBeek
merged 3 commits into
openconnectivityfoundation:master
from
joochlee:Bugzilla-2483
Jun 22, 2022
Merged
Bugzilla 2483 #46
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
334 changes: 334 additions & 0 deletions
334
swagger2.0/oic.r.notificationselector-pushproxy.swagger.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,334 @@ | ||
| { | ||
| "swagger": "2.0", | ||
| "info": { | ||
| "title": "Notification Selector-Push Proxy", | ||
| "version": "2022-06-15", | ||
| "license": { | ||
| "name": "OCF Data Model License", | ||
| "url": "https://github.com/openconnectivityfoundation/core/blob/e28a9e0a92e17042ba3e83661e4c0fbce8bdc4ba/LICENSE.md", | ||
| "x-copyright": "Copyright 2019 Open Connectivity Foundation, Inc. All rights reserved." | ||
| }, | ||
| "termsOfService": "https://openconnectivityfoundation.github.io/core/DISCLAIMER.md" | ||
| }, | ||
| "schemes": [ | ||
| "http" | ||
| ], | ||
| "consumes": [ | ||
| "application/json" | ||
| ], | ||
| "produces": [ | ||
| "application/json" | ||
| ], | ||
| "paths": { | ||
| "/NotificationSelectorPushproxyResURI?if=oic.if.rw" : { | ||
| "get": { | ||
| "description": "Resource that defines the selector for Push Notifications", | ||
| "parameters": [ | ||
| {"$ref": "#/parameters/interface-rw"} | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description" : "", | ||
| "x-example": { | ||
| "phref": "/myAirquality", | ||
WAvdBeek marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "prt": [ | ||
| "oic.r.airquality" | ||
| ], | ||
| "pushtarget" : "coaps://[2001::200]:49355/pushed-resource-airquality", | ||
| "sourcert": [ | ||
| "oic.r.pushpayload" | ||
| ], | ||
| "state": "waitingforupdate" | ||
| }, | ||
| "schema": { "$ref": "#/definitions/get-nspp-rw-response" } | ||
| } | ||
| } | ||
| }, | ||
| "post": { | ||
| "description": "Updates the current notification selector information.\n", | ||
| "parameters": [ | ||
| { "$ref": "#/parameters/interface-rw" }, | ||
| { "$ref": "#/parameters/body-update" } | ||
| ], | ||
| "responses": { | ||
| "204": { | ||
| "description" : "the notification selector-push proxy is updated successfully\n" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "/NotificationSelectorPushproxyResURI?if=oic.if.baseline" : { | ||
| "get": { | ||
| "description": "Resource that defines the selector for Push Notifications", | ||
| "parameters": [ | ||
| {"$ref": "#/parameters/interface-baseline"} | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description" : "", | ||
| "x-example": { | ||
| "rt": ["oic.r.notificationselector", "oic.r.pushproxy"], | ||
| "if": ["oic.if.rw", "oic.if.baseline"], | ||
| "phref": "/myAirquality", | ||
| "prt": [ | ||
| "oic.r.airquality" | ||
| ], | ||
| "pushtarget" : "coaps://[2001::200]:49355/pushed-resource-airquality", | ||
| "sourcert": [ | ||
| "oic.r.pushpayload" | ||
| ], | ||
| "state": "waitingforupdate" | ||
| }, | ||
| "schema": { "$ref": "#/definitions/get-nspp-baseline-response" } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "parameters": { | ||
| "interface-rw" : { | ||
| "in" : "query", | ||
| "name" : "if", | ||
| "type" : "string", | ||
| "enum" : ["oic.if.rw"] | ||
| }, | ||
| "interface-baseline" : { | ||
| "in" : "query", | ||
| "name" : "if", | ||
| "type" : "string", | ||
| "enum" : ["oic.if.baseline"] | ||
| }, | ||
| "body-update": { | ||
| "name": "notificationselector-pushproxy", | ||
| "in": "body", | ||
| "required": true, | ||
| "schema": { "$ref": "#/definitions/post-nspp-rw-request" }, | ||
| "x-example": { | ||
| "phref": "/myFilterResURI", | ||
| "pushtarget" : "coaps://[2001::200]:49355/pushed-resource-filter", | ||
| "sourcert": [ | ||
| "oic.r.pushpayload" | ||
| ] | ||
| } | ||
| } | ||
| }, | ||
| "definitions": { | ||
| "get-nspp-baseline-response" : { | ||
| "type": "object", | ||
| "properties": { | ||
| "rt": { | ||
| "description": "Resource Type of the Resource", | ||
| "items": { | ||
| "enum": ["oic.r.notificationselector", "oic.r.pushproxy"], | ||
| "type": "string", | ||
| "maxLength": 64 | ||
| }, | ||
| "minItems": 1, | ||
| "uniqueItems": true, | ||
| "readOnly": true, | ||
| "type": "array" | ||
| }, | ||
| "if": { | ||
| "description": "The interface set supported by this resource", | ||
| "items": { | ||
| "enum": [ | ||
| "oic.if.rw", | ||
| "oic.if.baseline" | ||
| ], | ||
| "type": "string", | ||
| "maxLength": 64 | ||
| }, | ||
| "minItems": 1, | ||
| "readOnly": true, | ||
| "uniqueItems": true, | ||
| "type": "array" | ||
| }, | ||
| "n": { | ||
| "$ref": "https://openconnectivityfoundation.github.io/core/schemas/oic.common.properties.core-schema.json#/definitions/n" | ||
| }, | ||
| "id": { | ||
| "$ref": "https://openconnectivityfoundation.github.io/core/schemas/oic.common.properties.core-schema.json#/definitions/id" | ||
| }, | ||
| "phref" : { | ||
| "$ref": "https://openconnectivityfoundation.github.io/core/schemas/oic.links.properties.core-schema.json#/definitions/href" | ||
| }, | ||
| "prt": { | ||
| "description": "Resource Type(s) of the Resource(s) to be pushed", | ||
| "type": "array", | ||
| "items" : { | ||
| "type" : "string", | ||
| "maxLength": 64 | ||
| }, | ||
| "minItems" : 1 | ||
| }, | ||
| "pif": { | ||
| "description": "The OCF Interface(s) of the Resource(s) to be pushed", | ||
| "type": "array", | ||
| "items": { | ||
| "type" : "string", | ||
| "enum" : ["oic.if.baseline", "oic.if.ll", "oic.if.b", "oic.if.lb", "oic.if.rw", "oic.if.r", "oic.if.a", "oic.if.s" ] | ||
| }, | ||
| "minItems": 1 | ||
| }, | ||
| "pushtarget": { | ||
| "description": "Points to the target of the UPDATE operation sent as a notification", | ||
| "type": "string", | ||
| "maxLength": 256 | ||
| }, | ||
| "sourcert": { | ||
| "description" : "Always set to oic.r.pushpayload", | ||
| "type" : "array", | ||
| "uniqueItems" : true, | ||
| "items" : { | ||
| "type": "string", | ||
| "maxLength": 64, | ||
| "enum" : [ | ||
| "oic.r.pushpayload" | ||
| ] | ||
| } | ||
| }, | ||
| "state": { | ||
| "description": "Current state of the Push Proxy", | ||
| "type": "string", | ||
| "enum": [ | ||
| "waitingforprovisioning", | ||
| "waitingforupdate", | ||
| "waitingforresponse", | ||
| "waitingforupdatemitigation", | ||
| "waitingforresponsemitigation", | ||
| "error", | ||
| "timeout" | ||
| ] | ||
| } | ||
| }, | ||
| "required": [ | ||
| "rt", | ||
| "if", | ||
| "pushtarget", | ||
| "sourcert", | ||
| "state" | ||
| ] | ||
| }, | ||
| "get-nspp-rw-response" : { | ||
| "type": "object", | ||
| "properties": { | ||
| "phref" : { | ||
| "$ref": "https://openconnectivityfoundation.github.io/core/schemas/oic.links.properties.core-schema.json#/definitions/href" | ||
| }, | ||
| "prt": { | ||
| "description": "Resource Type(s) of the Resource(s) to be pushed", | ||
| "type": "array", | ||
| "items" : { | ||
| "type" : "string", | ||
| "maxLength": 64 | ||
| }, | ||
| "minItems" : 1 | ||
| }, | ||
| "pif": { | ||
| "description": "The OCF Interface(s) of the Resource(s) to be pushed", | ||
| "type": "array", | ||
| "items": { | ||
| "type" : "string", | ||
| "enum" : ["oic.if.baseline", "oic.if.ll", "oic.if.b", "oic.if.lb", "oic.if.rw", "oic.if.r", "oic.if.a", "oic.if.s" ] | ||
| }, | ||
| "minItems": 1 | ||
| }, | ||
| "pushtarget": { | ||
| "description": "Points to the target of the UPDATE operation sent as a notification", | ||
| "type": "string", | ||
| "maxLength": 256 | ||
| }, | ||
| "sourcert": { | ||
| "description" : "Always set to oic.r.pushpayload", | ||
| "type" : "array", | ||
| "uniqueItems" : true, | ||
| "items" : { | ||
| "type": "string", | ||
| "maxLength": 64, | ||
| "enum" : [ | ||
| "oic.r.pushpayload" | ||
| ] | ||
| } | ||
| }, | ||
| "state": { | ||
| "description": "Current state of the Push Proxy", | ||
| "type": "string", | ||
| "enum": [ | ||
| "waitingforprovisioning", | ||
| "waitingforupdate", | ||
| "waitingforresponse", | ||
| "waitingforupdatemitigation", | ||
| "waitingforresponsemitigation", | ||
| "error", | ||
| "timeout" | ||
| ] | ||
| } | ||
| }, | ||
| "required": [ | ||
| "pushtarget", | ||
| "sourcert", | ||
| "state" | ||
| ] | ||
| }, | ||
| "post-nspp-rw-request" : { | ||
| "type": "object", | ||
| "properties": { | ||
| "phref" : { | ||
| "$ref": "https://openconnectivityfoundation.github.io/core/schemas/oic.links.properties.core-schema.json#/definitions/href" | ||
| }, | ||
| "prt": { | ||
| "description": "Resource Type(s) of the Resource(s) to be pushed", | ||
| "type": "array", | ||
| "items" : { | ||
| "type" : "string", | ||
| "maxLength": 64 | ||
| }, | ||
| "minItems" : 1 | ||
| }, | ||
| "pif": { | ||
| "description": "The OCF Interface(s) of the Resource(s) to be pushed", | ||
| "type": "array", | ||
| "items": { | ||
| "type" : "string", | ||
| "enum" : ["oic.if.baseline", "oic.if.ll", "oic.if.b", "oic.if.lb", "oic.if.rw", "oic.if.r", "oic.if.a", "oic.if.s" ] | ||
| }, | ||
| "minItems": 1 | ||
| }, | ||
| "pushtarget": { | ||
| "description": "Points to the target of the UPDATE operation sent as a notification", | ||
| "type": "string", | ||
| "maxLength": 256 | ||
| }, | ||
| "sourcert": { | ||
| "description" : "Always set to oic.r.pushpayload", | ||
| "type" : "array", | ||
| "uniqueItems" : true, | ||
| "items" : { | ||
| "type": "string", | ||
| "maxLength": 64, | ||
| "enum" : [ | ||
| "oic.r.pushpayload" | ||
| ] | ||
| } | ||
| }, | ||
| "state": { | ||
| "description": "Current state of the Push Proxy", | ||
| "type": "string", | ||
| "enum": [ | ||
| "waitingforprovisioning", | ||
| "waitingforupdate", | ||
| "waitingforresponse", | ||
| "waitingforupdatemitigation", | ||
| "waitingforresponsemitigation", | ||
| "error", | ||
| "timeout" | ||
| ] | ||
| } | ||
| }, | ||
| "required": [ | ||
| "pushtarget", | ||
| "sourcert" | ||
| ] | ||
| } | ||
| } | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update the copyright to 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed