TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Stubb: Build REST API mocks using your file system

46 点作者 knuton超过 12 年前

5 条评论

breckinloggins超过 12 年前
There's another application for this besides mocking: static REST routes.<p>For example, imagine if all github pages had this enabled. Then, by writing the appropriate files, you could provide a REST interface to static assets in an interesting way.<p>I can't quite, at the moment, come up with anything I would actually USE this for, but it would be quite neat.
goldfeld超过 12 年前
I was just writing some dumb hardcoded json mock code here and wondering when my IIS-powered colleague will be available for us to test and implement the proper requests. Then this comes in and allows me code an almost production-ready frontend all by myself on my Microsoftless linux box--which I'll be doing right away.
sktrdie超过 12 年前
I don't get this. How do you handle POST/PUT/DELETE requests with files? It doesn't say much about it in the README.
评论 #4545819 未加载
protez超过 12 年前
Kudos! This is a quite brilliant idea for building simple API prototypes.
blerrrgh超过 12 年前
Well, I think that's rather rude. Why would it mock the use of my file system?
评论 #4545243 未加载