rezzza / jadd
Jadd : Another Documentation Dumper
dev-master
2017-02-05 17:59 UTC
Requires
- php-di/php-di: ^5.3
- psr/http-message: ^1.0
- symfony/config: ^3.1
- symfony/console: ^3.0
- symfony/routing: ^3.1
- symfony/yaml: ^3.1
Requires (Dev)
- atoum/atoum: ^2.8
- behat/behat: ^3.1
- guzzlehttp/psr7: ^1.3
- php-http/client-common: ^1.2
- php-http/curl-client: ^1.5
- rezzza/moco-behat-extension: ^1.0
- rezzza/rest-api-behat-extension: ^5.0
- symfony/process: ^3.1
This package is not auto-updated.
Last update: 2024-12-21 21:14:10 UTC
README
Jadd : Another Documentation Dumper
Why ?
- Because we love reading documentation on REST API.
- We really don't like writing documentation.
- We really don't like updating documentation.
- Annotations are evil
How ?
2 steps are needed
Collect the responses during functional tests
Of course you have tests for your API. So why not connecting to it and record all the cases you test ?
If you use php-http, we provide a middleware to collect the data during your tests. Have a look on the test to be sure how to use it.
Consolidate routing file
Then just need to run the bin/jadd generate <myRoutingFile> <outputFile>
It will parse your routes and consolidate the responses with tests recording.
Best place would be in onSuccess
hook of your CI.
Install
For now, we support only install on PHP project through composer :
composer require --dev rezzza/jadd:dev-master
Routing supported
- Symfony YAML (Don't support YAML +
@Route
Annotation in Controller)