gointegro / hateoas-bundle
GOintegro HATEOAS Bundle
Installs: 10 599
Dependents: 0
Suggesters: 0
Security: 0
Stars: 68
Watchers: 11
Forks: 10
Open Issues: 14
Type:symfony-bundle
Requires
Requires (Dev)
- v0.10.5
- v0.10.4
- v0.10.3
- v0.10.2
- v0.10.1
- 0.10.0
- dev-master / 0.9.x-dev
- v0.9.22
- v0.9.21
- v0.9.20
- v0.9.19
- v0.9.18
- v0.9.17
- v0.9.16
- v0.9.15
- v0.9.14
- v0.9.13
- v0.9.12
- v0.9.11
- v0.9.10
- v0.9.9
- v0.9.8
- v0.9.7
- v0.9.6
- v0.9.5
- v0.9.4
- v0.9.3
- v0.9.2
- v0.9.1
- v0.9.0
- dev-develop
- dev-feature/parse-and-default-sorting
- dev-feature/conv-over-conf
- dev-feature/api-59-to-one-urls
- dev-feature/override-crud-services
- dev-feature/redis-cache
- dev-feature/api-50-delete-resources
- dev-feature/api-49-update-resources
- dev-hotfix/json-constants
- dev-feature/api-48-create-resources
- dev-hotfix/api-55-empty-page
- dev-feature/api-53-error-handling
- dev-feature/issue-4-paginated-collection
- dev-feature/api-21-open-source
This package is not auto-updated.
Last update: 2024-12-17 03:52:09 UTC
README
This is a Symfony 2 bundle for the GOintegro HATEOAS lib that uses a Doctrine 2 entity map and a RAML API definition to conjure a HATEOAS API, following the JSON-API specification.
You don't get scaffolds. You get a working API.
You get a working API with features sweeter than a Bobcat's self-esteem.
Try it out
Check out the example app project, so you can feel the magic in your finger tips without much ado.
Installation
Step 1: Download the Bundle
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
$ composer require gointegro/hateoas-bundle
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
Step 2: Enable the Bundle
Then, enable the bundle by adding the following line in the app/AppKernel.php
file of your project:
<?php // app/AppKernel.php class AppKernel extends Kernel { public function registerBundles() { $bundles = array( new GoIntegro\Bundle\HateoasBundle\GoIntegroHateoasBundle(), ); } } ?>
Step 3: Add these parameters
# app/config/parameters.yml # HATEOAS API api.base_url: "http://api.gointegro.com" api.url_path: "/api/v2" api.resource_class_path: "Rest2/Resource"
Step 4: Add these routes
# app/config/routing.yml # Place it underneath it all - it contains a catch-all route. go_integro_hateoas: resource: "@GoIntegroHateoasBundle/Resources/config/routing.yml" prefix: /api/v2
Usage
Check out the library docs for more info.