Pool Tag v2 /api/v2/public/:principal_slug/pool/tags/:id

Überblick

Klasse / Datentyp
Pool Tag
Response Formats
JSON
API Version
v2
Öffentlich erreichbar
true
HTTP Methode
GET
Zuletzt aktualisiert

/api/v2/public/:principal_slug/pool/tags/:id

Ähnliche Schnittstellen

/api/v2/:principal_slug/pool/tags/:id GET

Parameter

Query Parameter

Schlüssel
id Pflicht

Pool::Tag ID Eindeutige Identifikation eines Pool::Tags

principal_slug Pflicht

Backend::Principal Slug / ID

Beispiel Rückgabe

{
  "data" : {
    "id"                        : "hochzeiten",
    "label"                     : "Hochzeiten",
    "description_short"         : "",
    "description"               : "",
    "tag_assignments_count"     : 392,
    "assigned_resource_classes" : [
      {
        "resource_class" : "Photography::Gallery",
        "count"          : 6,
        "public_api_url" : "http://squibble.me/api/v2/public/patricklehmann-punkt-ch-photography/pool/tags/hochzeiten/assigned_resources_by_resource_class/Photography::Gallery"
      },
      {
        "resource_class" : "Photography::Image",
        "count"          : 183,
        "public_api_url" : "http://squibble.me/api/v2/public/patricklehmann-punkt-ch-photography/pool/tags/hochzeiten/assigned_resources_by_resource_class/Photography::Image"
      }
    ],
    "parent"                    : null,
    "ancestors"                 : [],
    "children"                  : [
      {"id" : "brautpaar-shooting","label" : "Brautpaar Shooting"},
      {"id" : "reportage-1","label" : "Reportage"},
      {"id" : "engagement-shooting-1","label" : "Engagement Shooting"}
    ]
  },
  "meta" : {
    "resource_class" : "Pool::Tag",
    "id"             : "5ac0c33856820b4f119519a1",
    "to"             : {"string" : "Hochzeiten","param" : "hochzeiten"},
    "created_at"     : "2018-04-01T13:32:08.579+02:00",
    "updated_at"     : "2018-08-16T00:35:15.360+02:00",
    "principal"      : {
      "id"       : "59ecfe8f56820b013284b613",
      "to_param" : "patricklehmann-punkt-ch-photography"
    },
    "can"            : {"update" : false,"destroy" : false}
  }
}