I am building a REST app and wanted to include the resources “href” with every response. Being able to easily do this from with a Symfony2 Controller is very convenient.
Here’s the code:
getUri(); ... code ... }
Hope this helped you find it fast!
I am building a REST app and wanted to include the resources “href” with every response. Being able to easily do this from with a Symfony2 Controller is very convenient.
Here’s the code:
getUri(); ... code ... }
Hope this helped you find it fast!