Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Access to a Drupal site via an HTTP API

Tags:

rest

api

drupal

I need to be able to edit nodes from a client outside of Drupal (this cant be implemented as a Drupal module). I'd like to find a module that exposes basic Drupal functionalities as an HTTP API (REST, SOAP, JSON, ...). I found the webservices module, but I cant find any documentation for it.

Do you know where I can find documentation for this module ? Or any other module providing the same kind of functionalities ?

like image 688
Guillaume Avatar asked Jul 27 '09 18:07

Guillaume


People also ask

Does Drupal have an API?

Drupal's Form API provides a unified way for authoring HTML input forms and handling form validation and submission.

Which API is used by Drupal CMS for handling field types?

Plugin API The Plugins API is used to extend Drupal and add new functionality, and allow modules to define new plugin types.

How do you call REST API in Drupal 8?

$client = \Drupal::httpClient(); $request = $client->post('http://demo.ckan.org/api/3/action/group_list', [ 'json' => [ 'id'=> 'data-explorer' ] ]); $response = json_decode($request->getBody()); Log in or register to post comments.


1 Answers

I would suggest checking out the services module. It's in a state of perpetual lack of full releases but it works pretty reliably for the most part. It comes built in with a number of services which hook into the normal Drupal functionality (node, users, menus, etc.)

With it you can either do API key style authentication, or you can just use normal Drupal user accounts. A number of other modules plug into it for different input and output format types.

There are quite a few examples of how to interact with services and there is also there services handbook which has some other reference material as well. I would suggest taking a lookg at it.

like image 196
codeincarnate Avatar answered Sep 23 '22 14:09

codeincarnate