Download OpenAPI specification:Download
Template service to simplify the way we define configuration for services such M2A Live or M2A Packager
It should provide flexibility to use all available AWS media services features such as media live with NO code changes
Service will allow you to upload and render jinja templates. The jinja and rendered templates will be stored and accessible by the api.
Template service to simplify the way we define configuration for services such M2A Live or M2A Packager
It should provide flexibility to use all available AWS media services features such as media live with NO code changes
Service will allow you to upload and render jinja templates. The jinja and rendered templates will be stored and accessible by the api.
This API will allow user to get a list of templates of an owner
owner required | string <uuid> Example: owner=7845419f-ca72-4cb1-b769-1bed5d8700b0 Target account ID |
filter[last_modified] | string <date-time> Example: filter[last_modified]=2023-06-14T14:00:00.000+00:00 "A datetime to filter the result. The result will contain templates updated at/after this datetime |
Accept required | string Example: application/vnd.api+json Content type (expressed as MIME types)the client is able to understand. |
{- "links": {
- "next": "/api/templates/v1/templates/?next=eyJwayI6IHsiUyI6ICIwOThjNzM0NC"
}, - "data": [
- {
- "type": "jinja",
- "id": "e0c82533-782a-43ef-b67b-ecaed6a19e74",
- "attributes": {
- "name": "Test Template",
- "description": "A description of the Template in question",
- "target-account-id": "5f34be55-2096-4c1b-b40f-7eb2bdc614dd",
- "metadata": {
- "labels": [
- {
- "key": "m2amedia.tv:label1",
- "value": "One label"
}, - {
- "key": "m2amedia.tv:label2",
- "value": "Another label"
}
]
}, - "created": "2021-05-19T10:45:05+00:00",
- "updated": "2021-05-19T10:45:05+00:00",
- "last-modified-by": "5f34be55-2096-4c1b-b40f-7eb2bdc614dd",
- "service": "MEDIALIVE_CHANNEL",
- "template": "TEMPLATE as a string"
}, - "relationships": {
- "owner": {
- "data": {
- "type": "target-account",
- "id": "5f34be55-2096-4c1b-b40f-7eb2bdc614dd"
}
}
}
}, - {
- "type": "jinja",
- "id": "e0c82533-782a-43ef-b67b-ecaed6a19e74",
- "attributes": {
- "name": "Test Template",
- "description": "A description of the Template in question",
- "target-account-id": "5f34be55-2096-4c1b-b40f-7eb2bdc614dd",
- "metadata": {
- "labels": [
- {
- "key": "m2amedia.tv:label1",
- "value": "One label"
}, - {
- "key": "m2amedia.tv:label2",
- "value": "Another label"
}
]
}, - "created": "2021-05-19T10:45:05+00:00",
- "updated": "2021-05-19T10:45:05+00:00",
- "last-modified-by": "5f34be55-2096-4c1b-b40f-7eb2bdc614dd",
- "service": "MEDIALIVE_CHANNEL",
- "template": "TEMPLATE as a string"
}, - "relationships": {
- "owner": {
- "data": {
- "type": "target-account",
- "id": "5f34be55-2096-4c1b-b40f-7eb2bdc614dd"
}
}
}
}
]
}
POST Template API will allow user to create a template.
Accept required | string Example: application/vnd.api+json Content type (expressed as MIME types)the client is able to understand. |
required | object description of a template |
{- "data": {
- "attributes": {
- "target-account-id": "625be0d2-b51a-4d43-8a45-81a6f6757a55",
- "metadata": {
- "labels": [
- {
- "key": "m2amedia.tv",
- "value": "test"
}
]
}, - "name": "Test Template",
- "service": "MEDIALIVE_CHANNEL",
- "template": "TEMPLATE as a string",
- "description": "A description of the Template in question"
}, - "relationships": {
- "owner": {
- "data": {
- "type": "target-account",
- "id": "625be0d2-b51a-4d43-8a45-81a6f6757a55"
}
}
}, - "type": "jinja"
}
}
{- "data": {
- "type": "jinja",
- "id": "e0c82533-782a-43ef-b67b-ecaed6a19e74",
- "attributes": {
- "name": "Test Template",
- "description": "A description of the Template in question",
- "target-account-id": "5f34be55-2096-4c1b-b40f-7eb2bdc614dd",
- "metadata": {
- "labels": [
- {
- "key": "m2amedia.tv:label1",
- "value": "One label"
}, - {
- "key": "m2amedia.tv:label2",
- "value": "Another label"
}
]
}, - "created": "2021-05-19T10:45:05+00:00",
- "updated": "2021-05-19T10:45:05+00:00",
- "last-modified-by": "5f34be55-2096-4c1b-b40f-7eb2bdc614dd",
- "service": "MEDIALIVE_CHANNEL",
- "template": "TEMPLATE as a string"
}, - "relationships": {
- "owner": {
- "data": {
- "type": "target-account",
- "id": "5f34be55-2096-4c1b-b40f-7eb2bdc614dd"
}
}
}
}
}
POST Render Template API will allow user to render a template.
Accept required | string Example: application/vnd.api+json Content type (expressed as MIME types)the client is able to understand. |
required | object Details of a rendered template |
{- "data": {
- "type": "rendered",
- "attributes": {
- "name": "Rendered Template",
- "description": "A description of the Rendered Template in question",
- "metadata": {
- "labels": [
- {
- "key": "m2amedia.tv:label1",
- "value": "One label"
}, - {
- "key": "m2amedia.tv:label2",
- "value": "Another label"
}
]
}, - "template-configuration": {
- "values": [
- {
- "name": "str",
- "value": "dict/list/str/int"
}
]
}
}, - "relationships": {
- "owner": {
- "data": {
- "type": "target-account",
- "id": "5f34be55-2096-4c1b-b40f-7eb2bdc614dd"
}
}, - "template": {
- "data": {
- "type": "template",
- "id": "template"
}
}
}
}
}
{- "data": {
- "type": "rendered",
- "id": "625be0d2-b51a-4d43-8a45-81a6f6757a55",
- "attributes": {
- "name": "Rendered Template",
- "description": "A description of the Rendered Template in question",
- "metadata": {
- "created": "2021-05-19T10:45:05+00:00",
- "updated": "2021-05-19T10:45:05+00:00",
- "labels": [
- {
- "key": "m2amedia.tv:label1",
- "value": "One label"
}, - {
- "key": "m2amedia.tv:label2",
- "value": "Another label"
}
]
}, - "rendered-template": "rendered template",
- "template-configuration": {
- "values": [
- {
- "name": "str",
- "value": "dict/list/str/int"
}
]
}, - "created": "2021-05-19T10:45:05+00:00",
- "last-modified": "2021-05-19T10:45:05+00:00",
- "last-modified-by": "5f34be55-2096-4c1b-b40f-7eb2bdc614dd"
}, - "relationships": {
- "owner": {
- "data": {
- "type": "target-account",
- "id": "5f34be55-2096-4c1b-b40f-7eb2bdc614dd"
}
}, - "template": {
- "data": {
- "type": "template",
- "id": "template"
}
}
}
}
}
GET Template API will allow user to get a specific template by it's ID
template_id required | string |
owner required | string <uuid> Example: owner=7845419f-ca72-4cb1-b769-1bed5d8700b0 Target account ID |
Accept required | string Example: application/vnd.api+json Content type (expressed as MIME types)the client is able to understand. |
{- "data": {
- "type": "jinja",
- "id": "e0c82533-782a-43ef-b67b-ecaed6a19e74",
- "attributes": {
- "name": "Test Template",
- "description": "A description of the Template in question",
- "target-account-id": "5f34be55-2096-4c1b-b40f-7eb2bdc614dd",
- "metadata": {
- "labels": [
- {
- "key": "m2amedia.tv:label1",
- "value": "One label"
}, - {
- "key": "m2amedia.tv:label2",
- "value": "Another label"
}
]
}, - "created": "2021-05-19T10:45:05+00:00",
- "updated": "2021-05-19T10:45:05+00:00",
- "last-modified-by": "5f34be55-2096-4c1b-b40f-7eb2bdc614dd",
- "service": "MEDIALIVE_CHANNEL",
- "template": "TEMPLATE as a string"
}, - "relationships": {
- "owner": {
- "data": {
- "type": "target-account",
- "id": "5f34be55-2096-4c1b-b40f-7eb2bdc614dd"
}
}
}
}
}
Delete Template API will allow user to remove/delete a specific template by it's ID
template_id required | string |
owner required | string <uuid> Example: owner=7845419f-ca72-4cb1-b769-1bed5d8700b0 Target account ID |
Accept required | string Example: application/vnd.api+json Content type (expressed as MIME types)the client is able to understand. |
{- "errors": [
- {
- "status": "400",
- "title": "Bad Request",
- "detail": "Missing parameter required: owner"
}
]
}
GET Render Template API will allow user to get a specific rendered template by it's ID
rendered_template_id required | string |
owner required | string <uuid> Example: owner=7845419f-ca72-4cb1-b769-1bed5d8700b0 Target account ID |
Accept required | string Example: application/vnd.api+json Content type (expressed as MIME types)the client is able to understand. |
{- "data": {
- "type": "rendered",
- "id": "625be0d2-b51a-4d43-8a45-81a6f6757a55",
- "attributes": {
- "name": "Rendered Template",
- "description": "A description of the Rendered Template in question",
- "metadata": {
- "created": "2021-05-19T10:45:05+00:00",
- "updated": "2021-05-19T10:45:05+00:00",
- "labels": [
- {
- "key": "m2amedia.tv:label1",
- "value": "One label"
}, - {
- "key": "m2amedia.tv:label2",
- "value": "Another label"
}
]
}, - "rendered-template": "rendered template",
- "template-configuration": {
- "values": [
- {
- "name": "str",
- "value": "dict/list/str/int"
}
]
}, - "created": "2021-05-19T10:45:05+00:00",
- "last-modified": "2021-05-19T10:45:05+00:00",
- "last-modified-by": "5f34be55-2096-4c1b-b40f-7eb2bdc614dd"
}, - "relationships": {
- "owner": {
- "data": {
- "type": "target-account",
- "id": "5f34be55-2096-4c1b-b40f-7eb2bdc614dd"
}
}, - "template": {
- "data": {
- "type": "template",
- "id": "template"
}
}
}
}
}
GET Template API will allow user to get a specific template by it's NAME
template_name required | string |
owner required | string <uuid> Example: owner=7845419f-ca72-4cb1-b769-1bed5d8700b0 Target account ID |
Accept required | string Example: application/vnd.api+json Content type (expressed as MIME types)the client is able to understand. |
{- "data": {
- "type": "jinja",
- "id": "e0c82533-782a-43ef-b67b-ecaed6a19e74",
- "attributes": {
- "name": "Test Template",
- "description": "A description of the Template in question",
- "target-account-id": "5f34be55-2096-4c1b-b40f-7eb2bdc614dd",
- "metadata": {
- "labels": [
- {
- "key": "m2amedia.tv:label1",
- "value": "One label"
}, - {
- "key": "m2amedia.tv:label2",
- "value": "Another label"
}
]
}, - "created": "2021-05-19T10:45:05+00:00",
- "updated": "2021-05-19T10:45:05+00:00",
- "last-modified-by": "5f34be55-2096-4c1b-b40f-7eb2bdc614dd",
- "service": "MEDIALIVE_CHANNEL",
- "template": "TEMPLATE as a string"
}, - "relationships": {
- "owner": {
- "data": {
- "type": "target-account",
- "id": "5f34be55-2096-4c1b-b40f-7eb2bdc614dd"
}
}
}
}
}