---
title: "Retrieves templates from database based on 'from' and 'to' connector 'id's"
method: GET
path: "/template/all/{fromConnectorId}/{toConnectorId}"
tags: ["Template"]
deprecated: true
---

# Retrieves templates from database based on 'from' and 'to' connector 'id's

`GET /template/all/{fromConnectorId}/{toConnectorId}`

> **Deprecated.**

## Path parameters

- `fromConnectorId` integer, required
- `toConnectorId` integer, required

## Response `200`

Templates for connectors have been retrieved successfully

- TemplateResource[]
  - `templateId` string
  - `name` string
  - `description` string
  - `version` string
  - `link` string
  - `connection` CtionTemplateResource
    - `nodeId` integer
    - `connectionId` integer
    - `title` string
    - `description` string
    - `fromConnector` CtorTemplateResource
      - `nodeId` integer
      - `connectorId` integer
      - `title` string
      - `invoker` InvokerTemplateResource
        - `name` string
      - `methods` object
      - `operators` object
    - `toConnector` CtorTemplateResource
      - `nodeId` integer
      - `connectorId` integer
      - `title` string
      - `invoker` InvokerTemplateResource
        - `name` string
      - `methods` object
      - `operators` object
    - `fieldBinding` object
    - `ui` object

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `500` — Internal Error
- `502` — Bad Gateway

---

[API](https://skmtc.net/opencelium/apis/opencelium-api.md) · [All operations](https://skmtc.net/opencelium/apis/opencelium-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/opencelium/opencelium-api/revisions/82ed767ffb65/schema)
