How to create a vacation or end point for a taxonomy

I have a taxonomic dictionary that has the following terms: green red White

How do I make a calm presentation for an endpoint that returns this list as an array of entity data for each term?

+4
source share
1 answer

I think I have a solution for you:

The JSON API module creates an API server that implements the {json: api} specification . It has video tutorials and good documentation with examples.

I skipped a few steps in Filtering and tested the following.

Basic page Entity reference (field_color) , : Green, Red White.

, GET node, Red:

https://localhost/jsonapi/node/page?_format=json_api&filter[field_color.name][value]=Red

, .

+1

Source: https://habr.com/ru/post/1693549/


All Articles