Test Cases Environments API

The Environments API from Test Cases — 2 operation(s) for environments.

OpenAPI Specification

test-cases-environments-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Postman API (Test Cases) Collections Environments API
  description: Subset of the Postman API used to manage collections, environments, and mock servers that hold individual test cases executed by Newman and Postman scripts. Base URL https://api.getpostman.com, authenticated with the X-Api-Key header.
  version: v1
  contact:
    name: Postman API
    url: https://www.postman.com/postman/workspace/postman-public-workspace/documentation/12959542-c8142d51-e97c-46b6-bd77-52bb66712c9a
servers:
- url: https://api.getpostman.com
security:
- apiKey: []
tags:
- name: Environments
paths:
  /environments:
    get:
      summary: List environments used by test cases
      operationId: listEnvironments
      responses:
        '200':
          description: Environments listed.
      tags:
      - Environments
  /environments/{environment_uid}:
    get:
      summary: Get an environment
      operationId: getEnvironment
      parameters:
      - name: environment_uid
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Environment returned.
      tags:
      - Environments
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: X-Api-Key