Guest User

Untitled

a guest
Apr 19th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. /**
  2. * Represents entities as resources.
  3. *
  4. * @RestResource(
  5. * id = "entity",
  6. * label = @Translation("Entity"),
  7. * serialization_class = "DrupalCoreEntityEntity",
  8. * deriver = "DrupalrestPluginDeriverEntityDeriver",
  9. * uri_paths = {
  10. * "canonical" = "/entity/{entity_type}/{entity}",
  11. * "https://www.drupal.org/link-relations/create" = "/entity/{entity_type}"
  12. * }
  13. * )
  14. *
  15. * @see DrupalrestPluginDerivativeEntityDerivative
  16. */
  17.  
  18. /**
  19. * Provides a resource for database intermed table entries.
  20. *
  21. * @RestResource(
  22. * id = "intermed",
  23. * label = @Translation("Intermed content entity standard methods"),
  24. * serialization_class = "DrupalintermedEntityIntermed",
  25. * uri_paths = {
  26. * "canonical" = "/intermed/{intermed}",
  27. * "http://drupal.org/link-relations/create" = "/entity/intermed"
  28. * }
  29. * )
  30. */
Add Comment
Please, Sign In to add comment