{ "swagger": "2.0", "info": { "title": "Powell.Manager.Api", "description": "Powell Manager API endpoints documentation", "version": "v1.0" }, "host": "apimanager.powell-software.com", "basePath": "/", "schemes": [ "https" ], "consumes": [], "produces": [], "paths": { "/v1.0/notification": { "post": { "tags": [ "Notification" ], "summary": "Push Notification for Mobile App", "operationId": "postV10Notification", "consumes": [ "application/json" ], "parameters": [ { "in": "header", "name": "POW-CONNECTOR-BEARER", "description": "Connector bearer. Get it from your Powell Manager Mobile App", "type": "string", "required": true }, { "in": "body", "name": "body", "description": "Body", "required": true, "schema": { "$ref": "#/definitions/powell.Manager.Api.Services.Models.PushNotificationModel" } } ], "responses": { "default": { "description": "Responses cannot be located for this operation." } }, "description": "Push Notification for Mobile App" } }, "/v1.0/mobile/tags": { "get": { "tags": [ "Mobile" ], "operationId": "getV10MobileTags", "summary": "Get tags Mobile App", "description": "Get tags Mobile App", "responses": { "default": { "description": "Responses cannot be located for this operation." } }, "parameters": [ { "name": "POW-CONNECTOR-BEARER", "in": "header", "required": false, "type": "string", "description": "Connector bearer. Get it from your Powell Manager Mobile App" } ] } }, "/v1.0/mobile/users": { "get": { "tags": [ "Mobile" ], "responses": { "default": { "description": "Responses cannot be located for this operation." } }, "summary": "Get all users associated Mobile App", "description": "Get all users associated Mobile App", "operationId": "getV10MobileUsers", "parameters": [ { "name": "POW-CONNECTOR-BEARER", "in": "header", "required": false, "type": "string", "description": "Connector bearer. Get it from your Powell Manager Mobile App" } ] } } }, "definitions": { "powell.Manager.Api.Services.Models.PushNotificationModel": { "type": "object", "properties": { "Notification": { "$ref": "#/definitions/powell.Manager.Api.Services.Models.PushNotificationData" }, "Tags": { "type": "array", "items": { "format": "uuid", "type": "string", "description": "Filter on tags.", "example": "00000000-0000-0000-0000-000000000000" } }, "Users": { "type": "array", "items": { "format": "uuid", "type": "string", "description": "Users who will receive the notification.", "example": "00000000-0000-0000-0000-000000000000" } }, "All": { "type": "boolean", "title": "All", "description": "Choose or not all users to received the notification (frontline).", "default": true }, "Language": { "format": "int32", "type": "integer", "title": "Language", "description": "Filter on Language." }, "TagsAndRule": { "type": "boolean", "title": "TagsAndRule", "description": "If true send notification with the 'AND' rule.", "default": false }, "IsFrontline": { "type": "boolean", "title": "IsFrontline", "description": "Sent notification to frontline.", "default": false }, "UniqueId": { "type": "string", "title": "UniqueId", "description": "Id of the page frontline." } }, "required": [ "Notification" ] }, "powell.Manager.Api.Services.Models.PushNotificationData": { "type": "object", "properties": { "Title": { "type": "string", "title": "Title", "description": "Title of the notification." }, "Description": { "type": "string", "title": "Description", "description": "Description of the notification." }, "Url": { "type": "string", "title": "Url", "description": "Notification page URL." }, "ImageBase64": { "type": "string", "title": "Image Base 64", "description": "Image to Base64 String." } }, "required": [ "Title", "Url" ] } }, "parameters": {}, "responses": {}, "securityDefinitions": { "oauth2_auth": { "type": "oauth2", "flow": "accessCode", "authorizationUrl": "https://login.windows.net/common/oauth2/authorize", "tokenUrl": "https://login.windows.net/common/oauth2/authorize", "scopes": { "User.Read": "User.Read" } } }, "security": [ { "oauth2_auth": [ "User.Read" ] } ], "tags": [] }