1

I have a rest resource configured from Rest UI page (let's say /entity/user: POST); I would like to share the endpoint with others devs so they can call the API (create users for e.g.). Where to get the list of fields to put on request body? also their structure (value or target_id..)?

Do you know a contrib module like this one that did the job for D7? https://www.drupal.org/project/rest_api_doc

Is there any programmatic practical way to have that? an API call or a drush command?

1 Answer 1

0

I have discovered the module named OpenApi which provides a rest resource to describe the activated rest (and json) resources. It can be combined with two other modules OpenApi UI and ReDoc to have a nice user interface.

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.