TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

My Personal API

18 pointsby oakazover 11 years ago

10 comments

sotiriskover 11 years ago
At one point in the future we should really start differentiating between an API and just raw JSON on plain sight.
评论 #6914074 未加载
kamaln7over 11 years ago
<i>shameless self-plug</i><p>I&#x27;ve set up something similar on my personal domain, except that it outputs JSON only if it&#x27;s a curl request (i.e. if the user agent begins with curl) while browsing to it using a regular browser serves the actual website:<p>$ curl kamal.io<p>nginx config: <a href="http://pastebin.com/VBuYPHbT" rel="nofollow">http:&#x2F;&#x2F;pastebin.com&#x2F;VBuYPHbT</a>
cateyeover 11 years ago
Technically it is an elegant and neat solution. But I hesitate about the social impact.<p>My first reaction is that I don&#x27;t want to publish this kind of information about my self. It can be really dangerous when things like religion comes into the wrong hands.
joshguthrieover 11 years ago
Just getting JSON doesn&#x27;t make it an API.<p>Why can&#x27;t I POST you a message? Or myself as a new acquaintance? Once I&#x27;m your friend, why not POST a meetup for the two of us so I can PUT a new date in it or DELETE it later?
chewxyover 11 years ago
Assuming a RESTful vocabulary, is this only GET?<p>What if I want to POST something to you? Or DELETE that kimchi burrito thing from your favourite foods?<p>Wouldn&#x27;t it be cooler to support more verbs?
oakazover 11 years ago
In addition to humans, you can use personal-api for cats, as well: <a href="https://blackbear.api.azer.io" rel="nofollow">https:&#x2F;&#x2F;blackbear.api.azer.io</a><p>It should also work for other animals.
prottmannover 11 years ago
Only names like &quot;favorite drinks&quot; are not so nice to use within an App, better name it &quot;favorite-drinks&quot; &#x2F; &quot;favorite_drinks&quot; &#x2F; &quot;favoriteDrinks&quot;
oakazover 11 years ago
...and if you&#x27;d like to create yours, this makes it really easy: <a href="http://github.com/azer/personal-api" rel="nofollow">http:&#x2F;&#x2F;github.com&#x2F;azer&#x2F;personal-api</a>
评论 #6914077 未加载
评论 #6914202 未加载
dimatterover 11 years ago
male: true should be sex: &quot;male&quot;
评论 #6914097 未加载
评论 #6914101 未加载
aayushranautover 11 years ago
Pretty nice actually, but can&#x27;t understand why one would like to use this. I mean if someone wanted this info to implement the API on their app, wouldn&#x27;t it be tiring to go through millions of websites to get user data?<p>This sounds interesting, and maybe something like Gravatar can built upon it.
评论 #6914441 未加载