-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrouting.yml
56 lines (50 loc) · 1.8 KB
/
routing.yml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Thread
mibew_external_api_threads:
path: /external-api/v1/threads
defaults:
_controller: Mibew\Mibew\Plugin\ExternalApi\Controller\ThreadController::getThreadCollectionAction
methods: [GET]
mibew_external_api_thread:
path: /external-api/v1/threads/{thread_id}
defaults:
_controller: Mibew\Mibew\Plugin\ExternalApi\Controller\ThreadController::getThreadAction
methods: [GET]
requirements:
thread_id: \d{1,10}
mibew_external_api_thread_update:
path: /external-api/v1/threads/{thread_id}
defaults:
_controller: Mibew\Mibew\Plugin\ExternalApi\Controller\ThreadController::updateThreadAction
methods: [PUT]
requirements:
thread_id: \d{1,10}
# Thread's messages
mibew_external_api_messages:
path: /external-api/v1/threads/{thread_id}/messages
defaults:
_controller: Mibew\Mibew\Plugin\ExternalApi\Controller\MessageController::getMessageCollectionAction
methods: [GET]
requirements:
thread_id: \d{1,10}
mibew_external_api_message_create:
path: /external-api/v1/threads/{thread_id}/messages
defaults:
_controller: Mibew\Mibew\Plugin\ExternalApi\Controller\MessageController::postMessageAction
methods: [POST]
requirements:
thread_id: \d{1,10}
# Operators
mibew_external_api_operator_ping:
path: /external-api/v1/operators/{operator_id}/ping
defaults:
_controller: Mibew\Mibew\Plugin\ExternalApi\Controller\OperatorController::pingAction
methods: [POST]
requirements:
operator_id: \d{1,10}
mibew_external_api_operator_status:
path: /external-api/v1/operators/{operator_id}/status
defaults:
_controller: Mibew\Mibew\Plugin\ExternalApi\Controller\OperatorController::updateStatusAction
methods: [PUT]
requirements:
operator_id: \d{1,10}