Files
jsonrpc/docs/source/specification/index.rst
2025-06-26 15:21:54 +03:00

35 lines
963 B
ReStructuredText
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
JSON-RPC 2.0 Specification
==========================
Оригинал: https://www.jsonrpc.org/specification
.. raw:: html
:file: orig.html
В версии 2.0 не учтены:
* фрагментарность
* маршрутизация
* данные для аутентификации
* ссылки на ресурсы
Проблемы версии 2.0:
* При отсутствии id прилетает пустой ответ и не ясно был ли принят результат, даже если это просто уведомление
На рассмотрение:
* Коды ошибок можно взять из протокола HTTP, как наиболее употребимые
"type": "method | result | notification | error | fragment | accepted"
{
"version": "3.0",
"auth": {},
"routing": {},
"references": {},
"tags": {"key": "value"}
"id": "uuid"
}
.. raw:: html
:file: devel.html