Guest User

Untitled

a guest
Jun 20th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. Caterer Save Event Resource
  2.  
  3. /caterer_api/eventsave:
  4.  
  5. methods: POST
  6. formats: hal_json, json authentication: cookie
  7.  
  8. /**
  9. * Provides a resource to get view modes by entity and bundle.
  10. *
  11. * @RestResource(
  12. * id = "caterer:eventsave",
  13. * label = @Translation("Caterer Save Event Resource"),
  14. * uri_paths = {
  15. * "canonical" = "/caterer_api/eventsave"
  16. * }
  17. * )
  18. *
  19. * Class EventSaveResource
  20. *
  21. * @package Drupalcaterer_apiPluginrestresource
  22. */
  23. class EventSaveResource extends ResourceBase {
  24.  
  25. langcode: en
  26. status: true
  27. dependencies:
  28. module:
  29. - caterer_api
  30. - serialization
  31. - user
  32. - hal
  33. id: caterer.eventsave
  34. plugin_id: 'caterer:eventsave'
  35. granularity: resource
  36. configuration:
  37. methods:
  38. - POST
  39. formats:
  40. - json
  41. - hal_json
  42. authentication:
  43. - cookie
Add Comment
Please, Sign In to add comment