Skip to content
This repository has been archived by the owner on Jan 31, 2022. It is now read-only.

willdurand/workshop-rest-from-zero-to-hero

Repository files navigation

REST: From Zero To Hero

This provided Symfony edition is based on the Symfony minimal edition.

Installation

Get the code by cloning this repository:

$ git clone [email protected]:willdurand/workshop-rest-from-zero-to-hero.git

Install the project's dependencies:

$ composer install

Configure the project by renaming the .env.dist file to .env:

$ cp .env.dist .env

Run the application:

$ bin/console server:start --router=`pwd`/router.php

Note 1: defining the --router option is required here because default Symfony routers hardcode the front controller name (in this project it is index.php, while Symfony uses app[_dev].php).

Note 2: as you might notice, the console script is located into the bin/ folder, not in app/.

Browse http://localhost:8000/.

Instructions

1. Serialization

2. The ApiBundle (a.k.a. the Read part)

3. Pagination

4. Testing

5. The "Create" Part

6. The "Update" Part

7. Content Negotiation

8. Document All The Things!

9. Hateoas

10. Security

License

This workshop (code + text) is released under the MIT License. See the bundled LICENSE file for details.

Releases

No releases published

Packages

No packages published