Comments

dawehner created an issue. See original summary.

Anonymous’s picture

Permissions really need care! Looks very interesting⭐

dawehner’s picture

The page could not be found or you don't have permission to view it.

Done.

I link to those examples, just to see how it could look like

otherwise error, that implementsHook() expects two parameters.

Let's focus on the general meta issue here. Feel free to add issue on the repo itself ? Maybe we could also create dedicated subissues.

Anonymous’s picture

Many thanks! I have edited my message to avoid unnecessary noise in META (sorry).

wim leers’s picture

Title: [Meta] Random missing APIs » List of missing APIs
Category: Task » Plan
Issue summary: View changes

I looked at all existing feature request issues filed against rest.module and added them here.

dawehner’s picture

Issue summary: View changes
wim leers’s picture

Issue summary: View changes
wim leers’s picture

Issue summary: View changes
wim leers’s picture

Issue summary: View changes
webchick’s picture

Issue tags: +JavaScript
wim leers’s picture

Issue tags: +API-First Initiative

Why tag this JavaScript? Because it blocks certain JavaScript issues?

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.0-alpha1 will be released the week of January 17, 2018, which means new developments and disruptive changes should now be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

webchick’s picture

Uh. Good question, I can't remember. :D I think because it was related to the JavaScript Modernization initiative.

dawehner’s picture

Issue summary: View changes

I added an issue for a permissions resource: #2947605: Add a user permissions resource

dawehner’s picture

Issue summary: View changes

I added an issue about simple config support.

mrjmd’s picture

Issue summary: View changes

Just fixing a typo, nothing to see here.

gabesullice’s picture

Other things we might add:

  • State API - This would let you put a site in maintenance mode
  • UserData - This is what stores whether the user contact form is enabled or not
  • Cache rebuild

Thoughts?

dawehner’s picture

@gabesullice +1
Let's collect things in the issue summary

gabesullice’s picture

Issue summary: View changes
dawehner’s picture

Issue summary: View changes

We might need a way to expose the menu tree for the admin toolbar: https://github.com/jsdrupal/drupal-admin-ui/pull/23 shows an example of how this could look like.

gabesullice’s picture

What about hook_help content?

gabesullice’s picture

For those interested in implementing non-RESTful APIs for core Drupal services (like clearing cache, rebuilding the router, enabling maintenance mode etc), I'd like to encourage you to submit patches to the JSON-RPC module. Specifically, please take a look at the jsonrpc_core submodule and implement service plugins there.

rogierbom’s picture

I've created an issue in the JSON RPC issue queue for adding the maintenance page method: https://www.drupal.org/project/jsonrpc/issues/2983907

Version: 8.6.x-dev » 8.7.x-dev

Drupal 8.6.0-alpha1 will be released the week of July 16, 2018, which means new developments and disruptive changes should now be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.7.x-dev » 8.8.x-dev

Drupal 8.7.0-alpha1 will be released the week of March 11, 2019, which means new developments and disruptive changes should now be targeted against the 8.8.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

dshumaker’s picture

Would it be safe to say that in terms of site maintenance and missing apis, that everything drush does should be converted to a rest api? Thus paving the way for drush to make it into core and sort of merge with drupal console. This eventually would essentially make drush & console a just rest script runner (a fancy postman). I'm thinking drupal could (should) have an rest api right out of the box that looks something like https://cloudapi-docs.acquia.com/ (ie. swagger formatted)..

gabesullice’s picture

Would it be safe to say that in terms of site maintenance and missing apis, that everything drush does should be converted to a rest api?

@dshumaker, I think we're on the same page. I don't want to make a statement about how the Drush or Drupal Console projects should evolve, but I'm really excited about the idea that Drupal could have an API that supports remote administration over HTTP. That's be essential for a decoupled admin UI, but also fleet management of large Drupal deployments (like many universities have) and new developer tooling.

geerlingguy’s picture

Issue tags: +containers, +kubernetes

@gabesullice - That's a really good point. If Drupal could be administered via HTTP (much like most any 'cloud native' app), it would make it a lot easier to deploy and manage in environments using Docker and/or Kubernetes (and similar tech) since you wouldn't need to wire up sidecar containers or supplementary containers just to do things like run cron, clear caches, change a setting, run an upgrade, etc.

e0ipso’s picture

@dshumaker @geerlingguy, we have been toying with the idea to create JSON-RPC commands from the drush 9 annotated commands. We would prefer to have it the other way around, where we craft the HTTP tool (with its access checks, authentication, …) and the CLI tools are a wrapper on top of them. However we understand that the drush team is far ahead of us and their agenda may be different.

Maybe we could have some (more) of those critical JSON-RPC commands listed here and start modestly from those.

gabesullice’s picture

@geerlingguy: that's just the kind of new thinking that makes me most excited about this issue/idea :)

@e0ipso, I already started that list in the JSON-RPC issue queue :D

#3073669: [META] Add methods to perform common core administrative actions

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.0-alpha1 will be released the week of October 14th, 2019, which means new developments and disruptive changes should now be targeted against the 8.9.x-dev branch. (Any changes to 8.9.x will also be committed to 9.0.x in preparation for Drupal 9’s release, but some changes like significant feature additions will be deferred to 9.1.x.). For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.9.x-dev » 9.1.x-dev

Drupal 8.9.0-beta1 was released on March 20, 2020. 8.9.x is the final, long-term support (LTS) minor release of Drupal 8, which means new developments and disruptive changes should now be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 9.1.x-dev » 9.2.x-dev

Drupal 9.1.0-alpha1 will be released the week of October 19, 2020, which means new developments and disruptive changes should now be targeted for the 9.2.x-dev branch. For more information see the Drupal 9 minor version schedule and the Allowed changes during the Drupal 9 release cycle.

Version: 9.2.x-dev » 9.3.x-dev

Drupal 9.2.0-alpha1 will be released the week of May 3, 2021, which means new developments and disruptive changes should now be targeted for the 9.3.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

jasonawant’s picture

Issue tags: -JavaScript +JavaScript

Do task links provided by LocalTaskManager class need to be provided as a separate API or are these links provided somewhere else?

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.