Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Represents entities as resources.
- *
- * @RestResource(
- * id = "entity",
- * label = @Translation("Entity"),
- * serialization_class = "DrupalCoreEntityEntity",
- * deriver = "DrupalrestPluginDeriverEntityDeriver",
- * uri_paths = {
- * "canonical" = "/entity/{entity_type}/{entity}",
- * "https://www.drupal.org/link-relations/create" = "/entity/{entity_type}"
- * }
- * )
- *
- * @see DrupalrestPluginDerivativeEntityDerivative
- */
- /**
- * Provides a resource for database intermed table entries.
- *
- * @RestResource(
- * id = "intermed",
- * label = @Translation("Intermed content entity standard methods"),
- * serialization_class = "DrupalintermedEntityIntermed",
- * uri_paths = {
- * "canonical" = "/intermed/{intermed}",
- * "http://drupal.org/link-relations/create" = "/entity/intermed"
- * }
- * )
- */
Add Comment
Please, Sign In to add comment