@@ -24,9 +24,9 @@ See [yoanm/symfony-jsonrpc-params-sf-constraints-doc](https://github.com/yoanm/s
2424
2525## Availble formats
2626
27- * Raw : Built-in ` json ` format at ` /doc ` or ` /doc/raw.json `
28- * Swagger : [ yoanm/symfony-jsonrpc-http-server-swagger-doc] ( https://github.com/yoanm/symfony-jsonrpc-http-server-swagger-doc )
29- * OpenApi : [ yoanm/symfony-jsonrpc-http-server-openapi-doc] ( https://github.com/yoanm/symfony-jsonrpc-http-server-openapi-doc )
27+ * Raw : Built-in ` json ` format at ` /doc ` or ` /doc/raw.json `
28+ * Swagger : [ yoanm/symfony-jsonrpc-http-server-swagger-doc] ( https://github.com/yoanm/symfony-jsonrpc-http-server-swagger-doc )
29+ * OpenApi : [ yoanm/symfony-jsonrpc-http-server-openapi-doc] ( https://github.com/yoanm/symfony-jsonrpc-http-server-openapi-doc )
3030
3131## How to use
3232
@@ -38,45 +38,45 @@ See below how to configure it.
3838
3939* [ Behat demo app configuration folders] ( ./features/demo_app/ ) can be used as examples.*
4040
41- * Add the bundles in your ` config/bundles.php ` file:
42- ``` php
43- // config/bundles.php
44- return [
45- ...
46- Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
47- Yoanm\SymfonyJsonRpcHttpServer\JsonRpcHttpServerBundle::class => ['all' => true],
48- Yoanm\SymfonyJsonRpcHttpServerDoc\JsonRpcHttpServerDocBundle::class => ['all' => true],
49- ...
50- ];
51- ```
52-
53- * Add the following in your routing configuration :
54- ```yaml
55- # config/routes.yaml
56- json-rpc-endpoint:
57- resource: '@JsonRpcHttpServerBundle/Resources/config/routing/endpoint.xml'
58-
59- json-rpc-endpoint-doc:
60- resource: '@JsonRpcHttpServerDocBundle/Resources/config/routing/endpoint.xml'
61- ```
62-
63- * Add the following in your configuration :
64- ```yaml
65- # config/config.yaml
66- framework:
67- secret: '%env(APP_SECRET)%'
68-
69- json_rpc_http_server: ~
70-
71- json_rpc_http_server_doc: ~
72- # Or the following in case you want to customize endpoint path
73- #json_rpc_http_server_doc:
74- # endpoint: '/my-custom-doc-endpoint' # Default to '/doc'
75- ```
76-
77- * Register JSON-RPC methods as described on [yoanm/symfony-jsonrpc-http-server](https://github.com/yoanm/symfony-jsonrpc-http-server) documentation.
78-
79- * Query your project at `/doc` endpoint and you will have a `json` documentation of your server.
41+ * Add the bundles in your ` config/bundles.php ` file:
42+ ``` php
43+ // config/bundles.php
44+ return [
45+ ...
46+ Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
47+ Yoanm\SymfonyJsonRpcHttpServer\JsonRpcHttpServerBundle::class => ['all' => true],
48+ Yoanm\SymfonyJsonRpcHttpServerDoc\JsonRpcHttpServerDocBundle::class => ['all' => true],
49+ ...
50+ ];
51+ ```
52+
53+ * Add the following in your routing configuration :
54+ ``` yaml
55+ # config/routes.yaml
56+ json-rpc-endpoint :
57+ resource : ' @JsonRpcHttpServerBundle/Resources/config/routing/endpoint.xml'
58+
59+ json-rpc-endpoint-doc :
60+ resource : ' @JsonRpcHttpServerDocBundle/Resources/config/routing/endpoint.xml'
61+ ` ` `
62+
63+ * Add the following in your configuration :
64+ ` ` ` yaml
65+ # config/config.yaml
66+ framework :
67+ secret : ' %env(APP_SECRET)%'
68+
69+ json_rpc_http_server : ~
70+
71+ json_rpc_http_server_doc : ~
72+ # Or the following in case you want to customize endpoint path
73+ # json_rpc_http_server_doc:
74+ # endpoint: '/my-custom-doc-endpoint' # Default to '/doc'
75+ ```
76+
77+ * Register JSON-RPC methods as described on [ yoanm/symfony-jsonrpc-http-server] ( https://github.com/yoanm/symfony-jsonrpc-http-server ) documentation.
78+
79+ * Query your project at ` /doc ` endpoint and you will have a ` json ` documentation of your server.
8080
8181## Contributing
8282
0 commit comments