Contributte Jsonrpc
# Contributte / JSON-RPC
JSON-RPC toolset build on top of psr-7 (guzzlehttp), league/json-guard, league/json-reference and league/flysystem
Common classes used for JSON-RPC APIs.
# Content
# Installation
composer require contributte/jsonrpc
1
# Configuration
# config.neon
extensions:
jsonRPCExtension: Contributte\JsonRPC\DI\JsonRPCExtension
jsonRPCExtension:
methodsMapping:
user.get: App\Command\Type\User\GetUserCommand
user.resetPassword: App\Command\Type\User\ResetPasswordCommand
# ...
jsonSchemaFilesDir: %appDir%/../json-schema
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9