2012-04-13 14:11:54 +02:00
|
|
|
test_route_1:
|
|
|
|
pattern: /tests
|
|
|
|
defaults: { _controller: NelmioApiDocTestBundle:Test:index, _format: json }
|
|
|
|
requirements:
|
|
|
|
_method: GET
|
|
|
|
|
|
|
|
test_route_2:
|
|
|
|
pattern: /tests
|
|
|
|
defaults: { _controller: NelmioApiDocTestBundle:Test:postTest, _format: json }
|
|
|
|
requirements:
|
|
|
|
_method: POST
|
|
|
|
|
2012-04-13 14:42:28 +02:00
|
|
|
test_route_3:
|
|
|
|
pattern: /another
|
|
|
|
defaults: { _controller: NelmioApiDocTestBundle:Test:another }
|
|
|
|
|
2012-04-13 15:00:46 +02:00
|
|
|
test_route_4:
|
2012-04-19 20:27:27 +02:00
|
|
|
pattern: /any/{foo}
|
2012-04-13 15:00:46 +02:00
|
|
|
defaults: { _controller: NelmioApiDocTestBundle:Test:any, _format: json }
|
|
|
|
|
2012-04-19 16:23:26 +02:00
|
|
|
test_route_5:
|
2012-05-07 12:51:22 +02:00
|
|
|
pattern: /my-commented/{id}/{page}
|
2012-04-19 16:23:26 +02:00
|
|
|
defaults: { _controller: NelmioApiDocTestBundle:Test:myCommented }
|
|
|
|
|
2012-04-19 20:27:27 +02:00
|
|
|
test_route_6:
|
|
|
|
pattern: /yet-another/{id}
|
|
|
|
defaults: { _controller: NelmioApiDocTestBundle:Test:yetAnother }
|
|
|
|
requirements:
|
|
|
|
id: \d+
|
|
|
|
|
2012-04-14 10:11:52 +02:00
|
|
|
test_service_route_1:
|
|
|
|
pattern: /tests
|
|
|
|
defaults: { _controller: nemlio.test.controller:indexAction, _format: json }
|
|
|
|
requirements:
|
|
|
|
_method: GET
|
|
|
|
|
|
|
|
test_service_route_2:
|
|
|
|
pattern: /tests
|
|
|
|
defaults: { _controller: nemlio.test.controller:postTestAction, _format: json }
|
|
|
|
requirements:
|
|
|
|
_method: POST
|
|
|
|
|
|
|
|
test_service_route_3:
|
|
|
|
pattern: /another
|
|
|
|
defaults: { _controller: nemlio.test.controller:anotherAction }
|
|
|
|
|
|
|
|
test_service_route_4:
|
|
|
|
pattern: /any
|
|
|
|
defaults: { _controller: nemlio.test.controller:anyAction, _format: json }
|
|
|
|
|
2012-04-13 14:11:54 +02:00
|
|
|
NelmioApiDocBundle:
|
|
|
|
resource: "@NelmioApiDocBundle/Resources/config/routing.yml"
|
|
|
|
prefix: /
|