Skip to main content
GET
/
gateway
/
{gateway_topic}
/
mapping
/
version
Get all versions for a mapping
curl --request GET \
  --url https://api.quiva.ai/gateway/{gateway_topic}/mapping/version \
  --header 'Authorization: Bearer <token>'
{
  "body": {
    "results": [
      {
        "subject": "ms.gateway.abcdef123456.mapping-version.get.api.users.1",
        "resource_type": "function",
        "resource": "user-service.getUsers",
        "resource_version": "latest",
        "active": true,
        "description": "Initial version",
        "version": 1,
        "modified": 1713531894,
        "type": "created"
      },
      {
        "subject": "ms.gateway.abcdef123456.mapping-version.get.api.users.2",
        "resource_type": "function",
        "resource": "user-service.getUsersV2",
        "resource_version": "latest",
        "active": true,
        "description": "Improved version with better filtering",
        "version": 2,
        "modified": 1713532000,
        "type": "created"
      }
    ],
    "results_total": 2
  },
  "metadata": {
    "subject": "ms.gateway.abcdef123456.mapping-version.get.api.users.>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

gateway_topic
string
required

Unique topic identifier of the gateway

Query Parameters

method
enum<string>
required

HTTP method for the mapping in uppercase

Available options:
GET,
POST,
PUT,
DELETE,
PATCH,
OPTIONS,
HEAD
path
string
required

URL path for the mapping including the leading slash

Response

List of mapping versions retrieved successfully

body
object
metadata
object