ra

Component ID

2789099

Component name

ra

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

Module ra provides integration with Rapid API framework.

Rapid API for Drupal

  • Implementation Rapid API
  • Implementation RaConfig for Drupal 8
  • Implementation Database CRUD operations
  • Sub-module ra_docs for documentation view and interact
  • Implementation command for drupal console

Install

  • Install composer dependencies: composer install

Drupal console commands

  • Generate plugin RaDatatype - drupal generate:plugin:ra:datatype
  • Generate plugin RaDefinition - drupal generate:plugin:ra:definition
  • Generate plugin RaFormat - drupal generate:plugin:ra:format

Basic usage

// Method name
$method_name = 'ra.version';

// Method params
$params = ['field' => 'engine'];

// EmerapRaCoreMethod instance
$method = RaConfig::instanceMethod($method_name, $params);

// Call api method
$result = RaConfig::instanceRa->call();

// Get method response
$response = $result->format();

Links

Copyright © 2016 [ [Pokhodyun Alexander](https://vk.com/karbunkul)]