I installed drupal 8 on my local server. I enabled all web services modules and installed rest ui module. I enabled some rest resources, such as entity/menu. Now, I need to know how to get correct routes for entities. For example, I tried to get main menu information by requesting http://localhost/mysite/entity/menu/main?_format=hal_json, but I received response 401. So, there is a way to get a list of available routes for my rest server?

  • 2
    It's probably overkill, but the OpenAPI module (and its add-ons) would get you that information. Plus allow you to test your APIs in the browser – Clive Aug 6 '18 at 19:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.