RESTful-Drupal / restful

RESTful best practices for Drupal
https://drupal.org/project/restful
418 stars 173 forks source link

Invalid URL Path 404 #1036

Closed salientknight closed 6 years ago

salientknight commented 6 years ago

1)Installed Restful and dependencies as per

  1. Installing the RESTful module by Mateu Drupal: 7.59 Restless: Version: 7.x-2.16 All module updates run before starting project 1.5. ran patch but was informed that patch was already installed (assume it's been rolled in)

2)Followed Steps in the tutorial: 4. Writing the first resource by Mateu on YouTube

3)Examined code from the resrouce_example module.

4) Opened path /api/labels

5)Result Error Message

"type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.5", "title": "Invalid URL path.", "status": 404, "detail": "Not Found" }

Path to code: sites/all/modules/custom/restful_resources/src/Plugin/resources/entity/node/labels/Labels_1_0.php

Code: `<?php

/**

namespace Drupal\restful_resources/src/Plugin/resources/entity/node/labels;

/**

}` I also tried loading the example module and that also produces errors

Has anyone seen this? Is there a fix?

SOLVED There was a typo in the info file.