d8-contrib-modules / services Goto Github PK
View Code? Open in Web Editor NEWD8 module port of Services module
D8 module port of Services module
Pulled from project page.
@kylebrowning - not clear on scope of this or if this is an issue
All service-sponsored routes should be validated before returning a response. Perform the following tasks.
Rate limiting is something some people may need.
Research and implement
Wrap around all administrative pages
Warning: Invalid argument supplied for foreach() in Drupal\Core\Render\Element\Tableselect::valueCallback() (line 70 of core/lib/Drupal/Core/Render/Element/Tableselect.php). for the service_endpoint_add_form
Plugin Manager should work with the ServiceDefinition entity.
Research and implement
Clean Install drupal beta-14,
Enable Services.
Goto http://drupal-8-0-0-beta14.dd/admin/structure/service_api
And click Add Service API
Recoverable fatal error: Argument 1 passed to Drupal\services\Form\ServiceAPIForm::__construct() must be an instance of Drupal\services\Form\PluginManagerInterface, instance of Drupal\services\ServiceDefinitionPluginManager given, called in /Users/kylebrowning/Sites/devdesktop/drupal-8.0.0-beta14/modules/services/src/Form/ServiceAPIForm.php on line 28 and defined in Drupal\services\Form\ServiceAPIForm->__construct() (line 31 of /Users/kylebrowning/Sites/devdesktop/drupal-8.0.0-beta14/modules/services/src/Form/ServiceAPIForm.php).
CC: @kylebrowning for feedback / ideas
Research and implement
Use Drupal Console to create the Service Instance entity
Add the following fields to the ServiceInstance entity / form / entity schema
Add functions to Service Instance entity class
Research and propose implementation
2.a. Each "row" should be one argument from the Service Definition getArguments
2.b. A checkbox to identify if argument is required
2.c. A dropdown to identify the expected location from the Request object (http://api.symfony.com/2.0/Symfony/Component/HttpFoundation/Request.html)
Add in support for whitelisting/blacklisting an API.
WE need to be able to support version incase things change we don't want to break clients.
These are the current docs in D7
<?php
/**
* @file
* Explains how to use versions
*/
/*
* All functions that want to be considered for updates need to use a specific naming convention
* We took the same approach as the standard Drupal hook_update methods. The pattern of update functions is
* _{RESOURCE_NAME}_resource_{METHOD_NAME}_update_{MAJOR_VERSION}_{MINOR_VERSION}
* @see services_get_updates() for exact regular expression used.
*
* For clients that want to request a specific version they need to pass a certain header
* services_RESOURCE_METHOD_version = version
* as an example, services_system_set_variable_version = 1.2
* @see ServicesVersionTests for code examples
*
* Services by default will always use the original resource shipped
* with services. If you wish to change this you can go to the resource page,
* and select an api version for the specific resource. The version option will
* only be enabled if version changes exist.
*/
function _system_resource_set_variable_update_1_1() {
$new_set = array(
'help' => 'Create a node with an nid test',
);
return $new_set;
}
function _system_resource_set_variable_update_1_2() {
$new_set = array(
'help' => 'Create a node with an nid optional prams.',
'args' => array(
array(
'name' => 'name',
'optional' => TRUE,
'source' => array('data' => 'name'),
'description' => t('The name of the variable to set.'),
'type' => 'string',
),
array(
'name' => 'value',
'optional' => TRUE,
'source' => array('data' => 'value'),
'description' => t('The value to set.'),
'type' => 'string',
),
),
);
return $new_set;
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.