Data Services
Categories
Component ID
1116240
Component name
Data Services
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Downloads
345
Component created
Component changed
Component body
Data Services allows administrators to very quickly and easily expose any table in the current database as a Service. Tables can be queried for information via a simple syntax.
To list all data:/my-endpoint/my_db_table.json
To search for data by the table's primary key:/my-endpoint/my_db_table/38.json
To search for data using explicit field values:/my-endpoint/my_db_table/field1:39,field2:something,field3:778899.json
Co-maintainers wanted!
To expose tables, simply implement hook_data_services_tables() in a module:
/**
* Implementation of hook_data_services_tables().
*/
function my_helper_module_data_services_tables() {
return array('some_table', 'some_other_table', 'another_table');
}