Skip to content

Commit 22c3975

Browse files
REST API: Regenerate the wp-api.js fixture for the comment-types routes.
tests/qunit/fixtures/wp-api-generated.js is written by test_build_wp_api_client_fixtures and diff-checked in CI; the new /wp/v2/comment-types routes must be reflected in the committed copy.
1 parent e06ca77 commit 22c3975

1 file changed

Lines changed: 65 additions & 7 deletions

File tree

‎tests/qunit/fixtures/wp-api-generated.js‎

Lines changed: 65 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,7 @@ mockedApiResponse.Schema = {
2222
"wp-block-editor/v1",
2323
"wp-abilities/v1"
2424
],
25-
"authentication": {
26-
"application-passwords": {
27-
"endpoints": {
28-
"authorization": "http://example.org/wp-admin/authorize-application.php"
29-
}
30-
}
31-
},
25+
"authentication": [],
3226
"routes": {
3327
"/": {
3428
"namespace": "",
@@ -10823,6 +10817,70 @@ mockedApiResponse.Schema = {
1082310817
}
1082410818
]
1082510819
},
10820+
"/wp/v2/comment-types": {
10821+
"namespace": "wp/v2",
10822+
"methods": [
10823+
"GET"
10824+
],
10825+
"endpoints": [
10826+
{
10827+
"methods": [
10828+
"GET"
10829+
],
10830+
"args": {
10831+
"context": {
10832+
"description": "Scope under which the request is made; determines fields present in response.",
10833+
"type": "string",
10834+
"enum": [
10835+
"view",
10836+
"embed",
10837+
"edit"
10838+
],
10839+
"default": "view",
10840+
"required": false
10841+
}
10842+
}
10843+
}
10844+
],
10845+
"_links": {
10846+
"self": [
10847+
{
10848+
"href": "http://example.org/index.php?rest_route=/wp/v2/comment-types"
10849+
}
10850+
]
10851+
}
10852+
},
10853+
"/wp/v2/comment-types/(?P<type>[\\w-]+)": {
10854+
"namespace": "wp/v2",
10855+
"methods": [
10856+
"GET"
10857+
],
10858+
"endpoints": [
10859+
{
10860+
"methods": [
10861+
"GET"
10862+
],
10863+
"args": {
10864+
"type": {
10865+
"description": "An alphanumeric identifier for the comment type.",
10866+
"type": "string",
10867+
"required": false
10868+
},
10869+
"context": {
10870+
"description": "Scope under which the request is made; determines fields present in response.",
10871+
"type": "string",
10872+
"enum": [
10873+
"view",
10874+
"embed",
10875+
"edit"
10876+
],
10877+
"default": "view",
10878+
"required": false
10879+
}
10880+
}
10881+
}
10882+
]
10883+
},
1082610884
"/wp/v2/search": {
1082710885
"namespace": "wp/v2",
1082810886
"methods": [

0 commit comments

Comments
 (0)