1. Visit http://drupal.d8/api/doc
  2. Click any path link http://drupal.d8/api/doc/::rest::relation::node::page::path
  3. Error ... The website has encountered an error. Please try again later.

[Thu Jul 24 07:48:02 2014] [error] [client 127.0.0.1] Uncaught PHP Exception ReflectionException: "Class does not exist" at /Users/clemens/Sites/drupal/d8/www/modules/rest_api_doc/src/Controller/RestApiDocController.php line 159, referer: http://drupal.d8/api/doc

Comments

larowlan’s picture

Hi can you provide some detail about that end-point, its assuming that you're using a controller with _controller notation in the ClassName::Method format, it then reflects the class to get the doc-block.

  • larowlan committed 3abe802 on 8.x-1.x
    Issue #2308803 by larowlan: Fixed Exception on any /api/doc/ paths for...
larowlan’s picture

Status: Active » Fixed

Pushed fix to 8.x-1.x

Removed assumption that rest end-points are served by routes that use _controller notation.

Still interested in what controller defines that route/what the route-name is called.

Thinking it might be rest.{something} that isn't a REST end-point, ie is a normal Drupal route with _content.

clemens.tolboom’s picture

larowlan’s picture

OK will comment over there

Status: Fixed » Closed (fixed)

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