Last active
November 17, 2020 12:03
-
-
Save merltron-pa/2a24d28e1b15fe8acfbb40d2035d8701 to your computer and use it in GitHub Desktop.
PHP/JMS Article: Test post request, get back empty JSON
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
... | |
class TestAddressController extends AbstractController | |
{ | |
/** | |
* @Route("/test/address", methods={"POST"}) | |
*/ | |
public function postAddress(): Response | |
{ | |
return $this->json([]); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment