-
Notifications
You must be signed in to change notification settings - Fork 3
/
brapi.routing.yml
115 lines (102 loc) · 3.11 KB
/
brapi.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
brapi.main:
path: '/brapi'
defaults:
_controller: '\Drupal\brapi\Controller\BrapiController::mainPage'
_title: 'Plant Breeding API'
requirements:
_access: 'TRUE'
brapi.documentation:
path: '/brapi/doc'
defaults:
_controller: '\Drupal\brapi\Controller\BrapiController::documentationPage'
_title: 'Plant Breeding API Documentation'
requirements:
_access: 'TRUE'
brapi.token:
path: '/brapi/token'
defaults:
_controller: '\Drupal\brapi\Controller\BrapiController::tokenPage'
_title: 'Plant Breeding API user access token'
requirements:
_role: 'authenticated'
options:
no_cache: 'TRUE'
brapi.token.new:
path: '/brapi/token/new'
defaults:
_controller: '\Drupal\brapi\Controller\BrapiController::newTokenPage'
_title: 'Generate a new Plant Breeding API user access token'
requirements:
_role: 'authenticated'
options:
no_cache: 'TRUE'
brapi.token.expire:
path: '/brapi/token/expire'
defaults:
_controller: '\Drupal\brapi\Controller\BrapiController::expireTokenPage'
_title: 'Expires current Plant Breeding API user access token'
requirements:
_role: 'authenticated'
options:
no_cache: 'TRUE'
brapi.token.delete:
path: '/brapi/token/delete'
defaults:
_controller: '\Drupal\brapi\Controller\BrapiController::deleteTokenPage'
_title: 'Delete current Plant Breeding API user access token'
requirements:
_role: 'authenticated'
options:
no_cache: 'TRUE'
brapi.admin:
path: '/brapi/admin'
defaults:
_form: '\Drupal\brapi\Form\BrapiAdminForm'
_title: 'BrAPI Administration'
requirements:
_permission: 'administer site configuration,administer brapi'
brapi.datatypes:
path: '/brapi/admin/datatypes'
defaults:
_form: '\Drupal\brapi\Form\BrapiDataTypesForm'
_title: 'BrAPI Data Types Administration'
requirements:
_permission: 'administer site configuration,administer brapi'
entity.brapidatatype.list:
path: '/brapi/admin/datatypes/list'
defaults:
_entity_list: brapidatatype
_title: 'BrAPI Data Mapping'
requirements:
_permission: 'administer site configuration,administer brapi'
entity.brapidatatype.add_form:
path: '/brapi/admin/datatypes/add/{mapping_id}'
defaults:
_title: 'Add BrAPI Datatype Mapping'
_entity_form: brapidatatype.add
mapping_id: ''
requirements:
_entity_create_access: brapidatatype
entity.brapidatatype.edit_form:
path: '/brapi/admin/datatypes/manage/{brapidatatype}'
defaults:
_title: 'Edit BrAPI Datatype Mapping'
_entity_form: brapidatatype.edit
requirements:
_entity_access: brapidatatype.update
entity.brapidatatype.delete_form:
path: '/brapi/admin/datatypes/manage/{brapidatatype}/delete'
defaults:
_title: 'Delete BrAPI Datatype Mapping'
_entity_form: brapidatatype.delete
requirements:
_entity_access: brapidatatype.delete
brapi.calls:
path: '/brapi/admin/calls'
defaults:
_form: '\Drupal\brapi\Form\BrapiCallsForm'
_title: 'BrAPI Calls Administration'
requirements:
_permission: 'administer site configuration,administer brapi'
route_callbacks:
- '\Drupal\brapi\Routing\BrapiRoutes::routes'