Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter rsacksteder

    (@rsacksteder)

    Here are the full REST responses when switching between versions of the plugin…

    With plugin version 2.0.2:

    {
        "id": 14399,
        "date": "2020-12-14T18:38:03",
        "date_gmt": "2020-12-15T02:38:03",
        "guid": {
            "rendered": "https://example.com/?p=14399"
        },
        "modified": "2020-12-14T18:38:03",
        "modified_gmt": "2020-12-15T02:38:03",
        "slug": "",
        "status": "draft",
        "type": "post",
        "link": "https://example.com/?p=14399",
        "title": {
            "rendered": "test"
        },
        "content": {
            "rendered": "\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"150\" height=\"150\" src=\"https://example.com/wp-content/uploads/2020/12/test-150x150-1.png\" alt=\"\" class=\"wp-image-14445\" srcset=\"https://example.com/wp-content/uploads/2020/12/test-150x150-1.png 150w, https://example.com/wp-content/uploads/2020/12/test-150x150-1-75x75.png 75w\" sizes=\"(max-width: 150px) 100vw, 150px\" /></figure>\n\n\n\n<p></p>\n",
            "protected": false
        },
        "excerpt": {
            "rendered": "\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"150\" height=\"150\" src=\"https://example.com/wp-content/uploads/2020/12/test-150x150-1.png\" alt=\"\" class=\"wp-image-14445\" srcset=\"https://example.com/wp-content/uploads/2020/12/test-150x150-1.png 150w, https://example.com/wp-content/uploads/2020/12/test-150x150-1-75x75.png 75w\" sizes=\"(max-width: 150px) 100vw, 150px\" /></figure>\n\n\n\n<p></p>\n"
        },
        "author": 15,
        "featured_media": 0,
        "comment_status": "open",
        "ping_status": "open",
        "sticky": false,
        "template": "",
        "format": "standard",
        "meta": {
            "ngg_post_thumbnail": 0
        },
        "categories": [
            1
        ],
        "tags": [],
        "plain": {
            "rendered": "",
            "protected": false
        },
        "_links": {
            "self": [
                {
                    "href": "https://example.com/wp-json/wp/v2/posts/14399"
                }
            ],
            "collection": [
                {
                    "href": "https://example.com/wp-json/wp/v2/posts"
                }
            ],
            "about": [
                {
                    "href": "https://example.com/wp-json/wp/v2/types/post"
                }
            ],
            "author": [
                {
                    "embeddable": true,
                    "href": "https://example.com/wp-json/wp/v2/users/15"
                }
            ],
            "replies": [
                {
                    "embeddable": true,
                    "href": "https://example.com/wp-json/wp/v2/comments?post=14399"
                }
            ],
            "version-history": [
                {
                    "count": 17,
                    "href": "https://example.com/wp-json/wp/v2/posts/14399/revisions"
                }
            ],
            "predecessor-version": [
                {
                    "id": 14448,
                    "href": "https://example.com/wp-json/wp/v2/posts/14399/revisions/14448"
                }
            ],
            "wp:attachment": [
                {
                    "href": "https://example.com/wp-json/wp/v2/media?parent=14399"
                }
            ],
            "wp:term": [
                {
                    "taxonomy": "category",
                    "embeddable": true,
                    "href": "https://example.com/wp-json/wp/v2/categories?post=14399"
                },
                {
                    "taxonomy": "post_tag",
                    "embeddable": true,
                    "href": "https://example.com/wp-json/wp/v2/tags?post=14399"
                }
            ],
            "curies": [
                {
                    "name": "wp",
                    "href": "https://api.w.org/{rel}",
                    "templated": true
                }
            ]
        }
    }

    With plugin version 1.2.7:

    {
        "id": 14399,
        "date": "2020-12-14T18:38:03",
        "date_gmt": "2020-12-15T02:38:03",
        "guid": {
            "rendered": "https://example.com/?p=14399"
        },
        "modified": "2020-12-14T18:38:03",
        "modified_gmt": "2020-12-15T02:38:03",
        "slug": "",
        "status": "draft",
        "type": "post",
        "link": "https://example.com/?p=14399",
        "title": {
            "rendered": "test"
        },
        "content": {
            "rendered": "<figure class=\"wp-block-image size-large\"><a href=\"https://www.google.com/\" class=\"custom-link no-lightbox\" title=\"test-150×150\" aria-label=\"\" onclick=\"event.stopPropagation()\" target=\"_blank\" rel=\"\"><img loading=\"lazy\" width=\"150\" height=\"150\" src=\"https://example.com/wp-content/uploads/2020/12/test-150x150-1.png\" alt=\"\" class=\"wp-image-14445\" srcset=\"https://example.com/wp-content/uploads/2020/12/test-150x150-1.png 150w, https://example.com/wp-content/uploads/2020/12/test-150x150-1-75x75.png 75w\" sizes=\"(max-width: 150px) 100vw, 150px\" /></a></figure>\n\n\n\n<p></p>",
            "protected": false
        },
        "excerpt": {
            "rendered": "<figure class=\"wp-block-image size-large\"><a href=\"https://www.google.com/\" class=\"custom-link no-lightbox\" title=\"test-150×150\" aria-label=\"\" onclick=\"event.stopPropagation()\" target=\"_blank\" rel=\"\"><img loading=\"lazy\" width=\"150\" height=\"150\" src=\"https://example.com/wp-content/uploads/2020/12/test-150x150-1.png\" alt=\"\" class=\"wp-image-14445\" srcset=\"https://example.com/wp-content/uploads/2020/12/test-150x150-1.png 150w, https://example.com/wp-content/uploads/2020/12/test-150x150-1-75x75.png 75w\" sizes=\"(max-width: 150px) 100vw, 150px\" /></a></figure>\n\n\n\n<p></p>"
        },
        "author": 15,
        "featured_media": 0,
        "comment_status": "open",
        "ping_status": "open",
        "sticky": false,
        "template": "",
        "format": "standard",
        "meta": {
            "ngg_post_thumbnail": 0
        },
        "categories": [
            1
        ],
        "tags": [],
        "plain": {
            "rendered": "",
            "protected": false
        },
        "_links": {
            "self": [
                {
                    "href": "https://example.com/wp-json/wp/v2/posts/14399"
                }
            ],
            "collection": [
                {
                    "href": "https://example.com/wp-json/wp/v2/posts"
                }
            ],
            "about": [
                {
                    "href": "https://example.com/wp-json/wp/v2/types/post"
                }
            ],
            "author": [
                {
                    "embeddable": true,
                    "href": "https://example.com/wp-json/wp/v2/users/15"
                }
            ],
            "replies": [
                {
                    "embeddable": true,
                    "href": "https://example.com/wp-json/wp/v2/comments?post=14399"
                }
            ],
            "version-history": [
                {
                    "count": 17,
                    "href": "https://example.com/wp-json/wp/v2/posts/14399/revisions"
                }
            ],
            "predecessor-version": [
                {
                    "id": 14448,
                    "href": "https://example.com/wp-json/wp/v2/posts/14399/revisions/14448"
                }
            ],
            "wp:attachment": [
                {
                    "href": "https://example.com/wp-json/wp/v2/media?parent=14399"
                }
            ],
            "wp:term": [
                {
                    "taxonomy": "category",
                    "embeddable": true,
                    "href": "https://example.com/wp-json/wp/v2/categories?post=14399"
                },
                {
                    "taxonomy": "post_tag",
                    "embeddable": true,
                    "href": "https://example.com/wp-json/wp/v2/tags?post=14399"
                }
            ],
            "curies": [
                {
                    "name": "wp",
                    "href": "https://api.w.org/{rel}",
                    "templated": true
                }
            ]
        }
    }
    • This reply was modified 4 years, 3 months ago by rsacksteder.
Viewing 1 replies (of 1 total)