shellphon / quick-local-service

Cli for start web static page
0 stars 0 forks source link

Mock api required #1

Open shellphon opened 7 years ago

shellphon commented 7 years ago

Add mock api for simple frontend use

shellphon commented 7 years ago

https://github.com/caolvchong/mock-api

shellphon commented 7 years ago

What a mock feature I need?

shellphon commented 7 years ago

If I need mock to support both get and post,the post request body in koa may need to be parsed. And I wonder that using the parser such as bodyparser may affect problems to the proxy setting. I use koa-proxy to proxy the request, but if I parse the request of post , it may overide the proxied request body. I should take a look at the source code of koa, then enhance this feature.