Leonard Seymore
2020-03-28 a651c082fa7d49a77f225b26e042a95fdd818339
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
  swagger: '2.0'
  info:
    version: '1.0'
    title: SOA REST API
    description: REST API Exposed on SOA
    termsOfService: 'http://swagger.io/terms/'
    license:
      name: MIT
      url: 'http://github.com/gruntjs/grunt/blob/master/LICENSE-MIT'
  host: 'host:7004'
  basePath: /rest
  securityDefinitions:
    basicAuth:
      type: basic
  schemes:
    - http
  consumes:
    - application/json
  produces:
    - application/json
  paths:
    /v1/manage-service-incident:
      post:
        summary: This API will have the specifications that are needed for Remedy to create/Udpdate a service request on Service now
        description: >-
          The service will be exposed to create or update an service request created on the service now in Remedy.
        operationId: ManageSR
        parameters:
          - name: body
            in: body
            required: true
            schema:
              $ref: '#/definitions/ServiceIncidentRequest'
        responses:
          '200':
            description: lead Management request
            schema:
              $ref: '#/definitions/ServiceIncidentResponse'
          '401':
            $ref: '#/responses/unauthorizedError'
          '500':
            description: Internal server error
            schema:
              $ref: '#/responses/unexpectedError'
  definitions:
    ServiceIncidentRequest:
      required:
        - transactionId
        - sourceIdentifier
      properties:
        transactionId:
          type: string
          example: 101813
          description: This parameter respresents the unique identifier of the transaction.  
        sourceIdentifier:
          type: string
          example: MNP
          description: This parameter respresents the unique identifier of the channel/Application that is invoking this service.  
        
        action:
          type: string
          example: CREATE
          description: This field defines the action that needs to be taken on the ticket. CREATE to create a ticket and UPDATE to update an existing ticket.
        category:
          type: string
          example: APN, Static-Ip
          description: "Used to categorize the order, useful for the OM system."
        description:
          type: string
          description: "This field will have the description of the service request that is raised"
        priority:
          type: string
          description: "This field will determine the priority of the service request that is raised."
        descriptionList:
                  type: array
                  description: "Extra-information about the order; e.g. useful to add extra delivery information that could be useful for a human process."
                  items:
                    type: object
                    required:
                      - type
                      - text
                    properties:
                        type:
                          type: string
                          description: "Type of extra informationm entered by user while raising a service request."
                          example : comment, WorkNote
                        text:
                          type: string
                          description: "The text for the description" 
                          example : "This field has additional information for the service request"
        attachmentList:
                  type: array
                  description: "This array will have the list of attachments when creating or updating a service request"
                  items:
                    type: object
                    required:
                      - attachmentName
                      - attachmentDescription
                      - attachment
                    properties:
                        attachmentName:
                          type: string
                          description: "This field will have the type of file that is attached while creating or updating a service request"
                          example : worknotes.jpg
                        attachmentDescription:
                          type: string
                          description: "This field will have the description of the file that is attached"
                        attachment:
                          type: string
                          description: "This field will have the base 64 format of the file that is attached"
        orderItemList:
                  type: array
                  description: "This array will have the list of order items that will be processed.This is a key value pair of the target system name and signals that will be passed by Remedy to MAD API which will indicate on creating or updating a service request with either work notes or changing the state of the service request"
                  items:
                    type: object
                    required:
                      - type
                      - text
                    properties:
                        type:
                          type: string
                          description: "Type of key value pairs for the variables"
                          example : targetSystem, Signal Name
                        text:
                          type: string
                          description: "The value of the key that is being passed"
                          example : servicenow, Remedy-ServiceNow-CreateSR
        
    ServiceIncidentResponse:
          properties:
            transactionId:
              type: string
              example: 12345
              description: >-
                This field will be mapped in the response from the transation id given in the input.
            statusCode:
              type: string
              example: 0
              description: >-
                0 for success. Any code other than 0 will be failure. 
            statusMessage:
              type: string
              example: Transaction processed successfully.
              description: Status message for the transaction.
            supportMessage:
              type: string
              description: This field will have the ticket id that SOA recieves from Remedy.
  responses:
    unexpectedError:
      description: Internal Server Error
    unauthorizedError:
      description: Authentication information is missing or invalid