[Api] Refactoring -> add count of post + format json response
[Test] installation of PHPUnit
[Test] Adding test for json response
[refactoring] delete useless spaces