Search notes:

JSON-RPC

Request

{
   "jsonrpc": "2.0",
   "method" : "get-precious-data",
   "id"     :  42
}
A request can also have an optional params key.
The value of id will be the same in the returned object and is used to correlate the request with the response

Response

{
   "jsonrpc": "2.0",
   "id"     :  42,
   "result" : "Hello world" 
}
In case of an error, the response object will hae a error member instead of result.

See also

Model Context Protocol (MCP)

Links

specification

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:51 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(51): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(66): id_of(Object(PDO), 'uri', '/notes/developm...') #2 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1788447731, '216.73.217.21', 'Mozilla/5.0 App...', NULL) #3 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/JavaScript/JSON/RPC/index(64): insert_webrequest() #4 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 51