Se añade version 1.0 de parser html

correciones menores a codigo anterior realizado.
Se añade html de prueba
Se añaden librerias de restapi
parent e4248ad3
......@@ -16,10 +16,10 @@ class AppKernel extends Kernel
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
new Propel\PropelBundle\PropelBundle(),
//new FOS\RestBundle\FOSRestBundle(),
//new JMS\SerializerBundle\JMSSerializerBundle(),
//new Nelmio\ApiDocBundle\NelmioApiDocBundle(),
//new Nelmio\CorsBundle\NelmioCorsBundle(),
new FOS\RestBundle\FOSRestBundle(),
new JMS\SerializerBundle\JMSSerializerBundle(),
new Nelmio\ApiDocBundle\NelmioApiDocBundle(),
new Nelmio\CorsBundle\NelmioCorsBundle(),
new AppBundle\AppBundle(),
new BackendBundle\BackendBundle(),
new CampaniaBundle\CampaniaBundle(),
......
......@@ -138,31 +138,31 @@ propel:
dsn: %database_driver%:host=%database_host%;dbname=%database_name%;charset=UTF8
options: {}
attributes: {}
#fos_rest:
# param_fetcher_listener: true
# view:
# view_response_listener: force
# disable_csrf_role: ROLE_API
fos_rest:
param_fetcher_listener: true
view:
view_response_listener: force
disable_csrf_role: ROLE_API
#nelmio_api_doc:
# name: 'Documentacion WebServices Mcafee'
nelmio_api_doc:
name: 'Documentacion WebServices Mcafee'
#nelmio_cors:
# defaults:
# allow_credentials: false
# allow_origin: []
# allow_headers: []
# allow_methods: []
# expose_headers: []
# max_age: 0
# hosts: []
# origin_regex: false
# forced_allow_origin_value: ~
# paths:
# '^/api/':
# origin_regex: true
# allow_credentials: true
# allow_origin: %cors_allow_origin%
# allow_headers: ['Authorization', 'X-Requested-With', 'Content-Type', 'Accept', 'Origin', 'X-Custom-Auth']
# allow_methods: ['POST', 'GET']
# max_age: 3600
\ No newline at end of file
nelmio_cors:
defaults:
allow_credentials: false
allow_origin: []
allow_headers: []
allow_methods: []
expose_headers: []
max_age: 0
hosts: []
origin_regex: false
forced_allow_origin_value: ~
paths:
'^/api/':
origin_regex: true
allow_credentials: true
allow_origin: %cors_allow_origin%
allow_headers: ['Authorization', 'X-Requested-With', 'Content-Type', 'Accept', 'Origin', 'X-Custom-Auth']
allow_methods: ['POST', 'GET']
max_age: 3600
\ No newline at end of file
......@@ -4,10 +4,10 @@ security:
# http://symfony.com/doc/current/security.html#b-configuring-how-users-are-loaded
providers:
#in_memory:
#memory:
# users:
# userApi: { password: "%pass_ws_userapi%", roles: [ 'ROLE_USER', 'ROLE_API' ] }
in_memory:
memory:
users:
userApi: { password: "%pass_ws_userapi%", roles: [ 'ROLE_USER', 'ROLE_API' ] }
backend_backendusuario_provider:
id: backend_provider
......@@ -21,11 +21,11 @@ security:
firewalls:
# disables authentication for assets and the profiler, adapt it according to your needs
#api_ws:
# pattern: ^/api/
# stateless: true
# http_basic:
# provider: in_memory
api_ws:
pattern: ^/api/
stateless: true
http_basic:
provider: in_memory
login_backend_firewall:
pattern: ^/backend/login$
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment