Skip to content

Add route to latest screenshot for use in automation #15

Description

@vollstock

It would be great to have a direct routes to screenshots (and thumbnails).

This way we can display the current status in an automation system without checking the latest date from JSON via the REST Api.

Latest

GET /tooloop/api/v1.0/screenshot/latest
http://<IP>//screenshots/latest
http://<IP>//screenshots/latest?size=thumbnail

Index

GET /tooloop/api/v1.0/screenshot/<int:index>
http://<IP>//screenshots/<int:index>
http://<IP>//screenshots/<int:index>?size=thumbnail

Date

GET /tooloop/api/v1.0/screenshot/date/<string:date>
http://<IP>//screenshots/date/<string:date>
http://<IP>//screenshots/date/<string:date>?size=thumbnail

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions