igsem / api-bundle
A simple bundle to help Symfony API development. Provides a BaseController, BaseTest and a StatusCode helper
Installs: 83
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=7.0.1
- jms/serializer-bundle: ^1.1|~2.0
- nelmio/api-doc-bundle: ^2.13|~3.0@beta
- symfony/framework-bundle: ~2.3|~3.0
Requires (Dev)
- phpunit/phpunit: ^5.6
This package is not auto-updated.
Last update: 2024-11-01 23:18:27 UTC
README
This bundle Provides simple Abstract classes for easing the API Development. A Base Controller class to generate a skeleton CRUD with NelmioApiDoc already configured. Also an APIBase test which runs automatically some CRUD tests for your API ..minimum configuration required for a pretty good test coverage. We also have a LoginTrait for the tests to be able to login into our API via a token.
Installation: Just install the requirements and register the bundles in your AppKernel
new Nelmio\ApiDocBundle\NelmioApiDocBundle() ,
new JMS\SerializerBundle\JMSSerializerBundle(),
new \Igsem\APIBundle\IgsemAPIBundle() ,