This repository was archived by the owner on Sep 16, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +9
-17
lines changed Expand file tree Collapse file tree 6 files changed +9
-17
lines changed Original file line number Diff line number Diff line change 1
1
.. index ::
2
- single: Tutorial, REST
3
- single: ContentBundle
2
+ single: ContentBundle; Rest
4
3
5
4
Exposing Content via REST
6
5
=========================
7
6
8
7
Many applications need to expose content via REST APIs to partners or to
9
8
enable integration into other applications. As the CMF is build on top
10
9
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 `_.
22
13
23
14
Installation
24
15
------------
@@ -31,9 +22,9 @@ to generate the REST output. The best choice is the JMSSerializerBundle:
31
22
.. code-block :: javascript
32
23
33
24
{
34
- ..
25
+ ...
35
26
" require" : {
36
- ..
27
+ ...
37
28
" friendsofsymfony/rest-bundle" : " 1.*" ,
38
29
" jms/serializer-bundle" : " 0.13.*" ,
39
30
}
Original file line number Diff line number Diff line change @@ -6,3 +6,4 @@ ContentBundle
6
6
7
7
introduction
8
8
configuration
9
+ exposing_content_via_rest
Original file line number Diff line number Diff line change @@ -230,6 +230,7 @@ Read On
230
230
-------
231
231
232
232
* :doc: `configuration `
233
+ * :doc: `exposing_content_via_rest `
233
234
234
235
.. _`with composer` : http://getcomposer.org
235
236
.. _`symfony-cmf/content-bundle` : https://packagist.org/packages/symfony-cmf/content-bundle
Original file line number Diff line number Diff line change @@ -93,6 +93,7 @@ bundle based on the key bundles.
93
93
94
94
* :doc:` content/introduction`
95
95
* :doc:` content/configuration`
96
+ * :doc:` content/exposing_content_via_rest`
96
97
97
98
* :doc:` simple_cms/index`
98
99
Original file line number Diff line number Diff line change @@ -12,6 +12,5 @@ The Cookbook
12
12
database/create_new_project_phpcr_odm
13
13
editions/cmf_sandbox
14
14
editions/cmf_core
15
- exposing_content_via_rest
16
15
17
16
.. include :: map.rst.inc
Original file line number Diff line number Diff line change 13
13
* :doc:` editions/cmf_core`
14
14
15
15
* :doc:` creating_a_cms/index`
16
- * :doc:` exposing_content_via_rest`
You can’t perform that action at this time.
0 commit comments