curl --request GET \
--url https://{tenant}/api/assets/{assetID} \
--header 'Authorization: Bearer <token>'{
"_id": "363634636164353135373135656333663739386262636433",
"data": {
"info": {
"title": "Our Sample OAS",
"version": "1.0.0"
},
"openapi": "3.0.3",
"paths": {
"/anything": {
"post": {
"operationId": "anythingpost",
"responses": {
"200": {
"description": "Post created"
}
}
}
}
},
"x-tyk-api-gateway": {
"middleware": {
"global": {
"cache": {
"cacheAllSafeRequests": true,
"enabled": true,
"timeout": 5
}
},
"operations": {
"anythingpost": {
"requestSizeLimit": {
"enabled": true,
"value": 100
}
}
}
}
}
},
"description": "My first template",
"id": "my-unique-template-id",
"kind": "oas-template",
"last_updated": "2024-05-21T17:18:57.294797+03:00",
"name": "my-template",
"org_id": "5e9d9544a1dcd60001d0ed20"
}Retrieve an asset by ID.
curl --request GET \
--url https://{tenant}/api/assets/{assetID} \
--header 'Authorization: Bearer <token>'{
"_id": "363634636164353135373135656333663739386262636433",
"data": {
"info": {
"title": "Our Sample OAS",
"version": "1.0.0"
},
"openapi": "3.0.3",
"paths": {
"/anything": {
"post": {
"operationId": "anythingpost",
"responses": {
"200": {
"description": "Post created"
}
}
}
}
},
"x-tyk-api-gateway": {
"middleware": {
"global": {
"cache": {
"cacheAllSafeRequests": true,
"enabled": true,
"timeout": 5
}
},
"operations": {
"anythingpost": {
"requestSizeLimit": {
"enabled": true,
"value": 100
}
}
}
}
}
},
"description": "My first template",
"id": "my-unique-template-id",
"kind": "oas-template",
"last_updated": "2024-05-21T17:18:57.294797+03:00",
"name": "my-template",
"org_id": "5e9d9544a1dcd60001d0ed20"
}Was this page helpful?