最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

According to OpenAPI spec 3.0, how to use query params to sort properties asc or desc? - Stack Overflow

programmeradmin3浏览0评论

Suppose I have my users resource, how do I sort my results using query params? I am thinking something along the lines of:

GET /users?sort=[id,name]

But then how would I specify either results should be asc or desc according to the OpenAPI 3.0 specification.

Is GET even the right method for this purpose?

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论