Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Beskrivning
EmailSender är en tjänst för att skicka e-post, inklusive bilagor om så önskas.
Ändringslogg
Version 1.1 - 2024-01-16
Stöd för Message-ID, In-Reply-To & References headers har lagts till. Syftet med dessa är att stödja mejltrådar och följer standard enligt https://datatracker.ietf.org/doc/html/rfc5322.
Livscykelstatus
Produktion
Lösningsbeskrivning
Gliffy | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Hantering av personuppgifter
Inga personuppgifter hanteras i tjänsten.
API-specifikation
Expand | ||
---|---|---|
| ||
|
Open api | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| /
paths:
/send/email:
post:
tags:
- Email Resources
summary: Send an Email
operationId: sendMail
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/EmailRequest'
required: true
responses:
"200":
description: Successful Operation
"400":
description: Bad Request
content:
'*/*':
schema:
$ref: '#/components/schemas
| Problem'
"500":
description: Internal Server Error
content:
'*/*':
schema:
$ref: '#/components/schemas/Problem'
/
| :
get:
tags:
- API
summary: OpenAPI
operationId: getApiDocs
responses:
"200":
description: OK
content:
application/yaml:
schema:
type: string
x-auth-type: None
x-throttling-tier: Unlimited
x-wso2-mutual-ssl: Optional
security:
- ApiKeyAuth: []
components:
schemas:
Attachment:
type: object
properties:
content:
type: string
description: The attachment (file) content as a BASE64-encoded string
example: aGVsbG8gd29ybGQK
name:
type: string
description: The attachment filename
example: test.txt
contentType:
type: string
description: The attachment content type
example: text/plain
description: Attachments
EmailRequest:
required:
- emailAddress
- senderEmail
- senderName
- subject
type: object
properties:
emailAddress:
type: string
description: Recipient e-mail address
example: recipient@recipient.se
subject:
type: string
description: E-mail subject
message:
type: string
description: E-mail plain-text body
htmlMessage:
type: string
description: E-mail HTML body (BASE64-encoded)
senderName:
type: string
description: Sender name
senderEmail:
type: string
description: Sender e-mail address
example: sender@sender.se
attachments:
type: array
description: Attachments
items:
$ref: '#/components/schemas/Attachment'
Problem:
type: object
properties:
instance:
type: string
format: uri
type:
type: string
format: uri
parameters:
type: object
additionalProperties:
type: object
status:
$ref: '#/components/schemas/StatusType'
title:
type: string
detail:
type: string
StatusType:
type: object
properties:
statusCode:
type: integer
format: int32
reasonPhrase:
type: string
securitySchemes:
ApiKeyAuth:
type: apiKey
in: header
name: apikey
||||||||||||||||
Säkerhetsklassning
Säkerhetsklass 1
Autentiseringsmetod: Oauth2
Teknisk ägare
För tekniska frågor: teamdynasty@sundsvall.se
Källkod
<TBD>
FAQ
<FAQ>https://github.com/OpenSundsvall/api-service-email-sender