/var/www/yatta47.log

/var/www/yatta47.log

やったのログ置場です。スクラップみたいな短編が多いかと。

linkdingのAPIで取得した際のレスポンス形式

linkdingのAPIを使ってブックマークを取得した際のレスポンス構造を忘れるので、メモっておきます。

レスポンスの形式

APIで取得してきた場合、以下のレスポンスが返ってきます。

{
  "count": 794,
  "next": "http://172.16.0.10:9090/api/bookmarks/?limit=100&offset=100",
  "previous": null,
  "results": [
    {
      "id": 810,
      "url": "https://dev.to/stack-labs/driftctl-and-terraform-they-re-two-of-a-kind-22p1",
      "title": "",
      "description": "",
      "website_title": "Driftctl and Terraform, they're two of a kind! - DEV Community",
      "website_description": "Driftctl is an Open Source project developed to help Operation team to maintain their... Tagged with terraform, beginners, drifctl.",
      "is_archived": false,
      "unread": false,
      "shared": false,
      "tag_names": [
        "terraform"
      ],
      "date_added": "2023-07-12T01:29:07.676697Z",
      "date_modified": "2023-07-12T01:29:07.676709Z"
    }
  ]
}

過去に記事にした方法で取得しました。

終わりに

レスポンスの形って結構忘れるのでメモとして残しておこうと思います。