We should allow variables to be set remotely via Aegir Services by implementing hook_services_resources(). For examples, see hosting_services.module.

Comments

colan created an issue. See original summary.

colan’s picture

The two API functions we'll need are:

Usually, for CRUD functionality, we'll be getting the vars and then setting them. We'll need to run these operations in a transaction to prevent the table from being written by another process in the middle.

  • colan committed 39a753e on issue-2796625
    Issue #2796625 by colan: Added Services hook to define resources.
    
  • colan committed 238e8e5 on issue-2796625
    Issue #2796625 by colan: Defined the Services resources we'll be...

  • colan committed 1919f01 on issue-2796625
    Issue #2796625 by colan: Included the file containing the callbacks.
    
  • colan committed 5d7ab5e on issue-2796625
    Issue #2796625 by colan: Added stubs for the Services callbacks.
    

  • colan committed 08f2afe on issue-2796625
    Issue #2796625 by colan: Fixed the data source parameters in the...
  • colan committed 3ef912c on issue-2796625
    Issue #2796625 by colan: Stop inserting empty variable lists into the DB...
  • colan committed 83654c4 on issue-2796625
    Issue #2796625 by colan: Moved the Services index definition to the top...
  • colan committed ce529a7 on issue-2796625
    Issue #2796625 by colan: Removed redundant comments for Clean Code....
  • colan committed ded3ec1 on issue-2796625
    Issue #2796625 by colan: Implemented the REST operations CREATE and...
  • colan committed f221fc2 on issue-2796625
    Issue #2796625 by colan: Started logging all remote requests.
    
colan’s picture

Status: Active » Fixed
Related issues: +#2808923: REST server fails on path ending in .xx

This is now done as per Working with REST Server, except for the fact that it's not possible to delete Drupal 8 configuration settings. This is because they contain a ".", which doesn't get though the REST server. It's caused by #2808923: REST server fails on path ending in .xx.

I'll try to get this fixed upstream, over there.

  • colan committed 08f2afe on 7.x-1.x
    Issue #2796625 by colan: Fixed the data source parameters in the...
  • colan committed 1919f01 on 7.x-1.x
    Issue #2796625 by colan: Included the file containing the callbacks.
    
  • colan committed 238e8e5 on 7.x-1.x
    Issue #2796625 by colan: Defined the Services resources we'll be...
  • colan committed 39a753e on 7.x-1.x
    Issue #2796625 by colan: Added Services hook to define resources.
    
  • colan committed 3ef912c on 7.x-1.x
    Issue #2796625 by colan: Stop inserting empty variable lists into the DB...
  • colan committed 5d7ab5e on 7.x-1.x
    Issue #2796625 by colan: Added stubs for the Services callbacks.
    
  • colan committed 83654c4 on 7.x-1.x
    Issue #2796625 by colan: Moved the Services index definition to the top...
  • colan committed b3b7b52 on 7.x-1.x
    Issue #2796625 by colan: Merge branch 'issue-2796625' into 7.x-1.x
    
  • colan committed ce529a7 on 7.x-1.x
    Issue #2796625 by colan: Removed redundant comments for Clean Code....
  • colan committed ded3ec1 on 7.x-1.x
    Issue #2796625 by colan: Implemented the REST operations CREATE and...
  • colan committed f221fc2 on 7.x-1.x
    Issue #2796625 by colan: Started logging all remote requests.
    

  • colan committed 0f3282b on 7.x-1.x
    Issue #2796625 by colan: Added Web Services documentation to the README.
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.