Skip to content

MrLehiste/fd-rest-api

 
 

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.

About

Workshop.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 81.3%
  • HTML 10.4%
  • Gherkin 4.9%
  • ApacheConf 3.4%