Skip to content

mmusaab/users_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Symfony 7 project with Event Dispatcher

Intro

This is Symfony 7 project, it has one api endpoint, EventDspatche and Listner. To make things simpler i added log file to show the data rather sent to notifications service.

Steps to install the project

Open docker "users_api" terminal

inside the docker terminal run below commands

  • cd project
  • composer install
  • php bin/console doctrine:migrations:migrate
  • php bin/console cache:clear

symfony server is started on this url http://localhost:8741/

To test the API endpoint, open postman or any other application Put endpoint in url "http://localhost:8741/api/users" Set Method to "POST"

add json data in body tab

{ "firstName": "test1", "lastName": "test 3", "email": "test@gmail.com" }

also unit tests are added, please run below command in docker to execute the tests.

  • php bin/phpunit

the saved data can be shown in DB and the log file at path ‘project/var/log/postData.txt’

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published