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:

  1. Display a list of endpoints only if they have a resource documentation.
  2. Show endpoint paths rather than endpoint names.
  3. Display a count of available resource documentation.
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Romisha created an issue. See original summary.

Romisha’s picture

Issue summary: View changes
Chris Charlton’s picture

+1

Romisha’s picture

Just changing the diff file to a patch file.

Romisha’s picture

Assigned: Unassigned » Romisha
Status: Active » Needs review
jacob.embree’s picture

Version: 7.x-1.4 » 7.x-1.x-dev
Assigned: Romisha » Unassigned
Status: Needs review » Needs work

When no documentation is enabled one or more PHP issues appear at /developers, depending on the version of PHP.

Notice: Undefined index: docs in services_documentation_versions_overview_page() (line 17 of services_documentation/services_documentation.pages.inc).
Warning: count(): Parameter must be an array or an object that implements Countable in services_documentation_versions_overview_page() (line 17 of services_documentation/services_documentation.pages.inc).

!empty() should, perhaps, be used. Also, please use 2-space indenting.