-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Expand file tree
/
Copy pathrouting.mustache
More file actions
41 lines (39 loc) · 1 KB
/
routing.mustache
File metadata and controls
41 lines (39 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# NOTE: This file is auto generated by the openapi generator program.
# https://github.com/openapitools/openapi-generator
# Do not edit the class manually.
{{#apiInfo}}
{{#apis}}
{{#operations}}
# {{pathPrefix}}
{{#operation}}
{{bundleAlias}}_{{pathPrefix}}_{{operationIdLowerCase}}:
path: {{{path}}}
methods: [{{httpMethod}}]
defaults:
_controller: {{bundleAlias}}.controller.{{pathPrefix}}::{{operationId}}Action
{{#hasPathParams}}
requirements:
{{/hasPathParams}}
{{#pathParams}}
{{#pattern}}
{{paramName}}: '{{{pattern}}}'
{{/pattern}}
{{^pattern}}
{{#isLong}}
{{paramName}}: '\d+'
{{/isLong}}
{{#isInteger}}
{{paramName}}: '\d+'
{{/isInteger}}
{{#isString}}
{{paramName}}: '[a-z0-9]+'
{{/isString}}
{{#isBoolean}}
{{paramName}}: 'true|false'
{{/isBoolean}}
{{/pattern}}
{{/pathParams}}
{{/operation}}
{{/operations}}
{{/apis}}
{{/apiInfo}}