davidyell / symfony-webservice-task

Creating a single web service endpoint using Symfony

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Symfony Webservice

Creation of a restful api for managing expenses.

Tooling

  • PHP Storm
  • SQLite3
  • Postman

Scripts

  • PHPCS composer phpcs
  • OpenAPI composer swagger
  • PHPUnit composer test

Setup and run

Enhancements

  • Using a tool like Fractal to manage more complex json responses.
  • Adding a static analysis tool like PHP Stan or Psalm

Time sheets

Session 1: 3h 45m
Session 2: 2h 45m
Total: 6h 30m

Testing

I have implemented a number of unit tests and outlined other testing scenarios as skipped tests.

TODO:

  • Validation rules, length, nullable, etc
  • Unit testing validation
  • Endpoint integration testing with test database

About

Creating a single web service endpoint using Symfony


Languages

Language:PHP 95.5%Language:Shell 4.5%