Skip to content

Commit 2aa43b7

Browse files
authored
Documentation (#8)
1 parent 00f73ca commit 2aa43b7

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

README.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# JSON-RPC params validator bundle
1+
# Symfony JSON-RPC params documentation
22
[![License](https://img.shields.io/github/license/yoanm/symfony-jsonrpc-params-sf-constraints-doc.svg)](https://github.com/yoanm/symfony-jsonrpc-params-sf-constraints-doc) [![Code size](https://img.shields.io/github/languages/code-size/yoanm/symfony-jsonrpc-params-sf-constraints-doc.svg)](https://github.com/yoanm/symfony-jsonrpc-params-sf-constraints-doc) [![Dependencies](https://img.shields.io/librariesio/github/yoanm/symfony-jsonrpc-params-sf-constraints-doc.svg)](https://libraries.io/packagist/yoanm%2Fsymfony-jsonrpc-params-sf-constraints-doc)
33

44
[![Scrutinizer Build Status](https://img.shields.io/scrutinizer/build/g/yoanm/symfony-jsonrpc-params-sf-constraints-doc.svg?label=Scrutinizer&logo=scrutinizer)](https://scrutinizer-ci.com/g/yoanm/symfony-jsonrpc-params-sf-constraints-doc/build-status/master) [![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/yoanm/symfony-jsonrpc-params-sf-constraints-doc/master.svg?logo=scrutinizer)](https://scrutinizer-ci.com/g/yoanm/symfony-jsonrpc-params-sf-constraints-doc/?branch=master) [![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/yoanm/symfony-jsonrpc-params-sf-constraints-doc/master.svg?logo=scrutinizer)](https://scrutinizer-ci.com/g/yoanm/symfony-jsonrpc-params-sf-constraints-doc/?branch=master)
@@ -9,8 +9,36 @@
99

1010
Symfony bundle for easy Symfony constraints to JSON-RPC documentation transformation
1111

12+
Symfony bundle for [yoanm/jsonrpc-params-symfony-constraint-doc-sdk](https://github.com/yoanm/php-jsonrpc-params-symfony-constraint-doc-sdk)
13+
1214
## How to use
1315

16+
Once configured, your project will automatically create documentation for JSON-RPC params
17+
18+
See below how to configure it.
19+
20+
## Configuration
21+
22+
[Behat demo app configuration folders](./features/demo_app) can be used as examples.
23+
24+
- Add the bundles in your config/bundles.php file:
25+
```php
26+
// config/bundles.php
27+
return [
28+
...
29+
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
30+
Yoanm\SymfonyJsonRpcHttpServer\JsonRpcHttpServerBundle::class => ['all' => true],
31+
Yoanm\SymfonyJsonRpcHttpServerDoc\JsonRpcHttpServerDocBundle::class => ['all' => true],
32+
Yoanm\SymfonyJsonRpcParamsSfConstraintsDoc\JsonRpcParamsSfConstraintsDocBundle::class => ['all' => true],
33+
...
34+
];
35+
```
36+
37+
- Configure `yoanm/symfony-jsonrpc-http-server` as described on [yoanm/symfony-jsonrpc-http-server](https://github.com/yoanm/symfony-jsonrpc-http-server) documentation.
38+
39+
- Configure `yoanm/symfony-jsonrpc-http-server-doc` as described on [yoanm/symfony-jsonrpc-http-server-doc](https://github.com/yoanm/symfony-jsonrpc-http-server-doc) documentation.
40+
41+
- Query your project at documentation endpoint and you should see JSON-RPC params documentation for each methods
1442

1543

1644

0 commit comments

Comments
 (0)