Skip to content

firenaik/rest-api-bundle

 
 

Repository files navigation

Symfony bundle for wizards/php-rest-api

Build Status

Helps you create a REST API in an expressive and streamlined way. It will help you conceive mature and discoverable APIs, thanks to the jsonapi specification. Regardless of the output serialization, the request format will be the same. Have a look at http://github.com/wizardstechnologies/php-rest-api for further documentation and explanations.

Install

composer require wizards/rest-bundle

Register it in your AppKernel

new Wizards\RestBundle\WizardsRestBundle(),

Configure

Create a configuration file with the following values:

# config/bundles/wizards_rest.yaml
wizards_rest:
	data_source: orm|array # Choose between ORM and Array for your data source. More will be added soon
	reader: annotation|array
	format: jsonapi|array
	base_url: your_url

Usage

Create a REST API the easy and configurable way !

This bundle ease the use of wizard's php rest api, and provide some extra goodies for symfony:

Documentation

  • Configure your data source
  • Expose your endpoints

About

A bundle create beautiful REST APIs

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 98.2%
  • Makefile 1.8%