1st implementation of wallabag api, yeah

This commit is contained in:
Nicolas Lœuillet
2015-01-28 17:09:27 +01:00
parent 569f8d6851
commit e4788de51e
11 changed files with 1040 additions and 17 deletions

View File

@ -84,3 +84,23 @@ swiftmailer:
username: "%mailer_user%"
password: "%mailer_password%"
spool: { type: memory }
fos_rest:
param_fetcher_listener: true
body_listener: true
format_listener: true
view:
view_response_listener: 'force'
formats:
xml: true
json : true
templating_formats:
html: true
force_redirects:
html: true
failed_validation: HTTP_BAD_REQUEST
default_engine: twig
routing_loader:
default_format: json
nelmio_api_doc: ~

View File

@ -4,4 +4,13 @@ app:
homepage:
pattern: /
defaults: { _controller: WallabagCoreBundle:Entry:showUnread }
defaults: { _controller: WallabagCoreBundle:Entry:showUnread }
doc-api:
resource: "@NelmioApiDocBundle/Resources/config/routing.yml"
prefix: /api/doc
rest :
type : rest
resource : "routing_rest.yml"
prefix : /api

View File

@ -0,0 +1,4 @@
app_api :
type: rest
resource: "WallabagCoreBundle:Api"
name_prefix: api_