Skip to content

pogotc/RestInABoxBundle

Repository files navigation

README

Introduction

Provides a very simple REST API for Symfony2 entities, the bundle is configured by adding a new entry to your config.yml like the following:
pogotc_rest_in_a_box:
    user:	## Name of your entity as it will appear in the request
		class: Path\To\My\Entity		## Where your class lives
		updateableFields: ['name', 'description'] ## Which fields the user can update
		displayableFields: ['id', 'name', 'description'] ## Which fields will be returned by get requests

About

Symfony2 bundle to help make a simple REST API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published