UlrichHP/p7_bilemo

BileMo Products

Closed this issue · 1 comments

Creation of the BileMo Products. Possibility to view the products list and a product in particular.

Time Estimate : 3 days.

BileMo is now a RESTful API. Not yet complete, but you can view all products and one in particular.

  • Installed and configured FOSRestBundle and JMSSerializerBundle.
  • Installed and configured WhiteOctoberPagerfantaBundle for the pagination.
  • Installed and configured BazingaHateoasBundle to respect level 3 of Richardson Maturity Model.
  • Installed and configured NelmioApiDocBundle to generate the API documentation (file BileMo_doc.md and online : /api/doc).
  • Created 4 entities and their repository : Product, Image, Category, Color.
  • Created ResourceValidationException.php to manage errors and exceptions.
  • Created Representation/Products.php for the Pager.
  • Created two controllers : ProductController and CategoryController and their functions.
  • Created Fixtures to test the API (30).
  • Updated the README.

Now i will implement the Authentication for the API using Oauth (issue #3).

Done in : 2 days.