aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/config
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2015-01-28 17:09:27 +0100
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2015-01-28 17:09:27 +0100
commite4788de51ecbf2773a043325965e10eb74b14e8f (patch)
treeca66ba084b27050ee336b93b82fbd55ac7f9fd3a /app/config
parent569f8d6851ea31b594fc5ccbcc11fe79dbdf2fa6 (diff)
downloadwallabag-e4788de51ecbf2773a043325965e10eb74b14e8f.tar.gz
wallabag-e4788de51ecbf2773a043325965e10eb74b14e8f.tar.zst
wallabag-e4788de51ecbf2773a043325965e10eb74b14e8f.zip
1st implementation of wallabag api, yeah
Diffstat (limited to 'app/config')
-rw-r--r--app/config/config.yml20
-rw-r--r--app/config/routing.yml11
-rw-r--r--app/config/routing_rest.yml4
3 files changed, 34 insertions, 1 deletions
diff --git a/app/config/config.yml b/app/config/config.yml
index d7c465db..f2f5f9f3 100644
--- a/app/config/config.yml
+++ b/app/config/config.yml
@@ -84,3 +84,23 @@ swiftmailer:
84 username: "%mailer_user%" 84 username: "%mailer_user%"
85 password: "%mailer_password%" 85 password: "%mailer_password%"
86 spool: { type: memory } 86 spool: { type: memory }
87
88fos_rest:
89 param_fetcher_listener: true
90 body_listener: true
91 format_listener: true
92 view:
93 view_response_listener: 'force'
94 formats:
95 xml: true
96 json : true
97 templating_formats:
98 html: true
99 force_redirects:
100 html: true
101 failed_validation: HTTP_BAD_REQUEST
102 default_engine: twig
103 routing_loader:
104 default_format: json
105
106nelmio_api_doc: ~ \ No newline at end of file
diff --git a/app/config/routing.yml b/app/config/routing.yml
index 95c224ab..a57311dc 100644
--- a/app/config/routing.yml
+++ b/app/config/routing.yml
@@ -4,4 +4,13 @@ app:
4 4
5homepage: 5homepage:
6 pattern: / 6 pattern: /
7 defaults: { _controller: WallabagCoreBundle:Entry:showUnread } \ No newline at end of file 7 defaults: { _controller: WallabagCoreBundle:Entry:showUnread }
8
9doc-api:
10 resource: "@NelmioApiDocBundle/Resources/config/routing.yml"
11 prefix: /api/doc
12
13rest :
14 type : rest
15 resource : "routing_rest.yml"
16 prefix : /api \ No newline at end of file
diff --git a/app/config/routing_rest.yml b/app/config/routing_rest.yml
new file mode 100644
index 00000000..ecddbd36
--- /dev/null
+++ b/app/config/routing_rest.yml
@@ -0,0 +1,4 @@
1app_api :
2 type: rest
3 resource: "WallabagCoreBundle:Api"
4 name_prefix: api_ \ No newline at end of file