213 lines
7.9 KiB
YAML
Raw Normal View History

2012-04-13 14:11:54 +02:00
test_route_1:
2015-04-30 15:34:19 +02:00
path: /tests.{_format}
methods: [GET]
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestController::indexAction, _format: json }
2012-04-13 14:11:54 +02:00
test_route_2:
2015-04-30 15:34:19 +02:00
path: /tests.{_format}
host: api.test.dev
methods: [POST]
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestController::postTestAction, _format: json }
2012-04-13 14:11:54 +02:00
2012-04-13 14:42:28 +02:00
test_route_3:
2015-04-30 15:34:19 +02:00
path: /another
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestController::anotherAction }
2012-04-13 14:42:28 +02:00
2012-04-13 15:00:46 +02:00
test_route_4:
2015-04-30 15:34:19 +02:00
path: /any/{foo}
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestController::anyAction, _format: json }
2012-04-13 15:00:46 +02:00
test_route_5:
2015-04-30 15:34:19 +02:00
path: /my-commented/{id}/{page}/{paramType}/{param}
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestController::myCommentedAction }
test_route_6:
2015-04-30 15:34:19 +02:00
path: /yet-another/{id}
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestController::yetAnotherAction }
requirements:
id: \d+
test_route_7:
2015-04-30 15:34:19 +02:00
path: /another-post
methods: [POST]
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestController::anotherPostAction, _format: json }
test_route_9:
2015-04-30 15:34:19 +02:00
path: /jms-input-test
methods: [POST]
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestController::jmsInputTestAction }
2012-08-27 12:56:19 -04:00
test_route_10:
2015-04-30 15:34:19 +02:00
path: /jms-return-test
methods: [GET]
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestController::jmsReturnTestAction }
2012-08-27 12:56:19 -04:00
test_route_12:
2015-04-30 15:34:19 +02:00
path: /secure-route
schemes: [https]
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestController::secureRouteAction }
test_service_route_1:
2015-04-30 15:34:19 +02:00
path: /tests.{_format}
methods: [GET]
2014-03-27 19:49:59 +00:00
defaults: { _controller: nelmio.test.controller:indexAction, _format: json }
test_service_route_2:
2015-04-30 15:34:19 +02:00
path: /tests.{_format}
host: api.test.dev
methods: [POST]
2014-03-27 19:49:59 +00:00
defaults: { _controller: nelmio.test.controller:postTestAction, _format: json }
test_service_route_3:
2015-04-30 15:34:19 +02:00
path: /another
2014-03-27 19:49:59 +00:00
defaults: { _controller: nelmio.test.controller:anotherAction }
test_service_route_4:
2015-04-30 15:34:19 +02:00
path: /any
2014-03-27 19:49:59 +00:00
defaults: { _controller: nelmio.test.controller:anyAction, _format: json }
2012-04-13 14:11:54 +02:00
NelmioApiDocBundle:
resource: "@NelmioApiDocBundle/Resources/config/routing.yml"
2015-04-30 15:34:19 +02:00
prefix: /
2013-03-21 12:15:44 +01:00
test_route_14:
2015-04-30 15:34:19 +02:00
path: /tests2.{_format}
methods: [POST]
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestController::postTest2Action, _format: json }
2013-04-30 16:21:12 +04:00
2013-05-09 23:59:03 -03:00
test_route_17:
2015-04-30 15:34:19 +02:00
path: /z-action-with-deprecated-indicator
methods: [GET]
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestController::deprecatedAction }
test_return_nested_output:
2015-04-30 15:34:19 +02:00
path: /return-nested-output
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestController::jmsReturnNestedOutputAction, _format: json }
2013-10-11 16:18:02 +02:00
2013-12-11 01:59:59 +01:00
test_return_nested_extend_output:
2015-04-30 15:34:19 +02:00
path: /return-nested-extend-output
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestController::jmsReturnNestedExtendOutputAction, _format: json }
2013-12-11 01:59:59 +01:00
2013-11-07 13:30:13 +01:00
test_route_18:
2015-04-30 15:34:19 +02:00
path: /z-return-jms-and-validator-output
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestController::zReturnJmsAndValidationOutputAction }
2013-11-07 13:30:13 +01:00
2013-10-11 16:18:02 +02:00
test_route_named_resource:
2015-04-30 15:34:19 +02:00
path: /named-resource
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestController::namedResourceAction }
2013-12-05 00:05:47 +01:00
test_route_19:
2015-04-30 15:34:19 +02:00
path: /z-return-selected-parsers-output
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestController::zReturnSelectedParsersOutputAction }
2013-12-05 00:05:47 +01:00
test_route_20:
2015-04-30 15:34:19 +02:00
path: /z-return-selected-parsers-input
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestController::zReturnSelectedParsersInputAction }
test_route_private:
2015-04-30 15:34:19 +02:00
path: /private
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestController::privateAction }
test_route_exclusive:
2015-04-30 15:34:19 +02:00
path: /exclusive
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestController::exclusiveAction }
2014-04-17 14:06:41 +02:00
test_route_list_resource:
2015-04-30 15:34:19 +02:00
path: /api/resources.{_format}
methods: [GET]
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\ResourceController::listResourcesAction, _format: json }
requirements:
_format: json|xml|html
test_route_get_resource:
2015-04-30 15:34:19 +02:00
path: /api/resources/{id}.{_format}
methods: [GET]
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\ResourceController::getResourceAction, _format: json }
requirements:
_format: json|xml|html
test_route_delete_resource:
2015-04-30 15:34:19 +02:00
path: /api/resources/{id}.{_format}
methods: [DELETE]
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\ResourceController::deleteResourceAction, _format: json }
requirements:
_format: json|xml|html
test_route_create_resource:
2015-04-30 15:34:19 +02:00
path: /api/resources.{_format}
methods: [POST]
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\ResourceController::createResourceAction, _format: json }
requirements:
_format: json|xml|html
test_route_list_another_resource:
2015-04-30 15:34:19 +02:00
path: /api/other-resources.{_format}
methods: [GET]
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\ResourceController::listAnotherResourcesAction, _format: json }
requirements:
_format: json|xml|html
test_route_update_another_resource:
2015-04-30 15:34:19 +02:00
path: /api/other-resources/{id}.{_format}
methods: [PUT, PATCH]
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\ResourceController::updateAnotherResourceAction, _format: json }
requirements:
_format: json|xml|html
swagger_doc:
2015-11-30 19:19:17 +01:00
resource: "@NelmioApiDocBundle/Resources/config/swagger_routing.yml"
2014-08-28 00:12:34 +02:00
prefix: /api-docs
test_route_23:
2015-04-30 15:34:19 +02:00
path: /zcached
methods: [POST]
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestController::zCachedAction }
2014-08-28 00:12:34 +02:00
test_route_24:
2015-04-30 15:34:19 +02:00
path: /zsecured
methods: [POST]
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestController::zSecuredAction }
test_required_parameters:
2015-04-30 15:34:19 +02:00
path: /api/other-resources/{id}.{_format}
methods: [POST]
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\ResourceController::requiredParametersAction, _format: json }
requirements:
_format: json|xml|html
test_patch_disables_required_parameters:
2015-04-30 15:34:19 +02:00
path: /api/other-resources/{id}.{_format}
methods: [PATCH]
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\ResourceController::requiredParametersAction, _format: json }
requirements:
_format: json|xml|html
test_route_25:
2015-04-30 15:34:19 +02:00
path: /with-link
methods: [GET]
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestController::withLinkAction }
test_route_26:
2015-04-30 15:34:19 +02:00
path: /z-action-with-array-request-param
methods: [POST]
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestController::zActionWithArrayRequestParamAction }
test_route_27:
path: /api/overrride/properties
methods: [POST, PUT]
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestController::overrideJmsAnnotationWithApiDocPropertiesAction, _format: json }
2015-11-10 01:51:26 +01:00
test_route_28:
path: /route_with_host.{_format}
host: api.{domain}
methods: [GET]
requirements:
domain: "%domain_dev%|%domain_prod%"
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestController::routeWithHostAction, domain: "%domain_dev%", _format: json }
test_route_version_checking:
path: /zz-tests-route-version.{_format}
methods: [GET]
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestController::routeVersionAction, _format: json, _version: "1.5" }