-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathswagger.yaml
1020 lines (1020 loc) · 27.3 KB
/
swagger.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
definitions:
smsgateway.Device:
properties:
createdAt:
description: Created at (read only)
example: "2020-01-01T00:00:00Z"
type: string
deletedAt:
description: Deleted at (read only)
example: "2020-01-01T00:00:00Z"
type: string
id:
description: ID
example: PyDmBQZZXYmyxMwED8Fzy
type: string
lastSeen:
description: Last seen at (read only)
example: "2020-01-01T00:00:00Z"
type: string
name:
description: Name
example: My Device
type: string
updatedAt:
description: Updated at (read only)
example: "2020-01-01T00:00:00Z"
type: string
type: object
smsgateway.ErrorResponse:
properties:
code:
description: Error code
type: integer
data:
description: Error context
message:
description: Error message
example: An error occurred
type: string
type: object
smsgateway.HealthCheck:
properties:
description:
description: A human-readable description of the check.
type: string
observedUnit:
description: Unit of measurement for the observed value.
type: string
observedValue:
description: Observed value of the check.
type: integer
status:
allOf:
- $ref: '#/definitions/smsgateway.HealthStatus'
description: |-
Status of the check.
It can be one of the following values: "pass", "warn", or "fail".
type: object
smsgateway.HealthChecks:
additionalProperties:
$ref: '#/definitions/smsgateway.HealthCheck'
type: object
smsgateway.HealthResponse:
properties:
checks:
allOf:
- $ref: '#/definitions/smsgateway.HealthChecks'
description: A map of check names to their respective details.
releaseId:
description: |-
Release ID of the application.
It is used to identify the version of the application.
type: integer
status:
allOf:
- $ref: '#/definitions/smsgateway.HealthStatus'
description: |-
Overall status of the application.
It can be one of the following values: "pass", "warn", or "fail".
version:
description: Version of the application.
type: string
type: object
smsgateway.HealthStatus:
enum:
- pass
- warn
- fail
type: string
x-enum-varnames:
- HealthStatusPass
- HealthStatusWarn
- HealthStatusFail
smsgateway.LogEntry:
properties:
context:
additionalProperties:
type: string
description: Additional context information related to the log entry, typically
including data relevant to the log event.
type: object
createdAt:
description: The timestamp when this log entry was created.
type: string
id:
description: A unique identifier for the log entry.
type: integer
message:
description: A message describing the log event.
type: string
module:
description: The module or component of the system that generated the log
entry.
type: string
priority:
allOf:
- $ref: '#/definitions/smsgateway.LogEntryPriority'
description: The priority level of the log entry.
type: object
smsgateway.LogEntryPriority:
enum:
- DEBUG
- INFO
- WARN
- ERROR
type: string
x-enum-varnames:
- LogEntryPriorityDebug
- LogEntryPriorityInfo
- LogEntryPriorityWarn
- LogEntryPriorityError
smsgateway.Message:
properties:
id:
description: ID (if not set - will be generated)
example: PyDmBQZZXYmyxMwED8Fzy
maxLength: 36
type: string
isEncrypted:
description: Is encrypted
example: true
type: boolean
message:
description: Content
example: Hello World!
maxLength: 65535
type: string
phoneNumbers:
description: Recipients (phone numbers)
example:
- "79990001234"
items:
type: string
maxItems: 100
minItems: 1
type: array
simNumber:
description: SIM card number (1-3), if not set - default SIM will be used
example: 1
maximum: 3
type: integer
ttl:
description: Time to live in seconds (conflicts with `validUntil`)
example: 86400
minimum: 5
type: integer
validUntil:
description: Valid until (conflicts with `ttl`)
example: "2020-01-01T00:00:00Z"
type: string
withDeliveryReport:
description: With delivery report
example: true
type: boolean
required:
- message
- phoneNumbers
type: object
smsgateway.MessageState:
properties:
id:
description: Message ID
example: PyDmBQZZXYmyxMwED8Fzy
maxLength: 36
type: string
isEncrypted:
description: Encrypted
example: false
type: boolean
isHashed:
description: Hashed
example: false
type: boolean
recipients:
description: Recipients states
items:
$ref: '#/definitions/smsgateway.RecipientState'
minItems: 1
type: array
state:
allOf:
- $ref: '#/definitions/smsgateway.ProcessingState'
description: State
example: Pending
states:
additionalProperties:
type: string
description: History of states
type: object
required:
- recipients
- state
type: object
smsgateway.MessagesExportRequest:
properties:
deviceId:
description: DeviceID is the ID of the device to export messages for.
example: PyDmBQZZXYmyxMwED8Fzy
maxLength: 21
type: string
since:
description: Since is the start of the time range to export.
example: "2024-01-01T00:00:00Z"
type: string
until:
description: Until is the end of the time range to export.
example: "2024-01-01T23:59:59Z"
type: string
required:
- deviceId
- since
- until
type: object
smsgateway.MobileChangePasswordRequest:
properties:
currentPassword:
description: Current password
example: cp2pydvxd2zwpx
type: string
newPassword:
description: New password, at least 14 characters
example: cp2pydvxd2zwpx
minLength: 14
type: string
required:
- currentPassword
- newPassword
type: object
smsgateway.MobileDeviceResponse:
properties:
device:
allOf:
- $ref: '#/definitions/smsgateway.Device'
description: Device information, empty if device is not registered on the
server
externalIp:
description: External IP
type: string
type: object
smsgateway.MobileRegisterRequest:
properties:
name:
description: Device name
example: Android Phone
maxLength: 128
type: string
pushToken:
description: FCM token
example: gHz-T6NezDlOfllr7F-Be
maxLength: 256
type: string
type: object
smsgateway.MobileRegisterResponse:
properties:
id:
description: New device ID
example: QslD_GefqiYV6RQXdkM6V
type: string
login:
description: User login
example: VQ4GII
type: string
password:
description: User password, empty for existing user
example: cp2pydvxd2zwpx
type: string
token:
description: Device access token
example: bP0ZdK6rC6hCYZSjzmqhQ
type: string
type: object
smsgateway.MobileUpdateRequest:
properties:
id:
description: ID
example: QslD_GefqiYV6RQXdkM6V
type: string
pushToken:
description: FCM token
example: gHz-T6NezDlOfllr7F-Be
maxLength: 256
type: string
type: object
smsgateway.ProcessingState:
enum:
- Pending
- Processed
- Sent
- Delivered
- Failed
type: string
x-enum-comments:
ProcessingStateDelivered: Delivered
ProcessingStateFailed: Failed
ProcessingStatePending: Pending
ProcessingStateProcessed: Processed (received by device)
ProcessingStateSent: Sent
x-enum-varnames:
- ProcessingStatePending
- ProcessingStateProcessed
- ProcessingStateSent
- ProcessingStateDelivered
- ProcessingStateFailed
smsgateway.PushEventType:
enum:
- MessageEnqueued
- WebhooksUpdated
- MessagesExportRequested
type: string
x-enum-varnames:
- PushMessageEnqueued
- PushWebhooksUpdated
- PushMessagesExportRequested
smsgateway.PushNotification:
properties:
data:
additionalProperties:
type: string
description: The additional data associated with the event.
type: object
event:
allOf:
- $ref: '#/definitions/smsgateway.PushEventType'
default: MessageEnqueued
description: The type of event.
enum:
- MessageEnqueued
- WebhooksUpdated
- MessagesExportRequested
example: MessageEnqueued
token:
description: The token of the device that receives the notification.
example: PyDmBQZZXYmyxMwED8Fzy
type: string
required:
- token
type: object
smsgateway.RecipientState:
properties:
error:
description: Error (for `Failed` state)
example: timeout
type: string
phoneNumber:
description: Phone number or first 16 symbols of SHA256 hash
example: "79990001234"
maxLength: 128
minLength: 1
type: string
state:
allOf:
- $ref: '#/definitions/smsgateway.ProcessingState'
description: State
example: Pending
required:
- phoneNumber
- state
type: object
smsgateway.Webhook:
properties:
event:
allOf:
- $ref: '#/definitions/smsgateway.WebhookEvent'
description: The type of event the webhook is triggered for.
example: sms:received
id:
description: The unique identifier of the webhook.
example: 123e4567-e89b-12d3-a456-426614174000
maxLength: 36
type: string
url:
description: The URL the webhook will be sent to.
example: https://example.com/webhook
type: string
required:
- event
- url
type: object
smsgateway.WebhookEvent:
enum:
- sms:received
- sms:sent
- sms:delivered
- sms:failed
- system:ping
type: string
x-enum-varnames:
- WebhookEventSmsReceived
- WebhookEventSmsSent
- WebhookEventSmsDelivered
- WebhookEventSmsFailed
- WebhookEventSystemPing
host: api.sms-gate.app
info:
contact:
email: [email protected]
name: SMSGate Support
description: This API provides programmatic access to sending SMS messages on Android
devices. Features include sending SMS, checking message status, device management,
webhook configuration, and system health checks.
title: SMS Gateway for Android™ API
version: '{APP_VERSION}'
paths:
/3rdparty/v1/devices:
get:
description: Returns list of registered devices
produces:
- application/json
responses:
"200":
description: Device list
schema:
items:
$ref: '#/definitions/smsgateway.Device'
type: array
"400":
description: Invalid request
schema:
$ref: '#/definitions/smsgateway.ErrorResponse'
"401":
description: Unauthorized
schema:
$ref: '#/definitions/smsgateway.ErrorResponse'
"500":
description: Internal server error
schema:
$ref: '#/definitions/smsgateway.ErrorResponse'
security:
- ApiAuth: []
summary: List devices
tags:
- User
- Devices
/3rdparty/v1/devices/{id}:
delete:
description: Removes device
parameters:
- description: Device ID
in: path
name: id
required: true
type: string
produces:
- application/json
responses:
"204":
description: Successfully removed
"400":
description: Invalid request
schema:
$ref: '#/definitions/smsgateway.ErrorResponse'
"401":
description: Unauthorized
schema:
$ref: '#/definitions/smsgateway.ErrorResponse'
"404":
description: Device not found
schema:
$ref: '#/definitions/smsgateway.ErrorResponse'
"500":
description: Internal server error
schema:
$ref: '#/definitions/smsgateway.ErrorResponse'
security:
- ApiAuth: []
summary: Remove device
tags:
- User
- Devices
/3rdparty/v1/health:
get:
description: Checks if service is healthy
produces:
- application/json
responses:
"200":
description: Health check result
schema:
$ref: '#/definitions/smsgateway.HealthResponse'
"500":
description: Service is unhealthy
schema:
$ref: '#/definitions/smsgateway.HealthResponse'
summary: Health check
tags:
- System
/3rdparty/v1/inbox/export:
post:
consumes:
- application/json
description: Initiates process of inbox messages export via webhooks. For each
message the `sms:received` webhook will be triggered. The webhooks will be
triggered without specific order.
parameters:
- description: Export inbox request
in: body
name: request
required: true
schema:
$ref: '#/definitions/smsgateway.MessagesExportRequest'
produces:
- application/json
responses:
"202":
description: Inbox export request accepted
schema:
type: object
"400":
description: Invalid request
schema:
$ref: '#/definitions/smsgateway.ErrorResponse'
"401":
description: Unauthorized
schema:
$ref: '#/definitions/smsgateway.ErrorResponse'
"500":
description: Internal server error
schema:
$ref: '#/definitions/smsgateway.ErrorResponse'
security:
- ApiAuth: []
summary: Request inbox messages export
tags:
- User
- Messages
/3rdparty/v1/logs:
get:
description: Retrieve a list of log entries within a specified time range.
parameters:
- description: The start of the time range for the logs to retrieve. Logs created
after this timestamp will be included.
format: date-time
in: query
name: from
type: string
- description: The end of the time range for the logs to retrieve. Logs created
before this timestamp will be included.
format: date-time
in: query
name: to
type: string
produces:
- application/json
responses:
"200":
description: Log entries
schema:
items:
$ref: '#/definitions/smsgateway.LogEntry'
type: array
"401":
description: Unauthorized
schema:
$ref: '#/definitions/smsgateway.ErrorResponse'
"500":
description: Internal server error
schema:
$ref: '#/definitions/smsgateway.ErrorResponse'
"501":
description: Not implemented
schema:
$ref: '#/definitions/smsgateway.ErrorResponse'
security:
- ApiAuth: []
summary: Get logs
tags:
- System
- Logs
/3rdparty/v1/messages:
post:
consumes:
- application/json
description: Enqueues message for sending. If multiple devices are registered,
it will be sent via a random one
parameters:
- description: Skip phone validation
in: query
name: skipPhoneValidation
type: boolean
- description: Send message request
in: body
name: request
required: true
schema:
$ref: '#/definitions/smsgateway.Message'
produces:
- application/json
responses:
"202":
description: Message enqueued
headers:
Location:
description: Get message state URL
type: string
schema:
$ref: '#/definitions/smsgateway.MessageState'
"400":
description: Invalid request
schema:
$ref: '#/definitions/smsgateway.ErrorResponse'
"401":
description: Unauthorized
schema:
$ref: '#/definitions/smsgateway.ErrorResponse'
"409":
description: Message with such ID already exists
schema:
$ref: '#/definitions/smsgateway.ErrorResponse'
"500":
description: Internal server error
schema:
$ref: '#/definitions/smsgateway.ErrorResponse'
security:
- ApiAuth: []
summary: Enqueue message
tags:
- User
- Messages
/3rdparty/v1/messages/{id}:
get:
description: Returns message state by ID
parameters:
- description: Message ID
in: path
name: id
required: true
type: string
produces:
- application/json
responses:
"200":
description: Message state
schema:
$ref: '#/definitions/smsgateway.MessageState'
"400":
description: Invalid request
schema:
$ref: '#/definitions/smsgateway.ErrorResponse'
"401":
description: Unauthorized
schema:
$ref: '#/definitions/smsgateway.ErrorResponse'
"500":
description: Internal server error
schema:
$ref: '#/definitions/smsgateway.ErrorResponse'
security:
- ApiAuth: []
summary: Get message state
tags:
- User
- Messages
/3rdparty/v1/webhooks:
get:
description: Returns list of registered webhooks
produces:
- application/json
responses:
"200":
description: Webhook list
schema:
items:
$ref: '#/definitions/smsgateway.Webhook'
type: array
"401":
description: Unauthorized
schema:
$ref: '#/definitions/smsgateway.ErrorResponse'
"500":
description: Internal server error
schema:
$ref: '#/definitions/smsgateway.ErrorResponse'
security:
- ApiAuth: []
summary: List webhooks
tags:
- User
- Webhooks
post:
consumes:
- application/json
description: Registers webhook. If webhook with same ID already exists, it will
be replaced
parameters:
- description: Webhook
in: body
name: request
required: true
schema:
$ref: '#/definitions/smsgateway.Webhook'
produces:
- application/json
responses:
"201":
description: Created
schema:
$ref: '#/definitions/smsgateway.Webhook'
"400":
description: Invalid request
schema:
$ref: '#/definitions/smsgateway.ErrorResponse'
"401":
description: Unauthorized
schema:
$ref: '#/definitions/smsgateway.ErrorResponse'
"500":
description: Internal server error
schema:
$ref: '#/definitions/smsgateway.ErrorResponse'
security:
- ApiAuth: []
summary: Register webhook
tags:
- User
- Webhooks
/3rdparty/v1/webhooks/{id}:
delete:
description: Deletes webhook
parameters:
- description: Webhook ID
in: path
name: id
required: true
type: string
produces:
- application/json
responses:
"204":
description: Webhook deleted
schema:
type: object
"401":
description: Unauthorized
schema:
$ref: '#/definitions/smsgateway.ErrorResponse'
"500":
description: Internal server error
schema:
$ref: '#/definitions/smsgateway.ErrorResponse'
security:
- ApiAuth: []
summary: Delete webhook
tags:
- User
- Webhooks
/mobile/v1/device:
get:
description: Returns device information
produces:
- application/json
responses:
"200":
description: Device information
schema:
$ref: '#/definitions/smsgateway.MobileDeviceResponse'
"500":
description: Internal server error
schema:
$ref: '#/definitions/smsgateway.ErrorResponse'
summary: Get device information
tags:
- Device
patch:
consumes:
- application/json
description: Updates push token for device
parameters:
- description: Device update request
in: body
name: request
required: true
schema:
$ref: '#/definitions/smsgateway.MobileUpdateRequest'
responses:
"204":
description: Successfully updated
"400":
description: Invalid request
schema:
$ref: '#/definitions/smsgateway.ErrorResponse'
"403":
description: Forbidden (wrong device ID)
schema:
$ref: '#/definitions/smsgateway.ErrorResponse'
"500":
description: Internal server error
schema:
$ref: '#/definitions/smsgateway.ErrorResponse'
security:
- MobileToken: []
summary: Update device
tags:
- Device
post:
consumes:
- application/json
description: Registers new device for new or existing user. Returns user credentials
only for new users
parameters:
- description: Device registration request
in: body
name: request
required: true
schema:
$ref: '#/definitions/smsgateway.MobileRegisterRequest'
produces:
- application/json
responses:
"201":
description: Device registered
schema:
$ref: '#/definitions/smsgateway.MobileRegisterResponse'
"400":
description: Invalid request
schema:
$ref: '#/definitions/smsgateway.ErrorResponse'
"401":
description: Unauthorized (private mode only)
schema:
$ref: '#/definitions/smsgateway.ErrorResponse'
"429":
description: Too many requests
schema:
$ref: '#/definitions/smsgateway.ErrorResponse'
"500":
description: Internal server error
schema:
$ref: '#/definitions/smsgateway.ErrorResponse'
security:
- ApiAuth: []
- ServerKey: []
summary: Register device
tags:
- Device
/mobile/v1/message:
get:
consumes:
- application/json
description: Returns list of pending messages
produces:
- application/json
responses:
"200":
description: List of pending messages
schema:
items:
$ref: '#/definitions/smsgateway.Message'
type: array
"500":
description: Internal server error
schema:
$ref: '#/definitions/smsgateway.ErrorResponse'
security:
- MobileToken: []
summary: Get messages for sending
tags:
- Device
- Messages
patch:
consumes:
- application/json
description: Updates message state
parameters:
- description: New message state
in: body
name: request
required: true
schema:
items:
$ref: '#/definitions/smsgateway.MessageState'
type: array
produces:
- application/json
responses:
"204":
description: Successfully updated
"400":
description: Invalid request
schema:
$ref: '#/definitions/smsgateway.ErrorResponse'
"500":
description: Internal server error
schema:
$ref: '#/definitions/smsgateway.ErrorResponse'
security:
- MobileToken: []
summary: Update message state
tags:
- Device
- Messages
/mobile/v1/user/password:
patch:
consumes:
- application/json
description: Changes the user's password
parameters:
- description: Password change request
in: body
name: request
required: true
schema:
$ref: '#/definitions/smsgateway.MobileChangePasswordRequest'
produces:
- application/json
responses:
"204":
description: Password changed successfully
"400":
description: Invalid request
schema:
$ref: '#/definitions/smsgateway.ErrorResponse'
"401":
description: Unauthorized
schema:
$ref: '#/definitions/smsgateway.ErrorResponse'
"500":
description: Internal server error
schema:
$ref: '#/definitions/smsgateway.ErrorResponse'
security:
- MobileToken: []
summary: Change password
tags:
- Device
/mobile/v1/webhooks:
get:
description: Returns list of registered webhooks for device
produces:
- application/json
responses:
"200":
description: Webhook list
schema:
items:
$ref: '#/definitions/smsgateway.Webhook'
type: array
"401":
description: Unauthorized
schema:
$ref: '#/definitions/smsgateway.ErrorResponse'
"500":
description: Internal server error
schema:
$ref: '#/definitions/smsgateway.ErrorResponse'
security:
- MobileToken: []
summary: List webhooks
tags:
- Device
- Webhooks
/upstream/v1/push:
post:
consumes:
- application/json
description: Enqueues notifications for sending to devices
parameters:
- description: Push request
in: body
name: request
required: true
schema:
items:
$ref: '#/definitions/smsgateway.PushNotification'
type: array
produces:
- application/json
responses:
"202":
description: Notification enqueued
"400":
description: Invalid request
schema:
$ref: '#/definitions/smsgateway.ErrorResponse'
"429":
description: Too many requests
schema:
$ref: '#/definitions/smsgateway.ErrorResponse'
"500":
description: Internal server error
schema: