我在web服务中有一个RESTful API,它的资源包括用户、帖子等等。当我请求发布列表(获取/posts)时,我希望只检索每个帖子的有限数据的帖子数组(即主题,作者名称)。当我请求一个具体的帖子(GET / post /42)时,我想检索完整的post对象字段列表,包括大型post主体、关于赞计数、评论计数的其他信息。我想解决这个
我的要求非常简单,我只需要从bigcommerce中的products表中提取几个字段。Densely pack your descriptions with useful information and watch products fly off the shelf."我所需的输出:
我只需要来自bigcommerce的三个领域。descriptions with useful information and watch products