Mockapi
A quick and dirty api framework in node. Great for quickly mocking out or prototyping an api.
Install / Use
/learn @epixa/MockapiREADME
mockapi - Bootstrap your api
A quick and dirty API framework, mockapi is best suited for rapidly building API prototypes or mock APIs. It's built on express, but its specifically tailored for building REST APIs that return JSON.
Installation
$ npm install -g mockapi
Usage / Getting Started
Simply run mockapi from within a working directory, run npm install, and
your api is bootstrapped and ready to go:
$ cd /path/to/your/mockapi/project
$ mockapi
$ npm install
Creating your own routes
While the included "Hello World" route is crazy awesome, you're bound to want to build in your own routes. It is your API, after all!
You can create all of your routes in the routes directory. For convenience,
all routing modules in that directory are loaded by default into the routes
variable in app.js. All you need to do is create your route definitions via
express:
routes/myRoute.js
exports.get = function(req, res){
res.json({ foo: "bar" });
};
app.js
app.get('/my/route', routes.myRoute.get);
Run the server
No surprise here, just run app.js through node:
$ node app.js
Related Skills
node-connect
351.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
351.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
351.8kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
