--- swagger: "2.0" info: x-ibm-name: bafapi-sendemail title: BAFAPI Send Email version: 1.0.0 description: "" schemes: - https basePath: /bafapi-sendemail consumes: - application/json produces: - application/json securityDefinitions: OAuth: type: oauth2 description: OAuth Authentication flow: application scopes: GetToken: "" tokenUrl: https://apigateway.bankalfalah.com/bankalfalah/sb/oauthproviderapi/oauth2/token clientSecretHeader: type: apiKey description: "" in: header name: X-IBM-Client-Secret clientIdHeader: type: apiKey in: header name: X-IBM-Client-Id security: - clientIdHeader: [] clientSecretHeader: [] OAuth: - GetToken x-ibm-configuration: testable: true enforced: true phase: realized paths: /v1: post: responses: 200: description: Success schema: $ref: '#/definitions/Response Body' 500: description: Error schema: $ref: '#/definitions/Error Response' parameters: - name: RequestBody required: true in: body schema: $ref: '#/definitions/RequestData' definitions: RequestData: description: "" type: object properties: ChannelId: type: string ToEmailAddress: type: string Cc: type: string Bcc: type: string Subject: type: string Body: type: string Attachment: type: object properties: ContentName: type: string ContentType: type: string ContentValue: type: string example: ChannelId: "1010" ToEmailAddress: abcd@bankalfalah.com Cc: muhammad.ali Bcc: "" Subject: Leave Request Body: Require Leaves Attachment: ContentName: "" ContentType: "" ContentValue: "" required: - Attachment - Subject - Bcc - Body - Cc - ChannelId - ToEmailAddress Error Response: description: "" type: object properties: ResponseCode: type: string ResponseDesc: type: string example: ResponseCode: "99" ResponseDesc: Failed Response Body: description: "" type: object properties: Response: type: string example: Response: "true" tags: [] x-ibm-endpoints: - endpointUrl: https://apigateway.bankalfalah.com/bankalfalah/sb type: - production - development ...