2012-04-13 14:11:54 +02:00
|
|
|
test_route_1:
|
2015-04-30 15:34:19 +02:00
|
|
|
path: /tests.{_format}
|
|
|
|
methods: [GET]
|
2012-04-13 14:11:54 +02:00
|
|
|
defaults: { _controller: NelmioApiDocTestBundle:Test:index, _format: json }
|
|
|
|
|
|
|
|
test_route_2:
|
2015-04-30 15:34:19 +02:00
|
|
|
path: /tests.{_format}
|
|
|
|
host: api.test.dev
|
|
|
|
methods: [POST]
|
2012-04-13 14:11:54 +02:00
|
|
|
defaults: { _controller: NelmioApiDocTestBundle:Test:postTest, _format: json }
|
|
|
|
|
2012-04-13 14:42:28 +02:00
|
|
|
test_route_3:
|
2015-04-30 15:34:19 +02:00
|
|
|
path: /another
|
2012-04-13 14:42:28 +02:00
|
|
|
defaults: { _controller: NelmioApiDocTestBundle:Test:another }
|
|
|
|
|
2012-04-13 15:00:46 +02:00
|
|
|
test_route_4:
|
2015-04-30 15:34:19 +02:00
|
|
|
path: /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:
|
2015-04-30 15:34:19 +02:00
|
|
|
path: /my-commented/{id}/{page}/{paramType}/{param}
|
2012-04-19 16:23:26 +02:00
|
|
|
defaults: { _controller: NelmioApiDocTestBundle:Test:myCommented }
|
|
|
|
|
2012-04-19 20:27:27 +02:00
|
|
|
test_route_6:
|
2015-04-30 15:34:19 +02:00
|
|
|
path: /yet-another/{id}
|
2012-04-19 20:27:27 +02:00
|
|
|
defaults: { _controller: NelmioApiDocTestBundle:Test:yetAnother }
|
|
|
|
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]
|
2012-06-21 00:12:21 +02:00
|
|
|
defaults: { _controller: NelmioApiDocTestBundle:Test:anotherPost, _format: json }
|
|
|
|
|
2012-07-20 00:58:58 +02:00
|
|
|
test_route_8:
|
2015-04-30 15:34:19 +02:00
|
|
|
path: /z-action-with-query-param
|
|
|
|
methods: [GET]
|
2012-07-20 00:58:58 +02:00
|
|
|
defaults: { _controller: NelmioApiDocTestBundle:Test:zActionWithQueryParam }
|
|
|
|
|
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]
|
2012-08-07 17:50:58 -04:00
|
|
|
defaults: { _controller: NelmioApiDocTestBundle:Test:jmsInputTest }
|
|
|
|
|
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]
|
2012-08-27 12:56:19 -04:00
|
|
|
defaults: { _controller: NelmioApiDocTestBundle:Test:jmsReturnTest }
|
|
|
|
|
2012-11-14 23:59:06 +01:00
|
|
|
test_route_11:
|
2015-04-30 15:34:19 +02:00
|
|
|
path: /z-action-with-request-param
|
|
|
|
methods: [POST]
|
2012-11-14 23:59:06 +01:00
|
|
|
defaults: { _controller: NelmioApiDocTestBundle:Test:zActionWithRequestParam }
|
|
|
|
|
2012-12-10 10:21:04 -08:00
|
|
|
test_route_12:
|
2015-04-30 15:34:19 +02:00
|
|
|
path: /secure-route
|
|
|
|
schemes: [https]
|
2012-12-10 10:21:04 -08:00
|
|
|
defaults: { _controller: NelmioApiDocTestBundle:Test:secureRoute }
|
|
|
|
|
2012-12-26 12:23:28 +01:00
|
|
|
test_route_13:
|
2015-04-30 15:34:19 +02:00
|
|
|
path: /authenticated
|
2012-12-26 12:23:28 +01:00
|
|
|
defaults: { _controller: NelmioApiDocTestBundle:Test:authenticated }
|
|
|
|
|
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]
|
2013-03-21 12:15:44 +01:00
|
|
|
defaults: { _controller: NelmioApiDocTestBundle:Test:postTest2, _format: json }
|
2013-04-30 16:21:12 +04:00
|
|
|
|
|
|
|
test_route_15:
|
2015-04-30 15:34:19 +02:00
|
|
|
path: /z-action-with-query-param-strict
|
|
|
|
methods: [GET]
|
2013-04-30 16:21:12 +04:00
|
|
|
defaults: { _controller: NelmioApiDocTestBundle:Test:zActionWithQueryParamStrict }
|
|
|
|
|
|
|
|
test_route_16:
|
2015-04-30 15:34:19 +02:00
|
|
|
path: /z-action-with-query-param-no-default
|
|
|
|
methods: [GET]
|
2013-04-30 16:21:12 +04:00
|
|
|
defaults: { _controller: NelmioApiDocTestBundle:Test:zActionWithQueryParamNoDefault }
|
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]
|
2013-05-09 23:59:03 -03:00
|
|
|
defaults: { _controller: NelmioApiDocTestBundle:Test:deprecated }
|
2013-04-24 22:28:46 +02:00
|
|
|
|
|
|
|
test_return_nested_output:
|
2015-04-30 15:34:19 +02:00
|
|
|
path: /return-nested-output
|
2013-04-24 22:28:46 +02:00
|
|
|
defaults: { _controller: NelmioApiDocTestBundle:Test:jmsReturnNestedOutput, _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
|
2013-12-11 01:59:59 +01:00
|
|
|
defaults: { _controller: NelmioApiDocTestBundle:Test:jmsReturnNestedExtendOutput, _format: json }
|
|
|
|
|
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
|
2013-11-07 13:30:13 +01:00
|
|
|
defaults: { _controller: NelmioApiDocTestBundle:Test:zReturnJmsAndValidationOutput }
|
|
|
|
|
2013-10-11 16:18:02 +02:00
|
|
|
test_route_named_resource:
|
2015-04-30 15:34:19 +02:00
|
|
|
path: /named-resource
|
2013-10-11 16:18:02 +02:00
|
|
|
defaults: { _controller: NelmioApiDocTestBundle:Test:namedResource }
|
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
|
2013-12-05 00:05:47 +01:00
|
|
|
defaults: { _controller: NelmioApiDocTestBundle:Test:zReturnSelectedParsersOutput }
|
|
|
|
|
|
|
|
test_route_20:
|
2015-04-30 15:34:19 +02:00
|
|
|
path: /z-return-selected-parsers-input
|
2013-12-05 00:05:47 +01:00
|
|
|
defaults: { _controller: NelmioApiDocTestBundle:Test:zReturnSelectedParsersInput }
|
2014-01-16 13:42:37 +01:00
|
|
|
|
|
|
|
test_route_private:
|
2015-04-30 15:34:19 +02:00
|
|
|
path: /private
|
2014-01-16 13:42:37 +01:00
|
|
|
defaults: { _controller: NelmioApiDocTestBundle:Test:private }
|
|
|
|
|
|
|
|
test_route_exclusive:
|
2015-04-30 15:34:19 +02:00
|
|
|
path: /exclusive
|
2014-05-16 11:33:58 +02:00
|
|
|
defaults: { _controller: NelmioApiDocTestBundle:Test:exclusive }
|
2014-04-17 14:06:41 +02:00
|
|
|
|
|
|
|
test_route_21:
|
2015-04-30 15:34:19 +02:00
|
|
|
path: /z-action-with-constraint-requirements
|
|
|
|
methods: [GET]
|
2014-04-17 14:06:41 +02:00
|
|
|
defaults: { _controller: NelmioApiDocTestBundle:Test:zActionWithConstraintAsRequirements }
|
2014-06-18 11:50:26 +02:00
|
|
|
|
|
|
|
test_route_22:
|
2015-04-30 15:34:19 +02:00
|
|
|
path: /z-action-with-nullable-request-param
|
|
|
|
methods: [POST]
|
2014-06-18 11:50:26 +02:00
|
|
|
defaults: { _controller: NelmioApiDocTestBundle:Test:zActionWithNullableRequestParam }
|
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]
|
2014-06-17 17:05:00 -07:00
|
|
|
defaults: { _controller: NelmioApiDocTestBundle:Resource:listResources, _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]
|
2014-06-17 17:05:00 -07:00
|
|
|
defaults: { _controller: NelmioApiDocTestBundle:Resource:getResource, _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]
|
2014-06-17 17:05:00 -07:00
|
|
|
defaults: { _controller: NelmioApiDocTestBundle:Resource:deleteResource, _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]
|
2014-06-17 17:05:00 -07:00
|
|
|
defaults: { _controller: NelmioApiDocTestBundle:Resource:createResource, _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]
|
2014-06-17 17:05:00 -07:00
|
|
|
defaults: { _controller: NelmioApiDocTestBundle:Resource:listAnotherResources, _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]
|
2014-06-17 17:05:00 -07:00
|
|
|
defaults: { _controller: NelmioApiDocTestBundle:Resource:updateAnotherResource, _format: json }
|
|
|
|
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]
|
2014-08-28 00:12:34 +02:00
|
|
|
defaults: { _controller: NelmioApiDocTestBundle:Test:zCached }
|
|
|
|
|
|
|
|
test_route_24:
|
2015-04-30 15:34:19 +02:00
|
|
|
path: /zsecured
|
|
|
|
methods: [POST]
|
2014-08-28 00:12:34 +02:00
|
|
|
defaults: { _controller: NelmioApiDocTestBundle:Test:zSecured }
|
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]
|
2014-09-29 16:18:11 +02:00
|
|
|
defaults: { _controller: NelmioApiDocTestBundle:Resource:requiredParametersAction, _format: json }
|
|
|
|
requirements:
|
|
|
|
_format: json|xml|html
|
2014-12-12 16:13:55 +01:00
|
|
|
|
2014-09-29 16:18:11 +02:00
|
|
|
test_put_disables_required_parameters:
|
2015-04-30 15:34:19 +02:00
|
|
|
path: /api/other-resources/{id}.{_format}
|
|
|
|
methods: [PUT]
|
2014-09-29 16:18:11 +02:00
|
|
|
defaults: { _controller: NelmioApiDocTestBundle:Resource:requiredParametersAction, _format: json }
|
|
|
|
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]
|
2014-12-12 16:13:55 +01:00
|
|
|
defaults: { _controller: NelmioApiDocTestBundle:Test: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]
|
2015-06-02 12:01:10 +02:00
|
|
|
defaults: { _controller: NelmioApiDocTestBundle:Test:zActionWithArrayRequestParamAction }
|
2015-10-27 13:36:07 +01:00
|
|
|
|
|
|
|
test_route_27:
|
|
|
|
path: /api/overrride/properties
|
|
|
|
methods: [POST, PUT]
|
2015-11-10 01:51:26 +01:00
|
|
|
defaults: { _controller: NelmioApiDocTestBundle:Test:overrideJmsAnnotationWithApiDocPropertiesAction, _format: json }
|
|
|
|
|
|
|
|
test_route_28:
|
|
|
|
path: /route_with_host.{_format}
|
|
|
|
host: api.{domain}
|
|
|
|
methods: [GET]
|
|
|
|
requirements:
|
|
|
|
domain: "%domain_dev%|%domain_prod%"
|
|
|
|
defaults: { _controller: NelmioApiDocTestBundle:Test:routeWithHost, domain: "%domain_dev%", _format: json }
|
2016-01-08 13:04:25 +01:00
|
|
|
|
|
|
|
test_route_29:
|
|
|
|
path: /z-query-param-array-requirements
|
|
|
|
methods: [GET]
|
|
|
|
defaults: { _controller: NelmioApiDocTestBundle:Test:routeWithQueryParamArrayRequirementsAction }
|
2016-02-01 14:33:17 +03:00
|
|
|
|
|
|
|
test_route_30:
|
|
|
|
path: /z-query-param-plain-array-requirements
|
|
|
|
methods: [GET]
|
|
|
|
defaults: { _controller: NelmioApiDocTestBundle:Test:routeWithQueryParamPlainArrayRequirementsAction }
|