Skip to content
Sebastian Schlicht edited this page Nov 5, 2013 · 6 revisions

Gallery view

This view displays all images the gallery contains having the same height fitting the window width.

Middleware requests

readGalleryData(galleryIdentifier, height): gallery meta data including meta data for all preview images

{
    "gallery": {
        "name": "",
        "timestamp": "",
        "size": ""
    },
    "images": [
        {
            "title": "",
            "previewUrl": "",
            "width": "",
            "imageUrl": "",
            "numComments": "",
            "uploader": {
                "name": "",
                "url": "",
                "imageUrl": ""
            }
        },
        ...
    ]
}

Image View

This view displays a single image having one of a couple of defined sizes matching the window size best.

Middleware requests

  1. readScaledImage (imageIdentifier): binary image and the image meta data
  2. readCommentsForEntity (imageIdentifier, numComments): load any number of comments for the image displayed

Image Meta Data

{
    "image": {
        "identifier": "",
        "title": "",
        "description": "",
        "uploader": {
            "name": "",
            "url": "",
            "imageUrl": ""
        },
        "timestamp": "",
        "author": "",
        "licence": "",
        "size": {
            "width": "",
            "height": ""
        },
        "requests": "",
        "filesize": "",
        "geodata": {
            "longitude": "",
            "latitude": ""
        },
        "imageIndex": "",
        "gallerySize": "",
        "previousImageUrl": "",
        "nextImageUrl": "",
        "basisUrl": ""
    }
}
Clone this wiki locally