'api versioning in wso2

In WSO2 API Manager v3.2.0 I published v1 of my api that has multiple paths. (example below is shortened, the API actually has 30 different paths).

How do I publish a v2 version for just one of these paths (or resources in wso2 lingo).

I.e. I ONLY want to add a new v2 /status api (/xyz/v2/status), but I don't want v2 versions of the other resources.

e.g.:

swagger: '2.0'
info:
  description: My Api
  version: v1
  title: MyApi
security:
  - default: []
paths:
  /health:
    get:
      parameters: []
      responses:
        '200':
          description: health check
  '/status/{id}':
    get:
      parameters:
        - name: id
          in: path
          required: true
          type: string
  '/update/{id}':
    post:
      parameters:
        - name: id
          in: path
          required: true
          type: string
        - in: body
          name: Payload
          description: Request Body
          required: false
          schema:
            type: object
            properties:
              payload:
                type: string


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source