Skip to content

Commit

Permalink
deploy: 176ffa6
Browse files Browse the repository at this point in the history
  • Loading branch information
qunabu committed Feb 28, 2024
1 parent d5ae685 commit d76bd7d
Showing 1 changed file with 250 additions and 0 deletions.
250 changes: 250 additions & 0 deletions api-docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -2880,6 +2880,153 @@
]
}
},
"/api/admin/bulk-notifications/send": {
"post": {
"tags": [
"Admin Bulk Notifications"
],
"summary": "Store a newly notification",
"description": "Store Bulk Notification",
"operationId": "b1372a51384331ca5f6e346b8f50c91d",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SendBulkNotificationRequest"
}
}
}
},
"responses": {
"201": {
"description": "Successfull operation",
"content": {
"application/json": {
"schema": {
"properties": {
"success": {
"type": "boolean"
},
"data": {
"$ref": "#/components/schemas/BulkNotificationResource"
},
"message": {
"type": "string"
}
},
"type": "object"
}
}
}
}
},
"security": [
{
"passport": []
}
]
}
},
"/api/bulk-notifications": {
"get": {
"tags": [
"Admin Bulk Notifications"
],
"summary": "Get a listing of the bulk notifications",
"description": "Get all Bulk Notifications",
"operationId": "8eb36ec7e26438fce99ff375431d1a86",
"parameters": [
{
"name": "page",
"in": "query",
"description": "Pagination Page Number",
"required": false,
"schema": {
"type": "number",
"default": 1
}
},
{
"name": "per_page",
"in": "query",
"description": "Pagination Per Page",
"required": false,
"schema": {
"type": "number",
"default": 15
}
},
{
"name": "channel",
"in": "query",
"description": "Bulk notification channel [EscolaLms\\BulkNotifications\\Channels\\PushNotificationChannel]",
"required": false,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "successful operation",
"content": {
"application/json": {}
}
}
},
"security": [
{
"passport": []
}
]
}
},
"/api/notifications/tokens": {
"post": {
"tags": [
"Notification Device Tokens"
],
"summary": "Store a newly notification device token",
"description": "Store Notification Device Token",
"operationId": "f853452ff60526c091b4666e2e147925",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CreateDeviceTokenRequest"
}
}
}
},
"responses": {
"201": {
"description": "Successfull operation",
"content": {
"application/json": {
"schema": {
"properties": {
"success": {
"type": "boolean"
},
"message": {
"type": "string"
}
},
"type": "object"
}
}
}
}
},
"security": [
{
"passport": []
}
]
}
},
"/api/admin/orders": {
"get": {
"tags": [
Expand Down Expand Up @@ -19338,6 +19485,109 @@
},
"type": "object"
},
"CreateDeviceTokenRequest": {
"required": [
"token"
],
"properties": {
"token": {
"description": "token",
"type": "string"
}
},
"type": "object"
},
"SendBulkNotificationRequest": {
"required": [
"channel",
"sections",
"user_ids"
],
"properties": {
"channel": {
"description": "channel",
"type": "string"
},
"sections": {
"description": "sections",
"type": "array",
"items": {
"properties": {
"title": {
"type": "string"
},
"body": {
"type": "string"
},
"image_url": {
"type": "string"
},
"redirect_url": {
"type": "string"
},
"data": {
"type": "object"
}
},
"type": "object"
}
},
"user_ids": {
"description": "user_ids",
"type": "array",
"items": {
"type": "integer"
}
}
},
"type": "object"
},
"BulkNotificationResource": {
"required": [
"id",
"channel",
"sections"
],
"properties": {
"id": {
"description": "id",
"type": "integer"
},
"channel": {
"description": "channel",
"type": "string"
},
"sections": {
"type": "array",
"items": {
"$ref": "#/components/schemas/BulkNotificationSectionResource"
}
}
},
"type": "object"
},
"BulkNotificationSectionResource": {
"required": [
"id",
"key",
"value"
],
"properties": {
"id": {
"description": "id",
"type": "integer"
},
"key": {
"description": "key",
"type": "string"
},
"value": {
"description": "value",
"type": "string"
}
},
"type": "object"
},
"Order": {
"properties": {
"id": {
Expand Down

0 comments on commit d76bd7d

Please sign in to comment.