Walkthrough

Last updated on
30 May 2022
  1.  Install the module.
       > A couple of view modes named _Decoupled_ will be created on every compatible fieldable content entity type.
  2. (optional but recommended) enable Restful Web services modules, then the decoupled toolbox endpoints. If you don't enable rest you will be restricted on route features (permissions, authentification, formats etc...)
  3. Go to the view display edit of the fieldable content entity type of your choice, e.g. node, taxonomy terms.
  4. Go to the _Decoupled_ view mode.
  5. Select the fields you want to appear in the JSON output.
  6. Configure the formatters to suit your needs. Multiple formatters may be available on a same field type.
  7. Configure permissions to enable access to the decoupled route (**Access decoupled API**) and the entities.
  8. Access your decoupled data on this path (replace the placeholders):

/decoupled-api/{entity_type}/{bundle}/collection?offset=0&limit=10
 

Help improve this page

Page status: No known problems

You can: