Go to /admin/config/services/rest
Enable any one of the rest options,
Disable the options after enabling
Enable the same the rest option again, it will not appear as enabled

Is anybody else also facing this issue

Comments

namit.garg created an issue. See original summary.

mettek’s picture

Same problem here!

JugglerX’s picture

Same problem.

I tried uninstalling the module, and reinstalling. But when I enable the resource in rest ui it does not enable.

I had to delete the config

drupal config:delete active "rest.resource.entity.node"

I then enabled the resource in rest ui, had to reconfigure it and it enabled.

phonkala’s picture

Can confirm, disabling some resource does not delete it from config and after trying to enable it again, you can edit the resource settings but it never gets enabled. Same thing in stable & dev versions (8.x.1.14 & 8.x.1.x-dev). Deleting the corresponding config settings (rest.resource.*) makes everything work again correctly.

clemens.tolboom’s picture

Version: 8.x-1.14 » 8.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new445 bytes

As we have disabled the config item its status == false;

Submitting the form we must make sure it becomes status == true.

wim leers’s picture

#2851126: The UI says "disable", but it's really "delete" fixed the "disable" functionality. Then #2831716: REST UI does not support "resource" granularity was committed, which broke it, by removing the ->enable() call. Bad rebase.

#5 works, but this is more elegant, and easier to maintain.

wim leers’s picture

Title: Rest configuration does not get enabled once we have disabled it » REST resource config entity is not re-enabled once it is disabled

  • Wim Leers authored 0c6dd4b on 8.x-1.x
    Issue #2878984 by Wim Leers, clemens.tolboom: REST resource config...
clemens.tolboom’s picture

wim leers’s picture

Status: Needs review » Fixed

D'oh, I totally lost track of that. I'll get that moving forward again. Expect a patch later today.

Status: Fixed » Closed (fixed)

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