WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 8daeb31

Browse files
authored
Migrate rest routing to symfony routing (#413)
1 parent bf62a68 commit 8daeb31

File tree

2 files changed

+88
-0
lines changed

2 files changed

+88
-0
lines changed

Resources/config/routing_api.yaml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
sulu_form.get_lists_fields:
2+
path: '/form/lists/fields.{_format}'
3+
methods: GET
4+
controller: 'sulu_form.list_controller::cgetFieldsAction'
5+
format: json
6+
requirements: { _format: json|csv }
7+
8+
sulu_form.get_lists:
9+
path: '/form/lists.{_format}'
10+
methods: GET
11+
controller: 'sulu_form.list_controller::cgetAction'
12+
format: json
13+
requirements: { _format: json|csv }
14+
15+
sulu_form.get_forms:
16+
path: '/forms.{_format}'
17+
methods: GET
18+
controller: 'sulu_form.form_controller::cgetAction'
19+
format: json
20+
requirements: { _format: json|csv }
21+
22+
sulu_form.get_form:
23+
path: '/forms/{id}.{_format}'
24+
methods: GET
25+
controller: 'sulu_form.form_controller::getAction'
26+
format: json
27+
requirements: { _format: json|csv }
28+
29+
sulu_form.post_form:
30+
path: '/forms.{_format}'
31+
methods: POST
32+
controller: 'sulu_form.form_controller::postAction'
33+
format: json
34+
requirements: { _format: json|csv }
35+
36+
sulu_form.put_form:
37+
path: '/forms/{id}.{_format}'
38+
methods: PUT
39+
controller: 'sulu_form.form_controller::putAction'
40+
format: json
41+
requirements: { _format: json|csv }
42+
43+
sulu_form.delete_form:
44+
path: '/forms/{id}.{_format}'
45+
methods: DELETE
46+
controller: 'sulu_form.form_controller::deleteAction'
47+
format: json
48+
requirements: { _format: json|csv }
49+
50+
sulu_form.post_form_trigger:
51+
path: '/forms/{id}.{_format}'
52+
methods: POST
53+
controller: 'sulu_form.form_controller::postTriggerAction'
54+
format: json
55+
requirements: { _format: json|csv }
56+
57+
sulu_form.get_dynamics:
58+
path: '/form/dynamics.{_format}'
59+
methods: GET
60+
controller: 'sulu_form.dynamic_controller::cgetAction'
61+
format: json
62+
requirements: { _format: json|csv }
63+
64+
sulu_form.delete_dynamic:
65+
path: '/form/dynamics/{id}.{_format}'
66+
methods: DELETE
67+
controller: 'sulu_form.dynamic_controller::deleteAction'
68+
format: json
69+
requirements: { _format: json|csv }

UPGRADE.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
# Upgrade
22

3+
## 2.5.9
4+
5+
### Deprecate usage of fos rest routing
6+
7+
We are no longer considering the [fos rest routing](https://github.com/handcraftedinthealps/RestRoutingBundle) as a best practice.
8+
All bundles should use the Symfony routing system instead.
9+
10+
Inside your `config/routes/sulu_admin.yaml` you can remove the fos rest routing configuration.
11+
First, remove all instances of `type: rest` and also replace `.yml` with `.yaml`:
12+
13+
```diff
14+
# config/routes/sulu_admin.yaml`
15+
sulu_form_api:
16+
- type: rest
17+
- resource: "@SuluFormBundle/Resources/config/routing_api.yml"
18+
+ resource: "@SuluFormBundle/Resources/config/routing_api.yaml"
19+
prefix: /admin/api
20+
```
21+
322
## 2.5.3
423

524
### Deprecate attribute max on AttachmentType

0 commit comments

Comments
 (0)