File tree Expand file tree Collapse file tree 2 files changed +71
-0
lines changed
Expand file tree Collapse file tree 2 files changed +71
-0
lines changed Original file line number Diff line number Diff line change @@ -195,6 +195,8 @@ public function test_expected_routes_in_schema() {
195195 '/wp/v2/font-families/(?P<font_family_id>[\d]+)/font-faces ' ,
196196 '/wp/v2/font-families/(?P<font_family_id>[\d]+)/font-faces/(?P<id>[\d]+) ' ,
197197 '/wp/v2/font-families/(?P<id>[\d]+) ' ,
198+ '/wp/v2/ability-categories ' ,
199+ '/wp/v2/ability-categories/(?P<slug>[a-z0-9]+(?:-[a-z0-9]+)*) ' ,
198200 '/wp/v2/abilities/(?P<name>[a-zA-Z0-9\-\/]+?)/run ' ,
199201 '/wp/v2/abilities/(?P<name>[a-zA-Z0-9\-\/]+) ' ,
200202 '/wp/v2/abilities ' ,
Original file line number Diff line number Diff line change @@ -12392,6 +12392,75 @@ mockedApiResponse.Schema = {
1239212392 }
1239312393 ]
1239412394 },
12395+ "/wp/v2/ability-categories": {
12396+ "namespace": "wp/v2",
12397+ "methods": [
12398+ "GET"
12399+ ],
12400+ "endpoints": [
12401+ {
12402+ "methods": [
12403+ "GET"
12404+ ],
12405+ "args": {
12406+ "context": {
12407+ "description": "Scope under which the request is made; determines fields present in response.",
12408+ "type": "string",
12409+ "enum": [
12410+ "view",
12411+ "embed",
12412+ "edit"
12413+ ],
12414+ "default": "view",
12415+ "required": false
12416+ },
12417+ "page": {
12418+ "description": "Current page of the collection.",
12419+ "type": "integer",
12420+ "default": 1,
12421+ "minimum": 1,
12422+ "required": false
12423+ },
12424+ "per_page": {
12425+ "description": "Maximum number of items to be returned in result set.",
12426+ "type": "integer",
12427+ "default": 50,
12428+ "minimum": 1,
12429+ "maximum": 100,
12430+ "required": false
12431+ }
12432+ }
12433+ }
12434+ ],
12435+ "_links": {
12436+ "self": [
12437+ {
12438+ "href": "http://example.org/index.php?rest_route=/wp/v2/ability-categories"
12439+ }
12440+ ]
12441+ }
12442+ },
12443+ "/wp/v2/ability-categories/(?P<slug>[a-z0-9]+(?:-[a-z0-9]+)*)": {
12444+ "namespace": "wp/v2",
12445+ "methods": [
12446+ "GET"
12447+ ],
12448+ "endpoints": [
12449+ {
12450+ "methods": [
12451+ "GET"
12452+ ],
12453+ "args": {
12454+ "slug": {
12455+ "description": "Unique identifier for the ability category.",
12456+ "type": "string",
12457+ "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
12458+ "required": false
12459+ }
12460+ }
12461+ }
12462+ ]
12463+ },
1239512464 "/wp/v2/abilities/(?P<name>[a-zA-Z0-9\\-\\/]+?)/run": {
1239612465 "namespace": "wp/v2",
1239712466 "methods": [
You can’t perform that action at this time.
0 commit comments