Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 9b9d701

Browse files
committed
Moved cookbook article to Content bundle
1 parent 44b33dc commit 9b9d701

File tree

6 files changed

+9
-17
lines changed

6 files changed

+9
-17
lines changed

cookbook/exposing_content_via_rest.rst renamed to bundles/content/exposing_content_via_rest.rst

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,15 @@
11
.. index::
2-
single: Tutorial, REST
3-
single: ContentBundle
2+
single: ContentBundle; Rest
43

54
Exposing Content via REST
65
=========================
76

87
Many applications need to expose content via REST APIs to partners or to
98
enable integration into other applications. As the CMF is build on top
109
of Symfony2, it's possible to leverage many of the available bundles to
11-
provide a REST API for content stored in the CMF. This cookbook will
12-
detail how to provide a read API using the following bundles:
13-
14-
* :doc:`Cmf ContentBundle <../bundles/content/index>`;
15-
* `FOSRestBundle`_;
16-
* `JMSSerializerBundle`_.
17-
18-
It is assumed that you have:
19-
20-
* A working knowledge of the Symfony2 CMF framework;
21-
* An application with the ContentBundle setup.
10+
provide a REST API for content stored in the CMF. This guide will
11+
detail how to provide a read API for your content using the following bundles
12+
`FOSRestBundle`_ and `JMSSerializerBundle`_.
2213

2314
Installation
2415
------------
@@ -31,9 +22,9 @@ to generate the REST output. The best choice is the JMSSerializerBundle:
3122
.. code-block:: javascript
3223
3324
{
34-
..
25+
...
3526
"require": {
36-
..
27+
...
3728
"friendsofsymfony/rest-bundle": "1.*",
3829
"jms/serializer-bundle": "0.13.*",
3930
}

bundles/content/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ ContentBundle
66

77
introduction
88
configuration
9+
exposing_content_via_rest

bundles/content/introduction.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ Read On
230230
-------
231231

232232
* :doc:`configuration`
233+
* :doc:`exposing_content_via_rest`
233234

234235
.. _`with composer`: http://getcomposer.org
235236
.. _`symfony-cmf/content-bundle`: https://packagist.org/packages/symfony-cmf/content-bundle

bundles/map.rst.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ bundle based on the key bundles.
9393

9494
* :doc:`content/introduction`
9595
* :doc:`content/configuration`
96+
* :doc:`content/exposing_content_via_rest`
9697

9798
* :doc:`simple_cms/index`
9899

cookbook/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,5 @@ The Cookbook
1212
database/create_new_project_phpcr_odm
1313
editions/cmf_sandbox
1414
editions/cmf_core
15-
exposing_content_via_rest
1615

1716
.. include:: map.rst.inc

cookbook/map.rst.inc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,3 @@
1313
* :doc:`editions/cmf_core`
1414

1515
* :doc:`creating_a_cms/index`
16-
* :doc:`exposing_content_via_rest`

0 commit comments

Comments
 (0)