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

Auflistung der verbundenen Datensätze

Diese Schnittstelle retourniert die verbundenen Datensätze eines Pool::Tags. Die verbundenen Datensätze werden in Cluster gruppiert, damit die einzelnen Datentypen unterschieden werden können.

Ü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/assigned_resources

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",
    "assigned_resources" : [
      {
        "meta"       : {
          "resource_class" : "Photography::Gallery",
          "total_count"    : 3,
          "max_updated_at" : "2018-08-26T01:39:46.567+00:00"
        },
        "collection" : [
          {
            "id"             : "hochzeit-merve-und-hakan",
            "to_s"           : "Hochzeit Merve und Hakan",
            "public_api_url" : "http://squibble.me/api/v2/public/patricklehmann-punkt-ch-photography/photography/galleries/hochzeit-merve-und-hakan"
          },
          {
            "id"             : "hochzeit-samja-und-sirio",
            "to_s"           : "Hochzeit Samja und Sirio",
            "public_api_url" : "http://squibble.me/api/v2/public/patricklehmann-punkt-ch-photography/photography/galleries/hochzeit-samja-und-sirio"
          },
          {
            "id"             : "engagement-shooting-samja-und-sirio",
            "to_s"           : "Engagement Shooting Samja und Sirio",
            "public_api_url" : "http://squibble.me/api/v2/public/patricklehmann-punkt-ch-photography/photography/galleries/engagement-shooting-samja-und-sirio"
          }
        ]
      },
      {
        "meta"       : {
          "resource_class" : "Photography::Image",
          "total_count"    : 3,
          "max_updated_at" : "2018-08-25T19:14:26.646+00:00"
        },
        "collection" : [
          {
            "id"             : "5ab53fed56820b045c710cb7",
            "to_s"           : "IMG_20180323_170111_Hochzeit_Merve_und_Hakan_Arioglu_00526.jpg",
            "public_api_url" : "http://squibble.me/api/v2/public/patricklehmann-punkt-ch-photography/photography/images/img-20180323-170111-hochzeit-merve-und-hakan-arioglu-00526"
          },
          {
            "id"             : "5ab53fed56820b045c710d07",
            "to_s"           : "IMG_20180323_170103_Hochzeit_Merve_und_Hakan_Arioglu_00522.jpg",
            "public_api_url" : "http://squibble.me/api/v2/public/patricklehmann-punkt-ch-photography/photography/images/img-20180323-170103-hochzeit-merve-und-hakan-arioglu-00522"
          },
          {
            "id"             : "5ab53fef56820b69eb711268",
            "to_s"           : "IMG_20180323_170054_Hochzeit_Merve_und_Hakan_Arioglu_00516.jpg",
            "public_api_url" : "http://squibble.me/api/v2/public/patricklehmann-punkt-ch-photography/photography/images/img-20180323-170054-hochzeit-merve-und-hakan-arioglu-00516"
          }
        ]
      }
    ]
  },
  "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}
  }
}