Building a REST Query Language – 构建一个REST查询语言

最后修改: 2015年 4月 11日

中文/混合/英文(键盘快捷键:t)

A mature REST API can be a lot of work, and publishing Resources in a flexible way is usually a balancing act.

一个成熟的REST API会有很多工作,以灵活的方式发布资源通常是一种平衡行为。

On the one hand, you want to allow the client to search for information in many flexible ways. On the other hand, you don’t want to implement too many operations.

一方面,你想让客户以许多灵活的方式搜索信息。另一方面,你也不想实现太多的操作。

A Search/Query Language for the API makes the most sense – it allows for a single, clean operation while still opening up the API for powerful searching.

API的搜索/查询语言是最有意义的–它允许单一的、干净的操作,同时仍然为强大的搜索开放API。