---
swagger: "2.0"
info:
  description: "This is a sample server Petstore server.  You can find out more about\
    \ Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/).\
    \  For this sample, you can use the api key `special-key` to test the authorization\
    \ filters."
  version: "1.0.7"
  title: "Swagger "
  termsOfService: "http://swagger.io/terms/"
  contact:
    email: "apiteam@swagger.io"
  license:
    name: "Apache 2.0"
    url: "http://www.apache.org/licenses/LICENSE-2.0.html"
    
    # target server name
server: "bdo-apicoe-ms"

    # target server path including namespace
path: "{TargetNamspace}/bdo-test-ms/ms-api/test"

    # basepath
basePath: "/v1/bdo"
tags:
- name: "Employee"
  description: "BOD Sample"
  externalDocs:
    description: "Find out more"
    url: "http://swagger.io"
schemes:
- "https"
- "http"
paths:
  /bdo/{empId}/getEmployee:
    post:
      # x-a127-apply:
      #  KVM-GetNameSpace:
      #     pipe: request
      #     endPoint: proxy
      
      summary: Get emp
      operationId: get emp details
      tags:
      - "Employee"
      description: ""
      consumes:
      - "multipart/form-data"
      produces:
      - "application/json"
      parameters:
      - name: "empId"
        in: "path"
        description: "ID of the emp"
        required: true
        type: "integer"
        format: "int64"
      responses:
        200:
          description: "successful operation"
          schema:
            $ref: "#/definitions/ApiResponse"
  /bdo/{empId}:
    get:
      summary: Info for a specific employee
      operationId: showEmpById
      
      tags:
        - Employee
      parameters:
        - name: empId
          in: path
          required: true
          description: The id of the pet to retrieve
          type: string
      responses:
        200:
          description: Expected response to a valid request
          schema:
            $ref: "#/definitions/ApiResponse"
        default:
          description: unexpected error
          schema:
            $ref: Error


definitions:
  ApiResponse:
    type: "object"
    properties:
      code:
        type: "integer"
        format: "int32"
      type:
        type: "string"
      message:
        type: "string"
  
      status:
        type: "string"
        description: "pet status in the store"
       
 
 
 
 
x-a127-services:

 #cors - preflow request
    # - name: add-cors
    #   provider: x-cors
    #   options:
    #       displayName: Add CORS
   
    - name: validation
      provider: 405,404


    
                
    #quota
    
#    - name: quota
#      provider: quota
#      options:
#          timeUnit: day
#          interval: 2
#          allow: 2500
         
    # verify token - (SF)
#    - name: FC-VerifyToken
#      provider: FC-VerifyToken
#      apply:
#         endPoint: proxy
#         place: preFlow
#         pipe: request
#      options:
#          name: FC-VerifyToken
#          sfName: SF-VerifyToken-V1
      
    # basic auth
    # - name: BasicAuth
    #   provider: basicAuth
    #   options:
    #       continueOnError: true
    #       userRef: ck.vishnu.header
    #       passwordRef: req.password.ref
    #       assignTo: ck.assignTo.header
          
    
    # - name: FC-VerifyToken
    #   provider: FC-VerifyToken
    #   apply:
    #      endPoint: proxy
    #      place: preFlow
    #      pipe: request
    #   options:
    #       name: FC-VerifyToken
    #       displayName: FC-VerifyToken
    #       sfName: SF-VerifyToken-V1
          
    # - name: FC-LogResponse
    #   provider: FC-Response
    #   apply:
    #      pipe: response
    #      endPoint: proxy
    #      place: preFlow
    #   options:
    #       name: FC-LogResponse
    #       displayName: FC-LogResponse
    #       sfName: SF-LogResponse-V1
          
          
    # - name: FC-FaultHandling
    #   provider: FC-FaultHandling
    #   apply:
    #       endPoint: proxy
    #       place: fault
    #       pipe: request
    #   options:
    #       name: FC-LogResponse
    #       displayName: FC-LogResponse
    #       sfName: SF-LogResponse-V1
          
   
    # - name: KVM-GetNameSpace
    #   provider: KVM-GetNameSpace
    #   apply:
    #       endPoint: proxy
    #       place: flow
    #       pipe: request
    #   options:
    #       displayName: KVM-GetNameSpace
    #       name: KVM-GetNameSpace
    #       mapIdentifier: NameSpace
    #       kvms:
    #         k1: k1
    #         k2: k2

    
    
#     - name: AM-SetHeader
#       provider: x-headers
#       apply:
#           endPoint: target
#           pipe: request
#       options:
#           displayName: AM-SetHeader
#           name: AM-SetHeader
# #          headers:
# #              Authorization:
# #                default: "123"
# #              ChannelName:
# #                default: "bdoPay"
# #              cif:
# #                default: "123"
                
#           queryParams:
#               Authorization:
#                 default: "123"
#               ChannelName:
#                 default: "bdoPay"
#               cif:
#                 default: "123"
                
                
                
              #test1: 1234
#    - name: FC-raiseFault
#      provider: x-raiseFault
#      apply:
#         pipe: request
#         endPoint: proxy#
#      options:
#         statusCode: 400
#         reasonPhrase: Resource not found
#         contentType: applocation/json
#         displayName: RF-raiseFault
          
    
     
         
              
          
          
        
     
  
  
externalDocs:
  description: "Find out more about Swagger"
  url: "http://swagger.io"

