Download the PHP package yoanm/symfony-jsonrpc-http-server-swagger-doc without Composer
On this page you can find all versions of the php package yoanm/symfony-jsonrpc-http-server-swagger-doc. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download yoanm/symfony-jsonrpc-http-server-swagger-doc
More information about yoanm/symfony-jsonrpc-http-server-swagger-doc
Files in yoanm/symfony-jsonrpc-http-server-swagger-doc
Package symfony-jsonrpc-http-server-swagger-doc
Short Description Symfony bundle for easy JSON-RPC server Swagger 2.0 documentation
License MIT
Informations about the package symfony-jsonrpc-http-server-swagger-doc
Symfony JSON-RPC Http server swagger documentation
Symfony bundle for easy JSON-RPC server Swagger 2.0 documentation
Symfony bundle for yoanm/jsonrpc-http-server-swagger-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 is ready to handle HTTP GET
request on /doc/swagger.json
endpoint. Result will be a swagger compatible file.
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:
-
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
/doc/swagger.json
endpoint and you will have a swagger json documentation file of your server.
Event
You are able to enhance resulting documentation by listening on json_rpc_http_server_swagger_doc.array_created
event.
See below an example of listener service configuration:
You will receive an event of type SwaggerDocCreatedEvent
.
You can take example on Behat DocCreatedListener
Contributing
See contributing note
All versions of symfony-jsonrpc-http-server-swagger-doc with dependencies
symfony/config Version ^4.4 || ^5.4 || ^6.0
symfony/dependency-injection Version ^4.4 || ^5.4 || ^6.0
symfony/event-dispatcher-contracts Version ^1.0 || ^2.0
symfony/http-kernel Version ^4.4 || ^5.4 || ^6.0
yoanm/jsonrpc-http-server-swagger-doc-sdk Version ^v1.0
yoanm/jsonrpc-server-doc-sdk Version ^v1.0
yoanm/symfony-jsonrpc-http-server-doc Version ^1.1