Gallery

Lists public pages (public namespace, no password) with optional case-insensitive search by title/tags. When mine=true and X-Owner-Token is supplied, results are restricted to the caller's own public publications.

get/api/gallery

Request

  • Base URL: https://brewpage.app
  • URL: https://brewpage.app/api/gallery
  • Auth: one of:
    • none
    • API key in header X-Owner-Token

Query parameters

qstring

Case-insensitive search by title or tags

pageinteger

Page number (1-based)

sizeinteger

Items per page (max 100)

sortstring

Sort order: 'date' (newest first, default) or 'views' (most viewed first)

mineboolean

When true, restrict results to the caller's owner_id (requires X-Owner-Token)

Headers

X-Owner-Tokenstring

Owner token; required when mine=true

Response

Paginated gallery items

totalinteger

Total number of matching items across all pages

pageinteger

Current page number (1-based)

sizeinteger

Items per page

Changes

    • breaking

      removed the media type */* for the response with the status

    • info

      the endpoint scheme security OwnerToken was added to the API

    • info

      added the media type application/json for the response with the status

    • breaking

      the response property // became nullable for the status

    • breaking

      the response property // became nullable for the status

    • breaking

      the response property // became nullable for the status

    • breaking

      the response property // became nullable for the status

    • breaking

      the response property // became nullable for the status

    • breaking

      the response property // became nullable for the status