News for hackers. Stuff that matters.
Re:Show HN: API Happiness is not a 'nice-to-have' by jrochkind1 on Wednesday April 02, 2014 @12:05PM (#7516490)
I'm having trouble figuring out what this actually does from the web page, although it sounds intriguing.

Although if other HN users aren't having that trouble, maybe it's me, not you.

Do you essentially use this as a proxy, where your apps contact it, and it contacts the apis, so it can keep stats on your api use? That's what the three phrases on the home page sort of imply.

But then when I watch the video... it all goes by so fast, but it's giving me the idea that I had it wrong, and it's doing something else (CORS? What would CORS have to do with what I thought it was doing?)

Is it too much to ask for a couple sentences/paragraphs explaining what it does, instead of just a couple words and a video?

Re:Show HN: API Happiness is not a 'nice-to-have' by levirosol on Wednesday April 02, 2014 @12:10PM (#7516536)
Reading the docs, I understand it to be a proxy for your APIs. You setup a service for api.somedomain.com, and then you change that URL in your app to be someprefix.apitools.com.

Being a developer who heavily utilizes internal and external APIs, I like the idea of a tool like this, however, I'm really hesitant to run all calls through a single 3rd party. Especially one this green.

The next question I have is, what about auth? It seems like it could get really messy / insecure using something like this.

Seems like a great project to open source and to run on your own hardware.

Re:Show HN: API Happiness is not a 'nice-to-have' by Lambdanaut on Wednesday April 02, 2014 @12:55PM (#7516944)
This is the understanding I got as well.

Another concern of mine is that now you're running all calls to an API through yet another service, increasing latency on potentially frequently-called methods.

It's certainly not for all API calls.

Re:Show HN: API Happiness is not a 'nice-to-have' by _mikz on Wednesday April 02, 2014 @02:04PM (#7517626)
We are planning on-premise version which should work for all API calls - https://news.ycombinator.com/item?id=7517338
Re:Show HN: API Happiness is not a 'nice-to-have' by _mikz on Wednesday April 02, 2014 @01:26PM (#7517227)
You can write Lua middleware to do the Auth if you want. The traffic monitor website is protected by us, but the actual proxy is not authenticated as it could interfere with API you are using.
Re:Show HN: API Happiness is not a 'nice-to-have' by jrochkind1 on Wednesday April 02, 2014 @01:44PM (#7517434)
Huh, so using this service will turn any authenticated API into an open api, usable by anyone that knows the URL?

That seems... unsuitable for most non-public apis.

Re:Show HN: API Happiness is not a 'nice-to-have' by _mikz on Wednesday April 02, 2014 @02:03PM (#7517616)
It is a proxy, so if you don't explicitly add keys with a middleware the API will still need the auth.

But you can do key mapping: if you pass your key it will transform it to the real one and if not, then it will just return 403.

Re:Show HN: API Happiness is not a 'nice-to-have' by mbesto on Wednesday April 02, 2014 @01:47PM (#7517463)
Isn't this effectively what Mashape does?

http://mashape.com/

Re:Show HN: API Happiness is not a 'nice-to-have' by njyx on Wednesday April 02, 2014 @02:45PM (#7517973)
No - Mashape is a marketplace to signup for APIs. You can call APIs through the mashape but you don't get the middleware control layer or detailed alerts/analytics.
Re:Show HN: API Happiness is not a 'nice-to-have' by _mikz on Wednesday April 02, 2014 @12:11PM (#7516541)
We had other landing page prepared. If you refresh now, you should see it.
Re:Show HN: API Happiness is not a 'nice-to-have' by jrochkind1 on Wednesday April 02, 2014 @12:20PM (#7516620)
Thanks, that is more clear, to me anyway!

Although, for the technical audience (and isn't a technical audience the only audience for this product?), actually using the word 'proxy' somewhere might help make it even more clear. Although I could be wrong, maybe I'm not representative, but it would make it clearer for me anyway.

Re:Show HN: API Happiness is not a 'nice-to-have' by _mikz on Wednesday April 02, 2014 @12:27PM (#7516691)
Agree. Will try to do that. Thanks!