Score:1

List of fields to put on a REST call

tk flag

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?

Score:0
tk flag

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

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.