Skip to content

Commit 6f013dc

Browse files
committed
Adjust fixtures
1 parent 5e24be7 commit 6f013dc

File tree

1 file changed

+89
-122
lines changed

1 file changed

+89
-122
lines changed

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

Lines changed: 89 additions & 122 deletions
Original file line numberDiff line numberDiff line change
@@ -5508,7 +5508,7 @@ mockedApiResponse.Schema = {
55085508
}
55095509
]
55105510
},
5511-
"/wp/v2/wp_template/(?P<parent>[\\d]+)/revisions": {
5511+
"/wp/v2/created-templates/(?P<parent>[\\d]+)/revisions": {
55125512
"namespace": "wp/v2",
55135513
"methods": [
55145514
"GET"
@@ -5606,7 +5606,7 @@ mockedApiResponse.Schema = {
56065606
}
56075607
]
56085608
},
5609-
"/wp/v2/wp_template/(?P<parent>[\\d]+)/revisions/(?P<id>[\\d]+)": {
5609+
"/wp/v2/created-templates/(?P<parent>[\\d]+)/revisions/(?P<id>[\\d]+)": {
56105610
"namespace": "wp/v2",
56115611
"methods": [
56125612
"GET",
@@ -5666,7 +5666,7 @@ mockedApiResponse.Schema = {
56665666
}
56675667
]
56685668
},
5669-
"/wp/v2/wp_template/(?P<id>[\\d]+)/autosaves": {
5669+
"/wp/v2/created-templates/(?P<id>[\\d]+)/autosaves": {
56705670
"namespace": "wp/v2",
56715671
"methods": [
56725672
"GET",
@@ -5865,7 +5865,7 @@ mockedApiResponse.Schema = {
58655865
}
58665866
]
58675867
},
5868-
"/wp/v2/wp_template/(?P<parent>[\\d]+)/autosaves/(?P<id>[\\d]+)": {
5868+
"/wp/v2/created-templates/(?P<parent>[\\d]+)/autosaves/(?P<id>[\\d]+)": {
58695869
"namespace": "wp/v2",
58705870
"methods": [
58715871
"GET"
@@ -5901,7 +5901,7 @@ mockedApiResponse.Schema = {
59015901
}
59025902
]
59035903
},
5904-
"/wp/v2/wp_template": {
5904+
"/wp/v2/created-templates": {
59055905
"namespace": "wp/v2",
59065906
"methods": [
59075907
"GET",
@@ -6265,12 +6265,12 @@ mockedApiResponse.Schema = {
62656265
"_links": {
62666266
"self": [
62676267
{
6268-
"href": "http://example.org/index.php?rest_route=/wp/v2/wp_template"
6268+
"href": "http://example.org/index.php?rest_route=/wp/v2/created-templates"
62696269
}
62706270
]
62716271
}
62726272
},
6273-
"/wp/v2/wp_template/(?P<id>[\\d]+)": {
6273+
"/wp/v2/created-templates/(?P<id>[\\d]+)": {
62746274
"namespace": "wp/v2",
62756275
"methods": [
62766276
"GET",
@@ -8671,85 +8671,6 @@ mockedApiResponse.Schema = {
86718671
}
86728672
]
86738673
},
8674-
"/wp/v2/wp_registered_template": {
8675-
"namespace": "wp/v2",
8676-
"methods": [
8677-
"GET"
8678-
],
8679-
"endpoints": [
8680-
{
8681-
"methods": [
8682-
"GET"
8683-
],
8684-
"args": {
8685-
"context": {
8686-
"description": "Scope under which the request is made; determines fields present in response.",
8687-
"type": "string",
8688-
"enum": [
8689-
"view",
8690-
"embed",
8691-
"edit"
8692-
],
8693-
"default": "view",
8694-
"required": false
8695-
},
8696-
"wp_id": {
8697-
"description": "Limit to the specified post id.",
8698-
"type": "integer",
8699-
"required": false
8700-
},
8701-
"area": {
8702-
"description": "Limit to the specified template part area.",
8703-
"type": "string",
8704-
"required": false
8705-
},
8706-
"post_type": {
8707-
"description": "Post type to get the templates for.",
8708-
"type": "string",
8709-
"required": false
8710-
}
8711-
}
8712-
}
8713-
],
8714-
"_links": {
8715-
"self": [
8716-
{
8717-
"href": "http://example.org/index.php?rest_route=/wp/v2/wp_registered_template"
8718-
}
8719-
]
8720-
}
8721-
},
8722-
"/wp/v2/wp_registered_template/(?P<id>([^\\/:<>\\*\\?\"\\|]+(?:\\/[^\\/:<>\\*\\?\"\\|]+)?)[\\/\\w%-]+)": {
8723-
"namespace": "wp/v2",
8724-
"methods": [
8725-
"GET"
8726-
],
8727-
"endpoints": [
8728-
{
8729-
"methods": [
8730-
"GET"
8731-
],
8732-
"args": {
8733-
"id": {
8734-
"description": "The id of a template",
8735-
"type": "string",
8736-
"required": false
8737-
},
8738-
"context": {
8739-
"description": "Scope under which the request is made; determines fields present in response.",
8740-
"type": "string",
8741-
"enum": [
8742-
"view",
8743-
"embed",
8744-
"edit"
8745-
],
8746-
"default": "view",
8747-
"required": false
8748-
}
8749-
}
8750-
}
8751-
]
8752-
},
87538674
"/wp/v2/templates/(?P<id>([^\\/:<>\\*\\?\"\\|]+(?:\\/[^\\/:<>\\*\\?\"\\|]+)?)[\\/\\w%-]+)/autosaves": {
87548675
"namespace": "wp/v2",
87558676
"methods": [
@@ -9434,6 +9355,85 @@ mockedApiResponse.Schema = {
94349355
}
94359356
]
94369357
},
9358+
"/wp/v2/registered-templates": {
9359+
"namespace": "wp/v2",
9360+
"methods": [
9361+
"GET"
9362+
],
9363+
"endpoints": [
9364+
{
9365+
"methods": [
9366+
"GET"
9367+
],
9368+
"args": {
9369+
"context": {
9370+
"description": "Scope under which the request is made; determines fields present in response.",
9371+
"type": "string",
9372+
"enum": [
9373+
"view",
9374+
"embed",
9375+
"edit"
9376+
],
9377+
"default": "view",
9378+
"required": false
9379+
},
9380+
"wp_id": {
9381+
"description": "Limit to the specified post id.",
9382+
"type": "integer",
9383+
"required": false
9384+
},
9385+
"area": {
9386+
"description": "Limit to the specified template part area.",
9387+
"type": "string",
9388+
"required": false
9389+
},
9390+
"post_type": {
9391+
"description": "Post type to get the templates for.",
9392+
"type": "string",
9393+
"required": false
9394+
}
9395+
}
9396+
}
9397+
],
9398+
"_links": {
9399+
"self": [
9400+
{
9401+
"href": "http://example.org/index.php?rest_route=/wp/v2/registered-templates"
9402+
}
9403+
]
9404+
}
9405+
},
9406+
"/wp/v2/registered-templates/(?P<id>([^\\/:<>\\*\\?\"\\|]+(?:\\/[^\\/:<>\\*\\?\"\\|]+)?)[\\/\\w%-]+)": {
9407+
"namespace": "wp/v2",
9408+
"methods": [
9409+
"GET"
9410+
],
9411+
"endpoints": [
9412+
{
9413+
"methods": [
9414+
"GET"
9415+
],
9416+
"args": {
9417+
"id": {
9418+
"description": "The id of a template",
9419+
"type": "string",
9420+
"required": false
9421+
},
9422+
"context": {
9423+
"description": "Scope under which the request is made; determines fields present in response.",
9424+
"type": "string",
9425+
"enum": [
9426+
"view",
9427+
"embed",
9428+
"edit"
9429+
],
9430+
"default": "view",
9431+
"required": false
9432+
}
9433+
}
9434+
}
9435+
]
9436+
},
94379437
"/wp/v2/types": {
94389438
"namespace": "wp/v2",
94399439
"methods": [
@@ -10809,8 +10809,7 @@ mockedApiResponse.Schema = {
1080910809
"wp_global_styles": "wp_global_styles",
1081010810
"wp_navigation": "wp_navigation",
1081110811
"wp_font_family": "wp_font_family",
10812-
"wp_font_face": "wp_font_face",
10813-
"wp_registered_template": "wp_registered_template"
10812+
"wp_font_face": "wp_font_face"
1081410813
}
1081510814
},
1081610815
"required": false
@@ -14768,7 +14767,7 @@ mockedApiResponse.TypesCollection = {
1476814767
"slug": "wp_template",
1476914768
"icon": null,
1477014769
"taxonomies": [],
14771-
"rest_base": "wp_template",
14770+
"rest_base": "created-templates",
1477214771
"rest_namespace": "wp/v2",
1477314772
"template": [],
1477414773
"template_lock": false,
@@ -14780,7 +14779,7 @@ mockedApiResponse.TypesCollection = {
1478014779
],
1478114780
"wp:items": [
1478214781
{
14783-
"href": "http://example.org/index.php?rest_route=/wp/v2/wp_template"
14782+
"href": "http://example.org/index.php?rest_route=/wp/v2/created-templates"
1478414783
}
1478514784
],
1478614785
"curies": [
@@ -14951,38 +14950,6 @@ mockedApiResponse.TypesCollection = {
1495114950
}
1495214951
]
1495314952
}
14954-
},
14955-
"wp_registered_template": {
14956-
"description": "Templates to include in your theme.",
14957-
"hierarchical": false,
14958-
"has_archive": false,
14959-
"name": "Templates",
14960-
"slug": "wp_registered_template",
14961-
"icon": null,
14962-
"taxonomies": [],
14963-
"rest_base": "wp_registered_template",
14964-
"rest_namespace": "wp/v2",
14965-
"template": [],
14966-
"template_lock": false,
14967-
"_links": {
14968-
"collection": [
14969-
{
14970-
"href": "http://example.org/index.php?rest_route=/wp/v2/types"
14971-
}
14972-
],
14973-
"wp:items": [
14974-
{
14975-
"href": "http://example.org/index.php?rest_route=/wp/v2/wp_registered_template"
14976-
}
14977-
],
14978-
"curies": [
14979-
{
14980-
"name": "wp",
14981-
"href": "https://api.w.org/{rel}",
14982-
"templated": true
14983-
}
14984-
]
14985-
}
1498614953
}
1498714954
};
1498814955

0 commit comments

Comments
 (0)