Skip to content

Changes to phonecom apiv4.swagger.json in v1.0.1

Igor Simevski edited this page Mar 28, 2017 · 1 revision

In Paths

Added:

"/ping": {
  "get": {
    "tags": [
      "default"
    ],
    "summary": "The default API command",
    "description": "The default API command",
    "operationId": "ping",
    "consumes": [
      "application/json"
    ],
    "produces": [
      "application/json"
    ],
    "responses": {
      "200": {
        "description": "OK",
        "schema": {
          "$ref": "#/definitions/PingResponse"
        }
      },
      "404": {
        "$ref": "#/responses/response404"
      }
    },
    "security": [
      {
        "apiKey": []
      }
    ]
  }
}

In Definitions

Added:

"PingResponse": {
  "description": "The ping response object.",
  "type": "object",
  "properties": {
    "datetime": {
      "type": "string"
    },
    "remote_ip": {
      "type": "string"
    },
    "timestamp": {
      "type": "integer"
    },
    "user_agent": {
      "type": "string"
    }
  }
}

In "FilterListAvailableNumbers":
Changed npa type from integer to string

In "FilterListPhoneNumbersRegions":
Changed npa type from integer to string