Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Caterer Save Event Resource
- /caterer_api/eventsave:
- methods: POST
- formats: hal_json, json authentication: cookie
- /**
- * Provides a resource to get view modes by entity and bundle.
- *
- * @RestResource(
- * id = "caterer:eventsave",
- * label = @Translation("Caterer Save Event Resource"),
- * uri_paths = {
- * "canonical" = "/caterer_api/eventsave"
- * }
- * )
- *
- * Class EventSaveResource
- *
- * @package Drupalcaterer_apiPluginrestresource
- */
- class EventSaveResource extends ResourceBase {
- langcode: en
- status: true
- dependencies:
- module:
- - caterer_api
- - serialization
- - user
- - hal
- id: caterer.eventsave
- plugin_id: 'caterer:eventsave'
- granularity: resource
- configuration:
- methods:
- - POST
- formats:
- - json
- - hal_json
- authentication:
- - cookie
Add Comment
Please, Sign In to add comment