阅读背景:

在基本的Node / Express中,有没有办法将JSON文件视为RESTful资源?

来源:互联网 

I basically have a JSON file which contains an array of 100 objects, each representing a person. I need to treat this JSON file (and this array) as a resource from which I can retrieve ten person objects at a time. Is there a simple way to parse a request such that Node/Express returns to me ten objects of the array at a time based on parameters I send? Here's what a sample request might look like:I basically have a JSON file which contains an




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: