File tree 2 files changed +3
-3
lines changed
templates/bake/element/Controller
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 26
26
{% set IdProperty = OpenApiDocBlock.schemaProperty (propertySchema , ' id' ) %}
27
27
#[OA\Put(
28
28
{% if prefix %}
29
- path: '/{{ OpenApiText.prefixToPath (prefix ) }}/{{ OpenApiText.underscore (pluralName ) }}/edit .json',
29
+ path: '/{{ OpenApiText.prefixToPath (prefix ) }}/{{ OpenApiText.underscore (pluralName ) }}/{id} .json',
30
30
{% else %}
31
- path: '/{{ pluralName }}/edit .json',
31
+ path: '/{{ pluralName }}/{id} .json',
32
32
{% endif %}
33
33
summary: 'Edit {{ singularName }}',
34
34
description: 'Edit {{ singularName }}',
Original file line number Diff line number Diff line change 33
33
{% if prefix %}
34
34
path: "/{{ OpenApiText.prefixToPath (prefix ) }}/{{ OpenApiText.underscore (pluralName ) }}/{id}.json",
35
35
{% else %}
36
- path: "/{{ pluralName }}.json",
36
+ path: "/{{ pluralName }}/{id} .json",
37
37
{% endif %}
38
38
summary: "Get {{ singularHumanName }}",
39
39
description: "Get {{ singularHumanName }}",
You can’t perform that action at this time.
0 commit comments