Open zspadar opened 7 years ago
Email templates
Create an endpoint for storing email templates that can perform full CRUD operations. An email temlate response should look like this:
{ "links": { "self": "https://your-hostname.com/api/emails/1" } "data": { "type": "emails", "id": "1", "attributes": { "fields": ["name", "token"], "name": "Register" } }, "relationships": { "reviews": { "links": { "self": "https://your-hostname/api/emails/1/relationships/templates", "related": "https://your-hostname/api/emails/1/templates" } }, "data": [ { "type": "templates", "id": "1" } { "type": "templates", "id": "2" } ] }, "included": [{ "type": "templates", "id": "1", "attributes": { "language": "en", "text": "Hi ${name}, here is your token: ${token}" } }, { "type": "reviews", "id": "2", "attributes": { "language": "en", "text": "Szervusz ${name}, itt a tokened: ${token}" } }] }
Email templates
Create an endpoint for storing email templates that can perform full CRUD operations. An email temlate response should look like this:
{ "links": { "self": "https://your-hostname.com/api/emails/1" } "data": { "type": "emails", "id": "1", "attributes": { "fields": ["name", "token"], "name": "Register" } }, "relationships": { "reviews": { "links": { "self": "https://your-hostname/api/emails/1/relationships/templates", "related": "https://your-hostname/api/emails/1/templates" } }, "data": [ { "type": "templates", "id": "1" } { "type": "templates", "id": "2" } ] }, "included": [{ "type": "templates", "id": "1", "attributes": { "language": "en", "text": "Hi ${name}, here is your token: ${token}" } }, { "type": "reviews", "id": "2", "attributes": { "language": "en", "text": "Szervusz ${name}, itt a tokened: ${token}" } }] }