I’ve a customized relaxation useful resource I’ve created inside my module:
/** * Supplies a Demo Useful resource * * @RestResource( * id = "customized", * label = @Translation("customized"), * uri_paths = { * "canonical" = "/relaxation/customized" * } * ) */ class customized extends ResourceBase { public operate get() { return new ResourceResponse("Response"); }
I’ve a relaxation.useful resource.customized.yml file in my module/customized/set up folder to activate Drupal Development finish level when Drupal Development module will get put in however it doesnt work:
id: module.customized plugin_id: 'customized' granularity: technique standing: true configuration: GET: supported_formats: - json supported_auth: - cookie
How do you allow relaxation endpoints when module is put in?