# \TemplateControllerApi

All URIs are relative to https://api.mailslurp.com

Method HTTP request Description
create_template Post /templates Create a Template
delete_template Delete /templates/{TemplateId} Delete Template
get_all_templates Get /templates/paginated Get all Templates in paginated format
get_template Get /templates/{TemplateId} Get Template
get_templates Get /templates Get all Templates

# create_template

crate::models::TemplateDto create_template(create_template_options) Create a Template

# Parameters

Name Type Description Required Notes
create_template_options CreateTemplateOptions createTemplateOptions [required]

# Return type

crate::models::TemplateDto

# Authorization

API_KEY

# HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

# delete_template

delete_template(template_id) Delete Template

# Parameters

Name Type Description Required Notes
template_id String TemplateId [required]

# Return type

(empty response body)

# Authorization

API_KEY

# HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

# get_all_templates

crate::models::PageTemplateProjection get_all_templates(page, size, sort) Get all Templates in paginated format

# Parameters

Name Type Description Required Notes
page Option<i32> Optional page index in inbox list pagination [default to 0]
size Option<i32> Optional page size in inbox list pagination [default to 20]
sort Option<String> Optional createdAt sort direction ASC or DESC [default to ASC]

# Return type

crate::models::PageTemplateProjection

# Authorization

API_KEY

# HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

# get_template

crate::models::TemplateDto get_template(template_id) Get Template

# Parameters

Name Type Description Required Notes
template_id String TemplateId [required]

# Return type

crate::models::TemplateDto

# Authorization

API_KEY

# HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

# get_templates

Veccrate::models::TemplateProjection get_templates() Get all Templates

# Parameters

This endpoint does not need any parameter.

# Return type

Veccrate::models::TemplateProjection

# Authorization

API_KEY

# HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]