Business logic in dashboard

Imported Google Group message. Original thread at: Redirecting to Google Groups Import Date: 2016-01-19 21:43:16 +0000.
Sender:[email protected].
Date:Wednesday, 13 January 2016 17:12:10 UTC.


I am new in tyk and I still not understanding somethings about how to integrate the tyk API to a business logic. For example, I created a test API in tyk dashboard and I tested it and it work fine when I do the CURL when I tested:

juansapr@altair-dev:/var/www/html/gokaido$ curl -H “Authorization: 5690586845f77201d7000001b704e3dbe63642575445acfa35dfeae9” http://localhost:8080/myapi/get
“args”: {},
“headers”: {
“Accept”: “/”,
“Accept-Encoding”: “gzip”,
“Authorization”: “5690586845f77201d7000001b704e3dbe63642575445acfa35dfeae9”,
“Host”: “”,
“User-Agent”: “curl/7.35.0”
“origin”: “,”,
“url”: “

Now I would like to integrate the API to a business logic but I don’t know how. Can someone guide me of how to do it?

I appreciate the help in advance, Thank you.

Imported Google Group message.
Sender:Martin Buhr.
Date:Thursday, 14 January 2016 15:33:35 UTC.

Hi JC,

I’m not sure what you are trying to do? What business logic? Can you provide an example of what you are trying to achieve?

Many thanks,

  • show quoted text -

  • show quoted text -

You received this message because you are subscribed to the Google Groups “Tyk Community Support” group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web, visit
For more options, visit

Imported Google Group message.
Sender:[email protected].
Date:Friday, 15 January 2016 18:54:45 UTC.

  • show quoted text -

Hi Martin

Thank to your response. Of course I can give you a better example. My complete application will be the TYK api and that api I need to connect it to a no-sql database that in my case is Elastic search and as a result the api will provide the user a response with the data that the user will be requesting, that is one case. Another case, is that I will build a python app that received a json file and serialize to create a request to a Postgres database and as the same that in the first case, TYK will return the reponse with the requested data.
My main objective is to create all the application using TYK but I still don’t know how to connect TYK api gateway with the business logic.

Thank for your help.

Imported Google Group message.
Sender:Martin Buhr.
Date:Friday, 15 January 2016 20:12:40 UTC.


It looks like you’re missing a component :slight_smile: Tyk is a gateway that can sit in front of one of your existing services (usually already exposing a REST API), and takes care of all the heavy lifting of auth, rate limiting, throttling, ACL and monitoring.

So to use Tyk, you will need to write your business logic in some other language or framework and then point Tyk at the API that gets exposed.

You could use our Virtual Endpoints feature to get some minimal logic going, but it’s limited to the JS sandbox.

Hope that helps,