Skip to content

Commit dfe9d11

Browse files
committed
Mentioned FOSRestBundle's content negotiation
1 parent 90924db commit dfe9d11

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

templating/formats.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,12 @@ format:
8181
.. seealso::
8282

8383
For more information, see this :ref:`Advanced Routing Example <advanced-routing-example>`.
84+
85+
.. tip::
86+
87+
When building APIs, using file name extensions often isn't the best
88+
solution. The FOSRestBundle provides a request listener that uses content
89+
negotiation. For more information, check out the bundle's `Request Format Listener`_
90+
documentation.
91+
92+
.. _Request Format Listener: http://symfony.com/doc/current/bundles/FOSRestBundle/3-listener-support.html#format-listener

0 commit comments

Comments
 (0)