Should not list disabled REST resources

Created on 4 May 2023, over 1 year ago
Updated 15 May 2024, 7 months ago

Problem/Motivation

Thank you very much for this super cool module! I really enjoy it!

There's one thing I'm wondering about: OpenAPI UI lists all existing REST resources, even the disabled ones (disabled at /admin/config/services/rest). Typically many of the Drupal Core REST resources are disabled and should not be listed.

Can someone tell if that's a bug or feature or known or whatever?

I'd like to help fixing it but first I'd like to understand if nobody saw this before or it's a special condition in my case?
If some people think it's a feature, I'd suggest to add an option to switch it on / off, but I don't know why anyone would like to see disabled =unavailable resources that should be hidden?

Steps to reproduce

  • Disable resources at /admin/config/services/rest
  • Visit /admin/config/services/openapi/redoc/jsonapi and always see all existing resources despite their status

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇩🇪Germany Anybody Porta Westfalica

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024