Time for action – creating an API to get all the recipes under a recipe type
Now we will create our next API, which is for exposing all the recipes under a recipe type:
- We will have a new view created in the same manner, but instead of selecting Taxonomy terms, we will be choosing contents of all type recipes.
- In the REST export settings, give the URL as
% sign acts as the wildcard, which will recipe type tid as the argument.
- In the views settings page, we configure the view just like we did it for the recipe type. The fields that ...