@@ -11,8 +11,13 @@ const docTemplate = `{
1111 "title": "{{.Title}}",
1212 "contact": {
1313 "name": "SMSGate Support",
14+ "url": "https://docs.sms-gate.app/",
1415 "email": "support@sms-gate.app"
1516 },
17+ "license": {
18+ "name": "Apache 2.0",
19+ "url": "http://www.apache.org/licenses/LICENSE-2.0"
20+ },
1621 "version": "{{.Version}}"
1722 },
1823 "host": "{{.Host}}",
@@ -96,6 +101,9 @@ const docTemplate = `{
96101 }
97102 ],
98103 "description": "Revoke access token with specified jti",
104+ "produces": [
105+ "application/json"
106+ ],
99107 "tags": [
100108 "User",
101109 "Auth"
@@ -1512,6 +1520,7 @@ const docTemplate = `{
15121520 },
15131521 "smsgateway.MessagePriority": {
15141522 "type": "integer",
1523+ "format": "int32",
15151524 "enum": [
15161525 -128,
15171526 0,
@@ -1521,6 +1530,12 @@ const docTemplate = `{
15211530 "x-enum-comments": {
15221531 "PriorityBypassThreshold": "Threshold at which messages bypass limits and delays"
15231532 },
1533+ "x-enum-descriptions": [
1534+ "",
1535+ "",
1536+ "Threshold at which messages bypass limits and delays",
1537+ ""
1538+ ],
15241539 "x-enum-varnames": [
15251540 "PriorityMinimum",
15261541 "PriorityDefault",
@@ -1638,6 +1653,13 @@ const docTemplate = `{
16381653 "ProcessingStateProcessed": "Processed (received by device)",
16391654 "ProcessingStateSent": "Sent"
16401655 },
1656+ "x-enum-descriptions": [
1657+ "Pending",
1658+ "Processed (received by device)",
1659+ "Sent",
1660+ "Delivered",
1661+ "Failed"
1662+ ],
16411663 "x-enum-varnames": [
16421664 "ProcessingStatePending",
16431665 "ProcessingStateProcessed",
@@ -1911,6 +1933,15 @@ const docTemplate = `{
19111933 "WebhookEventSmsSent": "Triggered when an SMS is sent.",
19121934 "WebhookEventSystemPing": "Triggered when the device pings the server."
19131935 },
1936+ "x-enum-descriptions": [
1937+ "Triggered when an MMS is received.",
1938+ "Triggered when a data SMS is received.",
1939+ "Triggered when an SMS is delivered.",
1940+ "Triggered when an SMS processing fails.",
1941+ "Triggered when an SMS is received.",
1942+ "Triggered when an SMS is sent.",
1943+ "Triggered when the device pings the server."
1944+ ],
19141945 "x-enum-varnames": [
19151946 "WebhookEventMmsReceived",
19161947 "WebhookEventSmsDataReceived",
0 commit comments