1.1.3. TagView

GET /tagviews

Get a list of TagViews.

Get a list of TagViews.

Query Parameters
  • distinctOnTag (boolean) – Return only the latest TagView for each scanned tag.

  • tag_id (integer) – Filter TagViews by tag_id.

Example request:

GET /tagviews HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    A list of tagview objects ordered from newest to oldest.

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    [
        {
            "id": 1,
            "tagserial": "string",
            "timestamp": "2020-08-27T10:57:29.275611"
        }
    ]
    

GET /tagviews/{id}

Get a tagview

Get a tagview

Parameters
  • id (integer) – Tag view ID

Example request:

GET /tagviews/{id} HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    A tagview object

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {
        "id": 1,
        "tagserial": "string",
        "timestamp": "2020-08-27T10:57:29.275611"
    }
    

  • 404 Not Found

    TagView not found.

    Example response:

    HTTP/1.1 404 Not Found
    Content-Type: application/json
    
    {}
    

DELETE /tagviews/{id}

Delete a tag view

Parameters
  • id (integer) – Tag view ID

Status Codes
  • 204 No Content

    TagView deleted

    Example response:

    HTTP/1.1 204 No Content
    Content-Type: application/json
    
    {}
    

  • 400 Bad Request

    Bad input.

    Example response:

    HTTP/1.1 400 Bad Request
    Content-Type: application/json
    
    {}
    

  • 404 Not Found

    TagView not found

    Example response:

    HTTP/1.1 404 Not Found
    Content-Type: application/json
    
    {}
    

GET /tagviews

Get a list of TagViews.

Get a list of TagViews.

Query Parameters
  • distinctOnTag (boolean) – Return only the latest TagView for each scanned tag.

  • tag_id (integer) – Filter TagViews by tag_id.

Example request:

GET /tagviews HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    A list of tagview objects ordered from newest to oldest.

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    [
        {
            "id": 1,
            "tagserial": "string",
            "timestamp": "2020-08-27T10:57:29.275611"
        }
    ]
    

GET /tagviews/{id}

Get a tagview

Get a tagview

Parameters
  • id (integer) – Tag view ID

Example request:

GET /tagviews/{id} HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    A tagview object

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {
        "id": 1,
        "tagserial": "string",
        "timestamp": "2020-08-27T10:57:29.275611"
    }
    

  • 404 Not Found

    TagView not found.

    Example response:

    HTTP/1.1 404 Not Found
    Content-Type: application/json
    
    {}
    

DELETE /tagviews/{id}

Delete a tag view

Parameters
  • id (integer) – Tag view ID

Status Codes
  • 204 No Content

    TagView deleted

    Example response:

    HTTP/1.1 204 No Content
    Content-Type: application/json
    
    {}
    

  • 400 Bad Request

    Bad input.

    Example response:

    HTTP/1.1 400 Bad Request
    Content-Type: application/json
    
    {}
    

  • 404 Not Found

    TagView not found

    Example response:

    HTTP/1.1 404 Not Found
    Content-Type: application/json
    
    {}