swagger: '2.0'
info:
  version: '2.0'
  title: ServiceNow Connector File
  description: Swagger API for ServiceNow and AEM
host: dev87628.service-now.com
basePath: /api/now/table
schemes:
  - https
  - http
consumes:
  - application/json
  - application/xml
produces:
  - application/json
  - application/xml
paths:
  /incident:
    post:
      summary: Add a new ServiceNow record
      description: ''
      operationId: Create
      consumes:
        - application/json
        - application/xml
      produces:
        - application/json
        - application/xml
      parameters:
        - in: body
          name: body
          description: New ServiceNow record
          required: true
          schema:
            $ref: '#/definitions/ServiceNowRecord'
      responses:
        '200':
          description: Successful record creation
          schema:
            $ref: '#/definitions/servicenowresult'
        '201':
          description: Successful record creation
          schema:
            $ref: '#/definitions/servicenowresult'
        '405':
          description: Invalid input
definitions:
  resultobject: 
    type: object
    properties:
      number:
        type: string
  servicenowresult:
    type: object
    properties:
      result:
        $ref: '#/definitions/resultobject'
    
  ServiceNowRecord:
    type: object
    properties:
      short_description:
        type: string
      comments:
        type: string
