Skip to content

Commit

Permalink
Merge pull request #646 from open-rpc/feat/notification-only-method
Browse files Browse the repository at this point in the history
feat: add notification-only method example
  • Loading branch information
BelfordZ authored Feb 6, 2023
2 parents 0cb5501 + 8b8947f commit 36ca856
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions service-descriptions/metrics-openrpc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"openrpc": "1.3.0",
"info": {
"title": "Metrics",
"description": "An example of a metrics service that uses notification-only methods",
"version": "1.0.0"
},
"servers": [],
"methods": [
{
"name": "link_clicked",
"params": [
{
"name": "link href",
"schema": {
"title": "href",
"type": "string",
"format": "uri"
}
},
{
"name": "link label",
"schema": {
"title": "label",
"type": "string"
}
}
],
"examples": [
{
"name": "login link clicked",
"params": [
{
"name": "link href",
"value": "https://open-rpc.org"
},
{
"name": "link label",
"value": "Visit the OpenRPC Homepage"
}
]
}
]
}
]
}

0 comments on commit 36ca856

Please sign in to comment.