Simple API's Documentation

/gallery/random_image

Produces id for random images.

Description:

Returns a random image id (via a list) which can then be retrieved via /gallery/retrieve_image. Parameters: collection - Name of collection; fixed - If true, returns a fixed/consistent image per day.

Sample:

Example #1 - Request random image id: Url: /gallery/random_image

Query: None

Response: { "id": ["<random-image-id>"] }

Example #2 - Request random image id within a specific collection: Url: /gallery/random_image?body={"collection":"nature"}

Query: { "collection": "<name-of-collection>" (Supported collections include "morning", "nature", "night", and "patriots") }

Response: { "id": ["<random-image-id>"] }