yoanm / symfony-jsonrpc-params-sf-constraints-doc
Symfony bundle for easy Symfony constraints to JSON-RPC documentation transformation
Installs: 14 185
Dependents: 0
Suggesters: 3
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 1
Requires
- php: >=7.2
- symfony/config: ^4.0 || ^5.0
- symfony/dependency-injection: ^4.0 || ^5.0
- symfony/http-kernel: ^4.0 || ^5.0
- yoanm/jsonrpc-params-symfony-constraint-doc-sdk: ^1.0
- yoanm/jsonrpc-params-symfony-validator-sdk: ^2.0
- yoanm/jsonrpc-server-doc-sdk: ^0.2
- yoanm/jsonrpc-server-sdk: ^3.0
- yoanm/symfony-jsonrpc-http-server-doc: ^1.0
Requires (Dev)
- ext-json: *
- behat/behat: ~3.0
- matthiasnoback/symfony-config-test: ^3.0 || ^4.0
- matthiasnoback/symfony-dependency-injection-test: ^3.0 || ^4.0
- phpunit/phpunit: ^7.0 || ^8.0
- squizlabs/php_codesniffer: 3.*
- symfony/framework-bundle: ^4.0 || ^5.0
- symfony/routing: ^4.0 || ^5.0
- yoanm/php-unit-extended: ~1.0
Suggests
- yoanm/symfony-jsonrpc-http-server: Symfony Bundle to convert an HTTP json-rpc request into HTTP json-rpc response
This package is auto-updated.
Last update: 2022-05-09 16:14:03 UTC
README
Symfony bundle for easy Symfony constraints to JSON-RPC documentation transformation
Symfony bundle for yoanm/jsonrpc-params-symfony-constraint-doc-sdk
Versions
- Symfony v3/4 - PHP >=7.1 :
^v0.X
- Symfony v4/5 - PHP >=7.2 :
^v1.0
How to use
Once configured, your project will automatically create documentation for JSON-RPC params
See below how to configure it.
Configuration
Behat demo app configuration folders can be used as examples.
-
Add the bundles in your config/bundles.php file:
// config/bundles.php return [ ... Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true], Yoanm\SymfonyJsonRpcHttpServer\JsonRpcHttpServerBundle::class => ['all' => true], Yoanm\SymfonyJsonRpcHttpServerDoc\JsonRpcHttpServerDocBundle::class => ['all' => true], Yoanm\SymfonyJsonRpcParamsSfConstraintsDoc\JsonRpcParamsSfConstraintsDocBundle::class => ['all' => true], ... ];
-
Configure
yoanm/symfony-jsonrpc-http-server
as described on yoanm/symfony-jsonrpc-http-server documentation. -
Configure
yoanm/symfony-jsonrpc-http-server-doc
as described on yoanm/symfony-jsonrpc-http-server-doc documentation. -
Query your project at documentation endpoint and you should see JSON-RPC params documentation for each methods