I'm trying to configure edgemicro in my local infrastructure and I'm trying to execute HTTP calls through it. It responds with
{"message":"no match found for /localtest","status":404}
I expect /localtest to be there but it is not. To see what is wrong, I would like to see a list of endpoints that actually do exist. Is there a way get such list on edgemicro machine?
The "endpoints" are the basepaths of your "edgemicro_" prefixed proxies which reside in Edge, so you could just use the UI and search "edgemicro_" in API Proxies.
So for your API call to work, you should have an edgemicro aware proxy with "/locattest" as the basepath.
Given that, if you start edgemicro in debug mode using:
DEBUG=* edgemicro start ...
You will see the edgemicro_ prefixed proxies that are deployed and the basePath, for example:
... proxies {"apiProxies" : [{ "apiProxyName": "edgemicro_hello", "revision": "1", "proxyEndpoint": { "name": "default", "basePath": "/edgemicro-hello" }, "targetEndpoint": { "name": "default", "url": "http://mocktarget.apigee.net" } }] ...
To get this list at any time after configuration, you can curl to the bootstrap URL found in the config.yaml file.
For example:
curl https://edgemicroservices.apigee.net/edgemicro/bootstrap/organization/{ORG}/environment/{ENV} -u {key}:{secret}
User | Count |
---|---|
3 | |
2 | |
1 | |
1 | |
1 |