Score:0

Possible to add end points using REST UI module?

us flag
jfc

I'm using the REST UI module with Drupal 9 with a view. Right now I have my default path which is /api/directory, and this has the fields I want in the API, for example title.

Is it possible to create an endpoint such as /api/directory?title=""

So that way instead of loading all the data on my site, I can only load what is necessary?

Score:0
cn flag

Yes, you can create custom REST endpoints, but not with the REST UI module; you need to write your own code and put it in a custom module.

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.