forked from wallabag/wallabag
1st implementation of wallabag api, yeah
This commit is contained in:
@ -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: ~
|
||||
@ -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
|
||||
4
app/config/routing_rest.yml
Normal file
4
app/config/routing_rest.yml
Normal file
@ -0,0 +1,4 @@
|
||||
app_api :
|
||||
type: rest
|
||||
resource: "WallabagCoreBundle:Api"
|
||||
name_prefix: api_
|
||||
Reference in New Issue
Block a user