MCPcopy Create free account
hub / github.com/Rello/analytics / getCapabilities

Method getCapabilities

lib/Capabilities.php:26–44  ·  view source on GitHub ↗

* Expose the endpoint to create a report from a csv file */

()

Source from the content-addressed store, hash-verified

24 * Expose the endpoint to create a report from a csv file
25 */
26 public function getCapabilities() {
27 return [
28 'client_integration' => [
29 Application::APP_ID => [
30 'version' => 0.1,
31 'context-menu' => [
32 [
33 'name' => $this->l10n->t('Visualize data in Analytics'),
34 'url' => '/ocs/v2.php/apps/analytics/createFromDataFile',
35 'method' => 'POST',
36 'mimetype_filters' => 'text/csv',
37 'params' => ['fileId' => '{fileId}'],
38 'icon' => $this->urlGenerator->imagePath('analytics', 'app-integration.svg'),
39 ],
40 ],
41 ],
42 ],
43 ];
44 }
45}

Callers

nothing calls this directly

Calls 2

tMethod · 0.45
imagePathMethod · 0.45

Tested by

no test coverage detected