Skip to content

wh1pp3rz/code-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sumfony3 REST API based on Talentnet code challenge.

What's outstanding

  • More unit test for better code coverage
  • User authentication (This can be done using the JWT Package)
  • Complete annotations to generate api docs based on Nemio Api Doc Bundle
  • Further deployment preparation using parameters
  • Run codesniffer on all source files

What's completed

Setup

  • Download or clone package
  • Update composer dependencies
  • Setup database
  • Run CodeCeption api suite

#API Endpoints

  • GET /api/doc API Documentation (incomplete, requires further annotations)
  • GET /api/products - List All products
  • GET /api/products/{id} - GEt a specific products
  • GET /api/categories - List All Categories
  • POST /api/products - Create a product
  • PATCH /api/products - Update a product

Additional Notes

  • Categories and Products are implemented as separate entities for normalization of the DB
  • Categories and Products have separate controllers
  • Data lifting is isolated from controllers by use of handlers, allow for easy substitution of the datasource if with mininal code change

About

PHP Code Challenge Symfony3 REST API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published