Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This project is not covered by Drupal’s security advisory policy.
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');
}
Project information
- Seeking co-maintainer(s)
Maintainers are looking for help reviewing issues. - Module categories: Content Editing Experience, Content Display
- Created by brynbellomy on , updated
- This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.