Create services like you create computed field

Events happening in the community are now at Drupal community events on www.drupal.org.
nekobul's picture

Hello Guys,

I have researched the services module and it is great. However if you want to implement your own services you have to build a new module and implement required functionality in it. I'm not sure if this idea was floated before, but what would say you if it is possible to implement services methods in a similar fashion like you implement computed fields with the computed field module. So when you need a new method, you have a web interface where you can copy-and-paste your method's code and then you can run the method. No need to deploy new modules.

Your feedback would be greatly appreciated.

Comments

You could do so

pieterdc's picture

Hey,

Sure you could create a web interface to make custom webservices development easier, such as Lullabot's future of form building with export functionality. So you could roughly copy-paste the generated code and do some final adjustments and testing yourself.

But I don't believe it would be handy to totally eliminate the need for seperate module as each webservice needs its own custom PHP code. You would have to save those pieces of code and all the related settings into the database...

Creating separate custom modules that plug into the services module seem better to me.
But I wouldn't mind better documentation, such as all the possible config options a method can define in the service .module file.
(I created a draft version of that documentation myself, today, in Dutch.. maybe I'll translate and share it, later on, when it's proven to be complete.)

Greetings,
Pieter
Jeugdwerknet.be employee

Services

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: