Imported Google Group message. Original thread at: Redirecting to Google Groups Import Date: 2016-01-19 21:02:37 +0000.
Sender:Marc Calder
.
Date:Friday, 24 October 2014 18:19:43 UTC+1.
So I’m trying (desperately) to get a Tyk installation up and running. I’ve met with partial success, and am now at an impasse.
I’ve installed tyk and have proved proper operation using the quickstart json config. I’ve installed the tyk-analytics package and have gotten it up and running. I’ve created an org and a user, and am able to log into the web site okay. So far so good.
I created an api definition, and read this helpful text on the right of the screen: "Help
Creating a new API will create a new subdomain that will begin accepting requests and proxying them to your defined endpoint immediately.
The problem I have is that there is no indication anywhere what this new subdomain is called or how the proxy responds to it.
I’ve pulled the api definition out of the tyk_apis mongo collection and here it is for illustration:
{ “api_model” : { }, “_id” : ObjectId(“544a867bac40f217a1000002”), “name” : “httpbinopen”, “api_id” : “d084cb7f9d914802709a7f9b694694ae”, “org_id” : “544a85ebac40f217a1000001”, “use_oauth2” : false, “use_keyless” : true, “enable_signature_checking” : false, “oauth_meta” : { “allowed_access_types” : [ ], “allowed_authorize_types” : [ “token” ], “auth_login_redirect” : “” }, “notifications” : { “shared_secret” : “”, “oauth_on_keychange_url” : “” }, “definition” : { “location” : “header”, “key” : “” }, “version_data” : { “not_versioned” : true, “versions” : { “Default” : { “name” : “Default”, “expires” : “2014-10-24 00:00”, “paths” : { “ignored” : [ ], “white_list” : [ ], “black_list” : [ ] } } } }, “proxy” : { “listen_path” : “/d084cb7f9d914802709a7f9b694694ae/”, “target_url” : “http://httpbin.org”, “strip_listen_path” : true }, “auth” : { “auth_header_name” : “” }, “active” : true }
As you can see, the name of the api is httpbinopen (for “An api to proxy httpbin.org” with open - keyless - access).
Can you please tell me where to go from here? It would be really great if you could give me an example bit of curl that would illustrate how to access a newly created api.
Thanks!