How to return random items RESTfully?

后端 未结 5 1535
有刺的猬
有刺的猬 2021-02-06 03:19

My design exposes two kinds of resources:

  1. Images
  2. Tags

I would like clients to be able to request random images by their tag(s). For example

5条回答
  •  梦谈多话
    2021-02-06 03:41

    I'd do something like http://foo.com/image/tagged/sometag/random and stop losing sleep over it.

提交回复
热议问题