API configuration Not working

Imported Google Group message. Original thread at: Redirecting to Google Groups Import Date: 2016-01-19 21:27:41 +0000.
Sender:Kasinath Nalla.
Date:Monday, 19 October 2015 20:50:07 UTC+1.

Hi Martin,
Based on the documenttion, I added below info . I saved as test2.json in apps folder.
in the tyk.conf I see it pointed to “apps” … I tried changing to “/home/**apps” or “apps/” but Nothing works… Let me know what I am doing wrong.

attached tyk.conf

test2.json
{
“name”: “Tyk Test API”,
“api_id”: “2321”,
“org_id”: “default1”,
“active”: true,
“definition”: {
“location”: “”,
“key”: “”
},
“use_keyless”: true,
“auth”: {
“auth_header_name”: “”
},
“version_data”: {
“not_versioned”: true,
“versions”: {
“Default”: {
“name”: “Default”,
“expires”: “3000-01-02 15:04”,
“paths”: {
“ignored”: [],
“white_list”: [],
“black_list”: []
}
}
}
},
“proxy”: {
“listen_path”: “/quickstart/”,
“target_url”: “http://httpbin.org/”,
“strip_listen_path”: true
}
}

Imported Google Group message.
Sender:Martin Buhr.
Date:Monday, 19 October 2015 20:52:51 UTC+1.

Hi Kasinath,

Set use_db_app_configs to false for Tyk to load configurations from disk.

Cheers,
Martin

  • 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 https://groups.google.com/d/msgid/tyk-community-support/891171af-6588-40a6-9901-f3e9b1328a48%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Imported Google Group message.
Sender:Kasinath Nalla.
Date:Monday, 19 October 2015 21:00:09 UTC+1.

If I want put this in the db? then Should I put it in mongo or redis … if mongo then what is the name of the collection… any documentation?
Thanks

  • show quoted text -

Imported Google Group message.
Sender:Martin Buhr.
Date:Monday, 19 October 2015 21:03:34 UTC+1.

Hi Kasinath,

If you want to put it into Mongo you should use the dashboard or the advanced Management API (also part of the dashboard), it has a slightly different format.

If you want to see the structure, take a look at the advanced management API documentation for adding an API.

All the details for the DB name, collection and other details are in the source code or in the Tyk.conf file.

Thanks,
Martin


From: Kasinath Nalla [email protected]
Sent: Monday, October 19, 2015 21:00
Subject: Re: API configuration Not working
To: Tyk Community Support [email protected]
Cc: [email protected]

  • show quoted text -

To view this discussion on the web, visit https://groups.google.com/d/msgid/tyk-community-support/811e8b49-8a0e-47d8-98c2-49c581d01319%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Imported Google Group message.
Sender:Kasinath Nalla.
Date:Monday, 19 October 2015 21:07:43 UTC+1.

Thanks Martin.

  • show quoted text -