2012-04-13 14:11:54 +02:00
|
|
|
test_route_1:
|
2015-04-30 15:34:19 +02:00
|
|
|
path: /tests.{_format}
|
|
|
|
methods: [GET]
|
2024-06-18 00:19:53 +03:00
|
|
|
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]
|
2024-06-18 00:19:53 +03:00
|
|
|
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
|
2024-06-18 00:19:53 +03:00
|
|
|
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}
|
2024-06-18 00:19:53 +03:00
|
|
|
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestController::anyAction, _format: json }
|
2012-04-13 15:00:46 +02:00
|
|
|
|
2012-04-19 16:23:26 +02:00
|
|
|
test_route_5:
|
2015-04-30 15:34:19 +02:00
|
|
|
path: /my-commented/{id}/{page}/{paramType}/{param}
|
2024-06-18 00:19:53 +03:00
|
|
|
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestController::myCommentedAction }
|
2012-04-19 16:23:26 +02:00
|
|
|
|
2012-04-19 20:27:27 +02:00
|
|
|
test_route_6:
|
2015-04-30 15:34:19 +02:00
|
|
|
path: /yet-another/{id}
|
2024-06-18 00:19:53 +03:00
|
|
|
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestController::yetAnotherAction }
|
2012-04-19 20:27:27 +02:00
|
|
|
requirements:
|
|
|
|
id: \d+
|
|
|
|
|
2012-06-21 00:12:21 +02:00
|
|
|
test_route_7:
|
2015-04-30 15:34:19 +02:00
|
|
|
path: /another-post
|
|
|
|
methods: [POST]
|
2024-06-18 00:19:53 +03:00
|
|
|
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestController::anotherPostAction, _format: json }
|
2012-06-21 00:12:21 +02:00
|
|
|
|
2012-08-07 17:50:58 -04:00
|
|
|
test_route_9:
|
2015-04-30 15:34:19 +02:00
|
|
|
path: /jms-input-test
|
|
|
|
methods: [POST]
|
2024-06-18 00:19:53 +03:00
|
|
|
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestController::jmsInputTestAction }
|
2012-08-07 17:50:58 -04:00
|
|
|
|
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]
|
2024-06-18 00:19:53 +03:00
|
|
|
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestController::jmsReturnTestAction }
|
2012-08-27 12:56:19 -04:00
|
|
|
|
2012-12-10 10:21:04 -08:00
|
|
|
test_route_12:
|
2015-04-30 15:34:19 +02:00
|
|
|
path: /secure-route
|
|
|
|
schemes: [https]
|
2024-06-18 00:19:53 +03:00
|
|
|
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestController::secureRouteAction }
|
2012-12-10 10:21:04 -08:00
|
|
|
|
2012-04-14 10:11:52 +02:00
|
|
|
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 }
|
2012-04-14 10:11:52 +02:00
|
|
|
|
|
|
|
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 }
|
2012-04-14 10:11:52 +02:00
|
|
|
|
|
|
|
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 }
|
2012-04-14 10:11:52 +02:00
|
|
|
|
|
|
|
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-14 10:11:52 +02:00
|
|
|
|
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]
|
2024-06-18 00:19:53 +03:00
|
|
|
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]
|
2024-06-18 00:19:53 +03:00
|
|
|
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestController::deprecatedAction }
|
2013-04-24 22:28:46 +02:00
|
|
|
|
|
|
|
test_return_nested_output:
|
2015-04-30 15:34:19 +02:00
|
|
|
path: /return-nested-output
|
2024-06-18 00:19:53 +03:00
|
|
|
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
|
2024-06-18 00:19:53 +03:00
|
|
|
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
|
2024-06-18 00:19:53 +03:00
|
|
|
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
|
2024-06-18 00:19:53 +03:00
|
|
|
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
|
2024-06-18 00:19:53 +03:00
|
|
|
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
|
2024-06-18 00:19:53 +03:00
|
|
|
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestController::zReturnSelectedParsersInputAction }
|
2014-01-16 13:42:37 +01:00
|
|
|
|
|
|
|
test_route_private:
|
2015-04-30 15:34:19 +02:00
|
|
|
path: /private
|
2024-06-18 00:19:53 +03:00
|
|
|
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestController::privateAction }
|
2014-01-16 13:42:37 +01:00
|
|
|
|
|
|
|
test_route_exclusive:
|
2015-04-30 15:34:19 +02:00
|
|
|
path: /exclusive
|
2024-06-18 00:19:53 +03:00
|
|
|
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestController::exclusiveAction }
|
2014-04-17 14:06:41 +02:00
|
|
|
|
2014-06-17 17:05:00 -07:00
|
|
|
test_route_list_resource:
|
2015-04-30 15:34:19 +02:00
|
|
|
path: /api/resources.{_format}
|
|
|
|
methods: [GET]
|
2024-06-18 00:19:53 +03:00
|
|
|
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\ResourceController::listResourcesAction, _format: json }
|
2014-06-17 17:05:00 -07:00
|
|
|
requirements:
|
|
|
|
_format: json|xml|html
|
|
|
|
|
|
|
|
test_route_get_resource:
|
2015-04-30 15:34:19 +02:00
|
|
|
path: /api/resources/{id}.{_format}
|
|
|
|
methods: [GET]
|
2024-06-18 00:19:53 +03:00
|
|
|
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\ResourceController::getResourceAction, _format: json }
|
2014-06-17 17:05:00 -07:00
|
|
|
requirements:
|
|
|
|
_format: json|xml|html
|
|
|
|
|
|
|
|
test_route_delete_resource:
|
2015-04-30 15:34:19 +02:00
|
|
|
path: /api/resources/{id}.{_format}
|
|
|
|
methods: [DELETE]
|
2024-06-18 00:19:53 +03:00
|
|
|
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\ResourceController::deleteResourceAction, _format: json }
|
2014-06-17 17:05:00 -07:00
|
|
|
requirements:
|
|
|
|
_format: json|xml|html
|
|
|
|
|
|
|
|
test_route_create_resource:
|
2015-04-30 15:34:19 +02:00
|
|
|
path: /api/resources.{_format}
|
|
|
|
methods: [POST]
|
2024-06-18 00:19:53 +03:00
|
|
|
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\ResourceController::createResourceAction, _format: json }
|
2014-06-17 17:05:00 -07:00
|
|
|
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]
|
2024-06-18 00:19:53 +03:00
|
|
|
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\ResourceController::listAnotherResourcesAction, _format: json }
|
2014-06-17 17:05:00 -07:00
|
|
|
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]
|
2024-06-18 00:19:53 +03:00
|
|
|
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\ResourceController::updateAnotherResourceAction, _format: json }
|
2014-06-17 17:05:00 -07:00
|
|
|
requirements:
|
|
|
|
_format: json|xml|html
|
2014-06-28 00:20:12 +00:00
|
|
|
|
|
|
|
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]
|
2024-06-18 00:19:53 +03:00
|
|
|
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]
|
2024-06-18 00:19:53 +03:00
|
|
|
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestController::zSecuredAction }
|
2014-09-29 16:18:11 +02:00
|
|
|
|
|
|
|
test_required_parameters:
|
2015-04-30 15:34:19 +02:00
|
|
|
path: /api/other-resources/{id}.{_format}
|
|
|
|
methods: [POST]
|
2024-06-18 00:19:53 +03:00
|
|
|
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\ResourceController::requiredParametersAction, _format: json }
|
2014-09-29 16:18:11 +02:00
|
|
|
requirements:
|
|
|
|
_format: json|xml|html
|
2014-12-12 16:13:55 +01:00
|
|
|
|
2016-01-26 14:20:49 +01:00
|
|
|
test_patch_disables_required_parameters:
|
2015-04-30 15:34:19 +02:00
|
|
|
path: /api/other-resources/{id}.{_format}
|
2016-01-26 14:20:49 +01:00
|
|
|
methods: [PATCH]
|
2024-06-18 00:19:53 +03:00
|
|
|
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\ResourceController::requiredParametersAction, _format: json }
|
2014-09-29 16:18:11 +02:00
|
|
|
requirements:
|
2014-12-12 16:13:55 +01:00
|
|
|
_format: json|xml|html
|
2014-09-29 16:18:11 +02:00
|
|
|
|
2014-12-12 16:13:55 +01:00
|
|
|
test_route_25:
|
2015-04-30 15:34:19 +02:00
|
|
|
path: /with-link
|
|
|
|
methods: [GET]
|
2024-06-18 00:19:53 +03:00
|
|
|
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestController::withLinkAction }
|
2015-06-02 12:01:10 +02:00
|
|
|
|
|
|
|
test_route_26:
|
2015-04-30 15:34:19 +02:00
|
|
|
path: /z-action-with-array-request-param
|
|
|
|
methods: [POST]
|
2024-06-18 00:19:53 +03:00
|
|
|
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestController::zActionWithArrayRequestParamAction }
|
2015-10-27 13:36:07 +01:00
|
|
|
|
|
|
|
test_route_27:
|
|
|
|
path: /api/overrride/properties
|
|
|
|
methods: [POST, PUT]
|
2024-06-18 00:19:53 +03:00
|
|
|
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%"
|
2024-06-18 00:19:53 +03:00
|
|
|
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestController::routeWithHostAction, domain: "%domain_dev%", _format: json }
|
2016-01-08 13:04:25 +01:00
|
|
|
|
2019-04-24 12:55:08 +03:00
|
|
|
test_route_version_checking:
|
|
|
|
path: /zz-tests-route-version.{_format}
|
|
|
|
methods: [GET]
|
2024-06-18 00:19:53 +03:00
|
|
|
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestController::routeVersionAction, _format: json, _version: "1.5" }
|
2019-04-24 12:55:08 +03:00
|
|
|
|