Login 24/7 Support Community tyk.io

Tyk Datasource

Tyk DataSources are exactly the same as GraphQL or REST DataSources.

The only difference is that you can directly choose an endpoint from your existing APIs using a drop-down. This makes it easier to set up and prevents typos compared to typing in the URL etc.

From a technical perspective there’s another difference:

Tyk DataSources make it possible to call into existing APIs on a Tyk Gateway, even if those are marked as internal. They also add a lot of flexibility as you can add custom middleware, AuthZ as well as AuthN, rate limits, quotas etc. to these.

In general, it is advised to first add all APIs you’d wish to add to a data graph as a dedicated API to Tyk. Then in a second step you’d add these to your data graph.

Then in a second step you’d add these to your data graph.

Note

As of v3.2.0 internal datasorces (TykRESTDataSource and TykGraphQLDataSource) will be deprecated at the API level. Please use HTTPJSONDataSource or GraphQLDataSource respectively.