A list of all methods in the ImportService
service. Click on the method name to view detailed information about that method.
Methods | Description |
---|---|
ImportOpenApiDefinitionAsync | Imports an OpenAPI definition into Postman as a new Postman Collection. |
Imports an OpenAPI definition into Postman as a new Postman Collection.
- HTTP Method:
POST
- Endpoint:
/import/openapi
Parameters
Name | Type | Required | Description |
---|---|---|---|
input | OneOf<JsonSchema, JsonStringified> |
❌ | The request body. |
workspace | string | ❌ | The workspace's ID. |
Return Type
ImportOpenApiDefinitionOkResponse
Example Usage Code Snippet
using PostmanClient;
using PostmanClient.Models;
var client = new PostmanClientClient();
var input = new JsonSchema(JsonSchema.JsonSchemaType.Json, new object {});
var response = await client.Import.ImportOpenApiDefinitionAsync(input, "1f0df51a-8658-4ee8-a2a1-d2567dfa09a9");
Console.WriteLine(response);