Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Its says
"We make the following assumptions about your usage of the Services module:
You are providing an API to a third party, which allows them to access your data via Services.
You would like to provide a page to API consumers that documents your API endpoints, resources, etc."
Service Documentation Overview page list all the endpoints even if there are no enabled resource for that endpoint. Also, it shows the endpoint name rather than endpoint path. This makes the API consumers confused.
I have created a patch which will do the following:
- Display a list of endpoints only if they have a resource documentation.
- Show endpoint paths rather than endpoint names.
- Display a count of available resource documentation.
Comment | File | Size | Author |
---|---|---|---|
#4 | service_documentation_count.patch | 871 bytes | Romisha |
Comments
Comment #2
Romisha CreditAttribution: Romisha commentedComment #3
Chris Charlton+1
Comment #4
Romisha CreditAttribution: Romisha commentedJust changing the diff file to a patch file.
Comment #5
Romisha CreditAttribution: Romisha commentedComment #6
jacob.embree CreditAttribution: jacob.embree at St. Louis Integration commentedWhen no documentation is enabled one or more PHP issues appear at /developers, depending on the version of PHP.
!empty()
should, perhaps, be used. Also, please use 2-space indenting.