2017 © Pedro Peláez
 

module zf-email-template-api

A rest api for handling email templates

image

interactive-solutions/zf-email-template-api

A rest api for handling email templates

  • Wednesday, December 6, 2017
  • by mac_nibblet
  • Repository
  • 3 Watchers
  • 0 Stars
  • 630 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 7 Versions
  • 1 % Grown

The README.md

Email template api

This project provides a rest api for Roave\EmailTemplates so that you can implement it in what ever backoffice your site is currently using., (*1)

Installation

Installation is supported via composer, (*2)

composer require interactive-solutions/zf-email-template-api, (*3)

Configuration

This package relies on Zf-Common\Zfc-Rbac to handle authorization of who can access the api, so to configure this project you need to update your ZfcRbac configuration with the permissions found in here, (*4)

namespace InteractiveSolutions\EmailTemplateApi;

final class TemplatePermissions
{
    const LIST   = 'interactive-solutions:email-template:list';
    const VIEW   = 'interactive-solutions:email-template:view';
    const UPDATE = 'interactive-solutions:email-template:update';
}

Endpoints

Collection: /interactive-solutions/email-templates, (*5)

Resource: /interactive-solutions/email-templates/:uuid, (*6)

Api body

{
    "id": "<string id>",
    "uuid": "6886a31a-8b7f-4e43-b90a-a9897ba2e845",
    "locale": "en-US",
    "description": null,
    "updateParameters": false,
    "subject": "Subject has not yet been set",
    "htmlBody": "This is the default message for the template with id: widerlov:evaluation:assigned,locale: en-US",
    "textBody": "This is the default message for the template with id: widerlov:evaluation:assigned,locale: en-US",
    "createdAt": "2016-07-30T15:00:13+0200",
    "updatedAt": "2016-07-30T15:00:13+0200",
    "parametersUpdatedAt": null
}

The Versions

06/12 2017

dev-master

9999999-dev

A rest api for handling email templates

  Sources   Download

MIT

The Requires

 

by Antoine Hedgecock

06/12 2017

1.1.0

1.1.0.0

A rest api for handling email templates

  Sources   Download

MIT

The Requires

 

by Antoine Hedgecock

03/02 2017

dev-inject-sorting

dev-inject-sorting

A rest api for handling email templates

  Sources   Download

MIT

The Requires

 

by Antoine Hedgecock

23/01 2017

1.0.2

1.0.2.0

A rest api for handling email templates

  Sources   Download

MIT

The Requires

 

by Antoine Hedgecock

23/01 2017

dev-bump-versions

dev-bump-versions

A rest api for handling email templates

  Sources   Download

MIT

The Requires

 

by Antoine Hedgecock

01/08 2016

1.0.1

1.0.1.0

A rest api for handling email templates

  Sources   Download

MIT

The Requires

 

by Antoine Hedgecock

01/08 2016

1.0.0

1.0.0.0

A rest api for handling email templates

  Sources   Download

MIT

The Requires

 

by Antoine Hedgecock