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.

Stubb: Build REST API mocks using your file system

46 pointsby knutonover 12 years ago

5 comments

breckinlogginsover 12 years ago
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.
goldfeldover 12 years ago
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.
sktrdieover 12 years ago
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 未加载
protezover 12 years ago
Kudos! This is a quite brilliant idea for building simple API prototypes.
blerrrghover 12 years ago
Well, I think that's rather rude. Why would it mock the use of my file system?
评论 #4545243 未加载