# Express FastAPI **Repository Path**: mingzey/express-fast-api ## Basic Information - **Project Name**: Express FastAPI - **Description**: 最小API服务器 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-07-06 - **Last Updated**: 2022-08-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # FastAPI V0.2 一个快速构建API服务的工具 # 使用方法 ```js const { API } = require("../lib/FastAPI/FastAPI"); class Test extends API{ //Override 当API被请求时 onRequest(data,res){ //data 请求携带的数据 //res 返回内容的数据 console.log(data); res.json({ data:"Hello World" }); } } //实例化 并挂载到指定路径和端口 new Test({ path:"/test", port:"8001", }).start(GET);//挂载方法支持 GET POST //访问 http://127.0.0.1:8001/test 即可看到Hello World ```