mirror of
https://github.com/makayabou/asg-server.git
synced 2026-05-02 17:43:36 +02:00
[docs] update data docs
This commit is contained in:
parent
4da289ff57
commit
99f6bd23cb
@ -22,12 +22,13 @@ This server acts as the backend component of the [SMS Gateway for Android](https
|
|||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
- **SMS Messaging**: Dispatch SMS messages through a RESTful API.
|
- **SMS Messaging**: Dispatch SMS and data messages through a RESTful API.
|
||||||
- **Message Status**: Retrieve status for sent messages.
|
- **Message Status**: Retrieve status for sent messages.
|
||||||
- **Device Management**: View information about connected Android devices.
|
- **Device Management**: View information about connected Android devices.
|
||||||
- **Webhooks**: Configure webhooks for event-driven notifications.
|
- **Webhooks**: Configure webhooks for event-driven notifications.
|
||||||
- **Health Monitoring**: Access health check endpoints to ensure system integrity.
|
- **Health Monitoring**: Access health check endpoints to ensure system integrity.
|
||||||
- **Access Control**: Operate in either public mode for open access or private mode for restricted access.
|
- **Access Control**: Operate in either public mode for open access or private mode for restricted access.
|
||||||
|
- **Data SMS Support**: Send/receive binary payloads via SMS with Base64 encoding and port-based routing.
|
||||||
|
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
|
||||||
|
|||||||
@ -1401,10 +1401,17 @@
|
|||||||
"smsgateway.Message": {
|
"smsgateway.Message": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
"required": [
|
||||||
"message",
|
|
||||||
"phoneNumbers"
|
"phoneNumbers"
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"dataMessage": {
|
||||||
|
"description": "Data message",
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/definitions/smsgateway.DataMessage"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
"id": {
|
"id": {
|
||||||
"description": "ID (if not set - will be generated)",
|
"description": "ID (if not set - will be generated)",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@ -1417,7 +1424,7 @@
|
|||||||
"example": true
|
"example": true
|
||||||
},
|
},
|
||||||
"message": {
|
"message": {
|
||||||
"description": "Content",
|
"description": "Message content\nDeprecated: use TextMessage instead",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"maxLength": 65535,
|
"maxLength": 65535,
|
||||||
"example": "Hello World!"
|
"example": "Hello World!"
|
||||||
@ -1452,6 +1459,14 @@
|
|||||||
"maximum": 3,
|
"maximum": 3,
|
||||||
"example": 1
|
"example": 1
|
||||||
},
|
},
|
||||||
|
"textMessage": {
|
||||||
|
"description": "Text message",
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/definitions/smsgateway.TextMessage"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
"ttl": {
|
"ttl": {
|
||||||
"description": "Time to live in seconds (conflicts with `validUntil`)",
|
"description": "Time to live in seconds (conflicts with `validUntil`)",
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
@ -1603,7 +1618,6 @@
|
|||||||
"smsgateway.MobileMessage": {
|
"smsgateway.MobileMessage": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
"required": [
|
||||||
"message",
|
|
||||||
"phoneNumbers"
|
"phoneNumbers"
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
@ -1612,6 +1626,14 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"example": "2020-01-01T00:00:00Z"
|
"example": "2020-01-01T00:00:00Z"
|
||||||
},
|
},
|
||||||
|
"dataMessage": {
|
||||||
|
"description": "Data message",
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/definitions/smsgateway.DataMessage"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
"id": {
|
"id": {
|
||||||
"description": "ID (if not set - will be generated)",
|
"description": "ID (if not set - will be generated)",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@ -1624,7 +1646,7 @@
|
|||||||
"example": true
|
"example": true
|
||||||
},
|
},
|
||||||
"message": {
|
"message": {
|
||||||
"description": "Content",
|
"description": "Message content\nDeprecated: use TextMessage instead",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"maxLength": 65535,
|
"maxLength": 65535,
|
||||||
"example": "Hello World!"
|
"example": "Hello World!"
|
||||||
@ -1659,6 +1681,14 @@
|
|||||||
"maximum": 3,
|
"maximum": 3,
|
||||||
"example": 1
|
"example": 1
|
||||||
},
|
},
|
||||||
|
"textMessage": {
|
||||||
|
"description": "Text message",
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/definitions/smsgateway.TextMessage"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
"ttl": {
|
"ttl": {
|
||||||
"description": "Time to live in seconds (conflicts with `validUntil`)",
|
"description": "Time to live in seconds (conflicts with `validUntil`)",
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
@ -2021,6 +2051,7 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"sms:received",
|
"sms:received",
|
||||||
|
"sms:data-received",
|
||||||
"sms:sent",
|
"sms:sent",
|
||||||
"sms:delivered",
|
"sms:delivered",
|
||||||
"sms:failed",
|
"sms:failed",
|
||||||
@ -2028,6 +2059,7 @@
|
|||||||
],
|
],
|
||||||
"x-enum-varnames": [
|
"x-enum-varnames": [
|
||||||
"WebhookEventSmsReceived",
|
"WebhookEventSmsReceived",
|
||||||
|
"WebhookEventSmsDataReceived",
|
||||||
"WebhookEventSmsSent",
|
"WebhookEventSmsSent",
|
||||||
"WebhookEventSmsDelivered",
|
"WebhookEventSmsDelivered",
|
||||||
"WebhookEventSmsFailed",
|
"WebhookEventSmsFailed",
|
||||||
|
|||||||
@ -187,6 +187,10 @@ definitions:
|
|||||||
- LogEntryPriorityError
|
- LogEntryPriorityError
|
||||||
smsgateway.Message:
|
smsgateway.Message:
|
||||||
properties:
|
properties:
|
||||||
|
dataMessage:
|
||||||
|
allOf:
|
||||||
|
- $ref: "#/definitions/smsgateway.DataMessage"
|
||||||
|
description: Data message
|
||||||
id:
|
id:
|
||||||
description: ID (if not set - will be generated)
|
description: ID (if not set - will be generated)
|
||||||
example: PyDmBQZZXYmyxMwED8Fzy
|
example: PyDmBQZZXYmyxMwED8Fzy
|
||||||
@ -197,7 +201,9 @@ definitions:
|
|||||||
example: true
|
example: true
|
||||||
type: boolean
|
type: boolean
|
||||||
message:
|
message:
|
||||||
description: Content
|
description: |-
|
||||||
|
Message content
|
||||||
|
Deprecated: use TextMessage instead
|
||||||
example: Hello World!
|
example: Hello World!
|
||||||
maxLength: 65535
|
maxLength: 65535
|
||||||
type: string
|
type: string
|
||||||
@ -225,6 +231,10 @@ definitions:
|
|||||||
example: 1
|
example: 1
|
||||||
maximum: 3
|
maximum: 3
|
||||||
type: integer
|
type: integer
|
||||||
|
textMessage:
|
||||||
|
allOf:
|
||||||
|
- $ref: "#/definitions/smsgateway.TextMessage"
|
||||||
|
description: Text message
|
||||||
ttl:
|
ttl:
|
||||||
description: Time to live in seconds (conflicts with `validUntil`)
|
description: Time to live in seconds (conflicts with `validUntil`)
|
||||||
example: 86400
|
example: 86400
|
||||||
@ -239,7 +249,6 @@ definitions:
|
|||||||
example: true
|
example: true
|
||||||
type: boolean
|
type: boolean
|
||||||
required:
|
required:
|
||||||
- message
|
|
||||||
- phoneNumbers
|
- phoneNumbers
|
||||||
type: object
|
type: object
|
||||||
smsgateway.MessagePriority:
|
smsgateway.MessagePriority:
|
||||||
@ -344,6 +353,10 @@ definitions:
|
|||||||
description: Message creation time
|
description: Message creation time
|
||||||
example: "2020-01-01T00:00:00Z"
|
example: "2020-01-01T00:00:00Z"
|
||||||
type: string
|
type: string
|
||||||
|
dataMessage:
|
||||||
|
allOf:
|
||||||
|
- $ref: "#/definitions/smsgateway.DataMessage"
|
||||||
|
description: Data message
|
||||||
id:
|
id:
|
||||||
description: ID (if not set - will be generated)
|
description: ID (if not set - will be generated)
|
||||||
example: PyDmBQZZXYmyxMwED8Fzy
|
example: PyDmBQZZXYmyxMwED8Fzy
|
||||||
@ -354,7 +367,9 @@ definitions:
|
|||||||
example: true
|
example: true
|
||||||
type: boolean
|
type: boolean
|
||||||
message:
|
message:
|
||||||
description: Content
|
description: |-
|
||||||
|
Message content
|
||||||
|
Deprecated: use TextMessage instead
|
||||||
example: Hello World!
|
example: Hello World!
|
||||||
maxLength: 65535
|
maxLength: 65535
|
||||||
type: string
|
type: string
|
||||||
@ -382,6 +397,10 @@ definitions:
|
|||||||
example: 1
|
example: 1
|
||||||
maximum: 3
|
maximum: 3
|
||||||
type: integer
|
type: integer
|
||||||
|
textMessage:
|
||||||
|
allOf:
|
||||||
|
- $ref: "#/definitions/smsgateway.TextMessage"
|
||||||
|
description: Text message
|
||||||
ttl:
|
ttl:
|
||||||
description: Time to live in seconds (conflicts with `validUntil`)
|
description: Time to live in seconds (conflicts with `validUntil`)
|
||||||
example: 86400
|
example: 86400
|
||||||
@ -396,7 +415,6 @@ definitions:
|
|||||||
example: true
|
example: true
|
||||||
type: boolean
|
type: boolean
|
||||||
required:
|
required:
|
||||||
- message
|
|
||||||
- phoneNumbers
|
- phoneNumbers
|
||||||
type: object
|
type: object
|
||||||
smsgateway.MobileRegisterRequest:
|
smsgateway.MobileRegisterRequest:
|
||||||
@ -674,6 +692,7 @@ definitions:
|
|||||||
smsgateway.WebhookEvent:
|
smsgateway.WebhookEvent:
|
||||||
enum:
|
enum:
|
||||||
- sms:received
|
- sms:received
|
||||||
|
- sms:data-received
|
||||||
- sms:sent
|
- sms:sent
|
||||||
- sms:delivered
|
- sms:delivered
|
||||||
- sms:failed
|
- sms:failed
|
||||||
@ -681,6 +700,7 @@ definitions:
|
|||||||
type: string
|
type: string
|
||||||
x-enum-varnames:
|
x-enum-varnames:
|
||||||
- WebhookEventSmsReceived
|
- WebhookEventSmsReceived
|
||||||
|
- WebhookEventSmsDataReceived
|
||||||
- WebhookEventSmsSent
|
- WebhookEventSmsSent
|
||||||
- WebhookEventSmsDelivered
|
- WebhookEventSmsDelivered
|
||||||
- WebhookEventSmsFailed
|
- WebhookEventSmsFailed
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user