Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Beskrivning
API 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
Under utveckling.Produktion
Lösningsbeskrivning
Gliffy | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Hantering av personuppgifter
Inga personuppgifter hanteras i tjänsten.
API-specifikation
Swagger ui | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Open api | ||||||||||||||||||
| /
paths:
/send/email:
post:
tags:
- email-controller
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
(Ref: Säkerhetsklassning av APIer )
API-ägare
<Kontaktuppgifter till den verksamhet som äger APIets livscykel>
Teknisk ägare
https://sundsvall.atlassian.net/wiki/spaces/APIFör tekniska frågor: teamdynasty@sundsvall.se
Länkar
Sandbox - TBD