Data Integration Connectors
- Data Integration Connectors
- All Products
You can define servers globally at the path level or for specific operations. However, Rest V2 Connector honors the first server listed in the specification file to connect to the REST endpoint.{ "servers": [ { "url": "https://development.gigantic-server.com/v1", "description": "Development server" }, { "url": "https://staging.gigantic-server.com/v1", "description": "Staging server" }, { "url": "https://api.gigantic-server.com/v1", "description": "Production server" } ] }
{ "host": "petstore.swagger.io", "basePath": "/v2", "schemes": [ "https" ] }
"paths": { "/pet": { "put": { "tags": [ "pet" ], "summary": "Update an existing pet", "description": "Update an existing pet by Id", "operationId": "updatePet", "parameters": [ { "name": "status", "in": "query", "description": "Status values that need to be considered for filter", "required": false, "explode": true, "schema": { "type": "string", "default": "available", } } ]
"parameters": [ { "in": "body", "name": "user", "description": "The user to create.", "schema": { "$ref": "#/definitions/User" } } ]
"operationId": "addPet", "requestBody": { "description": "Create a new pet in the store", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Pet" } }, "application/xml": { "schema": { "$ref": "#/components/schemas/Pet" } } } }
{ "paths": { "/users": { "post": { "summary": "Creates a new user.", "consumes": [ "application/json" ], "parameters": [ { "in": "body", "name": "user", "description": "The user to create.", "schema": { "$ref": "#/definitions/User" } } ]
The following example shows the response body section in the swagger specification file:"responses": { "200": { "description": "Successful operation", "content": { "application/xml": { "schema": { "$ref": "#/components/schemas/Pet" } }, "application/json": { "schema": { "$ref": "#/components/schemas/Pet" } } } } }
"responses": { "200": { "description": "A User object", "schema": { "$ref": "#/definitions/User" } } }