4186 | | "/wp/v2/templates": { |
4187 | | "namespace": "wp/v2", |
4188 | | "methods": [ |
4189 | | "GET", |
4190 | | "POST" |
4191 | | ], |
4192 | | "endpoints": [ |
4193 | | { |
4194 | | "methods": [ |
4195 | | "GET" |
4196 | | ], |
4197 | | "args": { |
4198 | | "context": { |
4199 | | "description": "Scope under which the request is made; determines fields present in response.", |
4200 | | "type": "string", |
4201 | | "enum": [ |
4202 | | "view", |
4203 | | "embed", |
4204 | | "edit" |
4205 | | ], |
4206 | | "required": false |
4207 | | }, |
4208 | | "wp_id": { |
4209 | | "description": "Limit to the specified post id.", |
4210 | | "type": "integer", |
4211 | | "required": false |
4212 | | }, |
4213 | | "area": { |
4214 | | "description": "Limit to the specified template part area.", |
4215 | | "type": "string", |
4216 | | "required": false |
4217 | | }, |
4218 | | "post_type": { |
4219 | | "description": "Post type to get the templates for.", |
4220 | | "type": "string", |
4221 | | "required": false |
4222 | | } |
4223 | | } |
4224 | | }, |
4225 | | { |
4226 | | "methods": [ |
4227 | | "POST" |
4228 | | ], |
4229 | | "args": { |
4230 | | "slug": { |
4231 | | "description": "Unique slug identifying the template.", |
4232 | | "type": "string", |
4233 | | "minLength": 1, |
4234 | | "pattern": "[a-zA-Z_\\-]+", |
4235 | | "required": true |
4236 | | }, |
4237 | | "theme": { |
4238 | | "description": "Theme identifier for the template.", |
4239 | | "type": "string", |
4240 | | "required": false |
4241 | | }, |
4242 | | "content": { |
4243 | | "default": "", |
4244 | | "description": "Content of template.", |
4245 | | "type": [ |
4246 | | "object", |
4247 | | "string" |
4248 | | ], |
4249 | | "required": false |
4250 | | }, |
4251 | | "title": { |
4252 | | "default": "", |
4253 | | "description": "Title of template.", |
4254 | | "type": [ |
4255 | | "object", |
4256 | | "string" |
4257 | | ], |
4258 | | "required": false |
4259 | | }, |
4260 | | "description": { |
4261 | | "default": "", |
4262 | | "description": "Description of template.", |
4263 | | "type": "string", |
4264 | | "required": false |
4265 | | }, |
4266 | | "status": { |
4267 | | "default": "publish", |
4268 | | "description": "Status of template.", |
4269 | | "type": "string", |
4270 | | "required": false |
4271 | | } |
4272 | | } |
4273 | | } |
4274 | | ], |
4275 | | "_links": { |
4276 | | "self": [ |
4277 | | { |
4278 | | "href": "http://example.org/index.php?rest_route=/wp/v2/templates" |
4279 | | } |
4280 | | ] |
4281 | | } |
4282 | | }, |
4283 | | "/wp/v2/templates/(?P<id>[\\/\\w-]+)": { |
4284 | | "namespace": "wp/v2", |
4285 | | "methods": [ |
4286 | | "GET", |
4287 | | "POST", |
4288 | | "PUT", |
4289 | | "PATCH", |
4290 | | "DELETE" |
4291 | | ], |
4292 | | "endpoints": [ |
4293 | | { |
4294 | | "methods": [ |
4295 | | "GET" |
4296 | | ], |
4297 | | "args": { |
4298 | | "id": { |
4299 | | "description": "The id of a template", |
4300 | | "type": "string", |
4301 | | "required": false |
4302 | | } |
4303 | | } |
4304 | | }, |
4305 | | { |
4306 | | "methods": [ |
4307 | | "POST", |
4308 | | "PUT", |
4309 | | "PATCH" |
4310 | | ], |
4311 | | "args": { |
4312 | | "slug": { |
4313 | | "description": "Unique slug identifying the template.", |
4314 | | "type": "string", |
4315 | | "minLength": 1, |
4316 | | "pattern": "[a-zA-Z_\\-]+", |
4317 | | "required": false |
4318 | | }, |
4319 | | "theme": { |
4320 | | "description": "Theme identifier for the template.", |
4321 | | "type": "string", |
4322 | | "required": false |
4323 | | }, |
4324 | | "content": { |
4325 | | "description": "Content of template.", |
4326 | | "type": [ |
4327 | | "object", |
4328 | | "string" |
4329 | | ], |
4330 | | "required": false |
4331 | | }, |
4332 | | "title": { |
4333 | | "description": "Title of template.", |
4334 | | "type": [ |
4335 | | "object", |
4336 | | "string" |
4337 | | ], |
4338 | | "required": false |
4339 | | }, |
4340 | | "description": { |
4341 | | "description": "Description of template.", |
4342 | | "type": "string", |
4343 | | "required": false |
4344 | | }, |
4345 | | "status": { |
4346 | | "description": "Status of template.", |
4347 | | "type": "string", |
4348 | | "required": false |
4349 | | } |
4350 | | } |
4351 | | }, |
4352 | | { |
4353 | | "methods": [ |
4354 | | "DELETE" |
4355 | | ], |
4356 | | "args": { |
4357 | | "force": { |
4358 | | "type": "boolean", |
4359 | | "default": false, |
4360 | | "description": "Whether to bypass Trash and force deletion.", |
4361 | | "required": false |
4362 | | } |
4363 | | } |
4364 | | } |
4365 | | ] |
4366 | | }, |
4367 | | "/wp/v2/templates/(?P<parent>[\\d]+)/revisions": { |
4368 | | "namespace": "wp/v2", |
4369 | | "methods": [ |
4370 | | "GET" |
4371 | | ], |
4372 | | "endpoints": [ |
4373 | | { |
4374 | | "methods": [ |
4375 | | "GET" |
4376 | | ], |
4377 | | "args": { |
4378 | | "parent": { |
4379 | | "description": "The ID for the parent of the revision.", |
4380 | | "type": "integer", |
4381 | | "required": false |
4382 | | }, |
4383 | | "context": { |
4384 | | "description": "Scope under which the request is made; determines fields present in response.", |
4385 | | "type": "string", |
4386 | | "enum": [ |
4387 | | "view", |
4388 | | "embed", |
4389 | | "edit" |
4390 | | ], |
4391 | | "default": "view", |
4392 | | "required": false |
4393 | | }, |
4394 | | "page": { |
4395 | | "description": "Current page of the collection.", |
4396 | | "type": "integer", |
4397 | | "default": 1, |
4398 | | "minimum": 1, |
4399 | | "required": false |
4400 | | }, |
4401 | | "per_page": { |
4402 | | "description": "Maximum number of items to be returned in result set.", |
4403 | | "type": "integer", |
4404 | | "minimum": 1, |
4405 | | "maximum": 100, |
4406 | | "required": false |
4407 | | }, |
4408 | | "search": { |
4409 | | "description": "Limit results to those matching a string.", |
4410 | | "type": "string", |
4411 | | "required": false |
4412 | | }, |
4413 | | "exclude": { |
4414 | | "description": "Ensure result set excludes specific IDs.", |
4415 | | "type": "array", |
4416 | | "items": { |
4417 | | "type": "integer" |
4418 | | }, |
4419 | | "default": [], |
4420 | | "required": false |
4421 | | }, |
4422 | | "include": { |
4423 | | "description": "Limit result set to specific IDs.", |
4424 | | "type": "array", |
4425 | | "items": { |
4426 | | "type": "integer" |
4427 | | }, |
4428 | | "default": [], |
4429 | | "required": false |
4430 | | }, |
4431 | | "offset": { |
4432 | | "description": "Offset the result set by a specific number of items.", |
4433 | | "type": "integer", |
4434 | | "required": false |
4435 | | }, |
4436 | | "order": { |
4437 | | "description": "Order sort attribute ascending or descending.", |
4438 | | "type": "string", |
4439 | | "default": "desc", |
4440 | | "enum": [ |
4441 | | "asc", |
4442 | | "desc" |
4443 | | ], |
4444 | | "required": false |
4445 | | }, |
4446 | | "orderby": { |
4447 | | "description": "Sort collection by object attribute.", |
4448 | | "type": "string", |
4449 | | "default": "date", |
4450 | | "enum": [ |
4451 | | "date", |
4452 | | "id", |
4453 | | "include", |
4454 | | "relevance", |
4455 | | "slug", |
4456 | | "include_slugs", |
4457 | | "title" |
4458 | | ], |
4459 | | "required": false |
4460 | | } |
4461 | | } |
4462 | | } |
4463 | | ] |
4464 | | }, |
4465 | | "/wp/v2/templates/(?P<parent>[\\d]+)/revisions/(?P<id>[\\d]+)": { |
4466 | | "namespace": "wp/v2", |
4467 | | "methods": [ |
4468 | | "GET", |
4469 | | "DELETE" |
4470 | | ], |
4471 | | "endpoints": [ |
4472 | | { |
4473 | | "methods": [ |
4474 | | "GET" |
4475 | | ], |
4476 | | "args": { |
4477 | | "parent": { |
4478 | | "description": "The ID for the parent of the revision.", |
4479 | | "type": "integer", |
4480 | | "required": false |
4481 | | }, |
4482 | | "id": { |
4483 | | "description": "Unique identifier for the revision.", |
4484 | | "type": "integer", |
4485 | | "required": false |
4486 | | }, |
4487 | | "context": { |
4488 | | "description": "Scope under which the request is made; determines fields present in response.", |
4489 | | "type": "string", |
4490 | | "enum": [ |
4491 | | "view", |
4492 | | "embed", |
4493 | | "edit" |
4494 | | ], |
4495 | | "default": "view", |
4496 | | "required": false |
4497 | | } |
4498 | | } |
4499 | | }, |
4500 | | { |
4501 | | "methods": [ |
4502 | | "DELETE" |
4503 | | ], |
4504 | | "args": { |
4505 | | "parent": { |
4506 | | "description": "The ID for the parent of the revision.", |
4507 | | "type": "integer", |
4508 | | "required": false |
4509 | | }, |
4510 | | "id": { |
4511 | | "description": "Unique identifier for the revision.", |
4512 | | "type": "integer", |
4513 | | "required": false |
4514 | | }, |
4515 | | "force": { |
4516 | | "type": "boolean", |
4517 | | "default": false, |
4518 | | "description": "Required to be true, as revisions do not support trashing.", |
4519 | | "required": false |
4520 | | } |
4521 | | } |
4522 | | } |
4523 | | ] |
4524 | | }, |
4525 | | "/wp/v2/templates/(?P<id>[\\d]+)/autosaves": { |
4526 | | "namespace": "wp/v2", |
4527 | | "methods": [ |
4528 | | "GET", |
4529 | | "POST" |
4530 | | ], |
4531 | | "endpoints": [ |
4532 | | { |
4533 | | "methods": [ |
4534 | | "GET" |
4535 | | ], |
4536 | | "args": { |
4537 | | "parent": { |
4538 | | "description": "The ID for the parent of the autosave.", |
4539 | | "type": "integer", |
4540 | | "required": false |
4541 | | }, |
4542 | | "context": { |
4543 | | "description": "Scope under which the request is made; determines fields present in response.", |
4544 | | "type": "string", |
4545 | | "enum": [ |
4546 | | "view", |
4547 | | "embed", |
4548 | | "edit" |
4549 | | ], |
4550 | | "default": "view", |
4551 | | "required": false |
4552 | | } |
4553 | | } |
4554 | | }, |
4555 | | { |
4556 | | "methods": [ |
4557 | | "POST" |
4558 | | ], |
4559 | | "args": { |
4560 | | "parent": { |
4561 | | "description": "The ID for the parent of the autosave.", |
4562 | | "type": "integer", |
4563 | | "required": false |
4564 | | }, |
4565 | | "slug": { |
4566 | | "description": "Unique slug identifying the template.", |
4567 | | "type": "string", |
4568 | | "minLength": 1, |
4569 | | "pattern": "[a-zA-Z_\\-]+", |
4570 | | "required": false |
4571 | | }, |
4572 | | "theme": { |
4573 | | "description": "Theme identifier for the template.", |
4574 | | "type": "string", |
4575 | | "required": false |
4576 | | }, |
4577 | | "content": { |
4578 | | "description": "Content of template.", |
4579 | | "type": [ |
4580 | | "object", |
4581 | | "string" |
4582 | | ], |
4583 | | "required": false |
4584 | | }, |
4585 | | "title": { |
4586 | | "description": "Title of template.", |
4587 | | "type": [ |
4588 | | "object", |
4589 | | "string" |
4590 | | ], |
4591 | | "required": false |
4592 | | }, |
4593 | | "description": { |
4594 | | "description": "Description of template.", |
4595 | | "type": "string", |
4596 | | "required": false |
4597 | | }, |
4598 | | "status": { |
4599 | | "description": "Status of template.", |
4600 | | "type": "string", |
4601 | | "required": false |
4602 | | } |
4603 | | } |
4604 | | } |
4605 | | ] |
4606 | | }, |
4607 | | "/wp/v2/templates/(?P<parent>[\\d]+)/autosaves/(?P<id>[\\d]+)": { |
4608 | | "namespace": "wp/v2", |
4609 | | "methods": [ |
4610 | | "GET" |
4611 | | ], |
4612 | | "endpoints": [ |
4613 | | { |
4614 | | "methods": [ |
4615 | | "GET" |
4616 | | ], |
4617 | | "args": { |
4618 | | "parent": { |
4619 | | "description": "The ID for the parent of the autosave.", |
4620 | | "type": "integer", |
4621 | | "required": false |
4622 | | }, |
4623 | | "id": { |
4624 | | "description": "The ID for the autosave.", |
4625 | | "type": "integer", |
4626 | | "required": false |
4627 | | }, |
4628 | | "context": { |
4629 | | "description": "Scope under which the request is made; determines fields present in response.", |
4630 | | "type": "string", |
4631 | | "enum": [ |
4632 | | "view", |
4633 | | "embed", |
4634 | | "edit" |
4635 | | ], |
4636 | | "default": "view", |
4637 | | "required": false |
4638 | | } |
4639 | | } |
4640 | | } |
4641 | | ] |
4642 | | }, |
4643 | | "/wp/v2/template-parts": { |
4644 | | "namespace": "wp/v2", |
4645 | | "methods": [ |
4646 | | "GET", |
4647 | | "POST" |
4648 | | ], |
4649 | | "endpoints": [ |
4650 | | { |
4651 | | "methods": [ |
4652 | | "GET" |
4653 | | ], |
4654 | | "args": { |
4655 | | "context": { |
4656 | | "description": "Scope under which the request is made; determines fields present in response.", |
4657 | | "type": "string", |
4658 | | "enum": [ |
4659 | | "view", |
4660 | | "embed", |
4661 | | "edit" |
4662 | | ], |
4663 | | "required": false |
4664 | | }, |
4665 | | "wp_id": { |
4666 | | "description": "Limit to the specified post id.", |
4667 | | "type": "integer", |
4668 | | "required": false |
4669 | | }, |
4670 | | "area": { |
4671 | | "description": "Limit to the specified template part area.", |
4672 | | "type": "string", |
4673 | | "required": false |
4674 | | }, |
4675 | | "post_type": { |
4676 | | "description": "Post type to get the templates for.", |
4677 | | "type": "string", |
4678 | | "required": false |
4679 | | } |
4680 | | } |
4681 | | }, |
4682 | | { |
4683 | | "methods": [ |
4684 | | "POST" |
4685 | | ], |
4686 | | "args": { |
4687 | | "slug": { |
4688 | | "description": "Unique slug identifying the template.", |
4689 | | "type": "string", |
4690 | | "minLength": 1, |
4691 | | "pattern": "[a-zA-Z_\\-]+", |
4692 | | "required": true |
4693 | | }, |
4694 | | "theme": { |
4695 | | "description": "Theme identifier for the template.", |
4696 | | "type": "string", |
4697 | | "required": false |
4698 | | }, |
4699 | | "content": { |
4700 | | "default": "", |
4701 | | "description": "Content of template.", |
4702 | | "type": [ |
4703 | | "object", |
4704 | | "string" |
4705 | | ], |
4706 | | "required": false |
4707 | | }, |
4708 | | "title": { |
4709 | | "default": "", |
4710 | | "description": "Title of template.", |
4711 | | "type": [ |
4712 | | "object", |
4713 | | "string" |
4714 | | ], |
4715 | | "required": false |
4716 | | }, |
4717 | | "description": { |
4718 | | "default": "", |
4719 | | "description": "Description of template.", |
4720 | | "type": "string", |
4721 | | "required": false |
4722 | | }, |
4723 | | "status": { |
4724 | | "default": "publish", |
4725 | | "description": "Status of template.", |
4726 | | "type": "string", |
4727 | | "required": false |
4728 | | }, |
4729 | | "area": { |
4730 | | "description": "Where the template part is intended for use (header, footer, etc.)", |
4731 | | "type": "string", |
4732 | | "required": false |
4733 | | } |
4734 | | } |
4735 | | } |
4736 | | ], |
4737 | | "_links": { |
4738 | | "self": [ |
4739 | | { |
4740 | | "href": "http://example.org/index.php?rest_route=/wp/v2/template-parts" |
4741 | | } |
4742 | | ] |
4743 | | } |
4744 | | }, |
4745 | | "/wp/v2/template-parts/(?P<id>[\\/\\w-]+)": { |
4746 | | "namespace": "wp/v2", |
4747 | | "methods": [ |
4748 | | "GET", |
4749 | | "POST", |
4750 | | "PUT", |
4751 | | "PATCH", |
4752 | | "DELETE" |
4753 | | ], |
4754 | | "endpoints": [ |
4755 | | { |
4756 | | "methods": [ |
4757 | | "GET" |
4758 | | ], |
4759 | | "args": { |
4760 | | "id": { |
4761 | | "description": "The id of a template", |
4762 | | "type": "string", |
4763 | | "required": false |
4764 | | } |
4765 | | } |
4766 | | }, |
4767 | | { |
4768 | | "methods": [ |
4769 | | "POST", |
4770 | | "PUT", |
4771 | | "PATCH" |
4772 | | ], |
4773 | | "args": { |
4774 | | "slug": { |
4775 | | "description": "Unique slug identifying the template.", |
4776 | | "type": "string", |
4777 | | "minLength": 1, |
4778 | | "pattern": "[a-zA-Z_\\-]+", |
4779 | | "required": false |
4780 | | }, |
4781 | | "theme": { |
4782 | | "description": "Theme identifier for the template.", |
4783 | | "type": "string", |
4784 | | "required": false |
4785 | | }, |
4786 | | "content": { |
4787 | | "description": "Content of template.", |
4788 | | "type": [ |
4789 | | "object", |
4790 | | "string" |
4791 | | ], |
4792 | | "required": false |
4793 | | }, |
4794 | | "title": { |
4795 | | "description": "Title of template.", |
4796 | | "type": [ |
4797 | | "object", |
4798 | | "string" |
4799 | | ], |
4800 | | "required": false |
4801 | | }, |
4802 | | "description": { |
4803 | | "description": "Description of template.", |
4804 | | "type": "string", |
4805 | | "required": false |
4806 | | }, |
4807 | | "status": { |
4808 | | "description": "Status of template.", |
4809 | | "type": "string", |
4810 | | "required": false |
4811 | | }, |
4812 | | "area": { |
4813 | | "description": "Where the template part is intended for use (header, footer, etc.)", |
4814 | | "type": "string", |
4815 | | "required": false |
4816 | | } |
4817 | | } |
4818 | | }, |
4819 | | { |
4820 | | "methods": [ |
4821 | | "DELETE" |
4822 | | ], |
4823 | | "args": { |
4824 | | "force": { |
4825 | | "type": "boolean", |
4826 | | "default": false, |
4827 | | "description": "Whether to bypass Trash and force deletion.", |
4828 | | "required": false |
4829 | | } |
4830 | | } |
4831 | | } |
4832 | | ] |
4833 | | }, |
4834 | | "/wp/v2/template-parts/(?P<parent>[\\d]+)/revisions": { |
4835 | | "namespace": "wp/v2", |
4836 | | "methods": [ |
4837 | | "GET" |
4838 | | ], |
4839 | | "endpoints": [ |
4840 | | { |
4841 | | "methods": [ |
4842 | | "GET" |
4843 | | ], |
4844 | | "args": { |
4845 | | "parent": { |
4846 | | "description": "The ID for the parent of the revision.", |
4847 | | "type": "integer", |
4848 | | "required": false |
4849 | | }, |
4850 | | "context": { |
4851 | | "description": "Scope under which the request is made; determines fields present in response.", |
4852 | | "type": "string", |
4853 | | "enum": [ |
4854 | | "view", |
4855 | | "embed", |
4856 | | "edit" |
4857 | | ], |
4858 | | "default": "view", |
4859 | | "required": false |
4860 | | }, |
4861 | | "page": { |
4862 | | "description": "Current page of the collection.", |
4863 | | "type": "integer", |
4864 | | "default": 1, |
4865 | | "minimum": 1, |
4866 | | "required": false |
4867 | | }, |
4868 | | "per_page": { |
4869 | | "description": "Maximum number of items to be returned in result set.", |
4870 | | "type": "integer", |
4871 | | "minimum": 1, |
4872 | | "maximum": 100, |
4873 | | "required": false |
4874 | | }, |
4875 | | "search": { |
4876 | | "description": "Limit results to those matching a string.", |
4877 | | "type": "string", |
4878 | | "required": false |
4879 | | }, |
4880 | | "exclude": { |
4881 | | "description": "Ensure result set excludes specific IDs.", |
4882 | | "type": "array", |
4883 | | "items": { |
4884 | | "type": "integer" |
4885 | | }, |
4886 | | "default": [], |
4887 | | "required": false |
4888 | | }, |
4889 | | "include": { |
4890 | | "description": "Limit result set to specific IDs.", |
4891 | | "type": "array", |
4892 | | "items": { |
4893 | | "type": "integer" |
4894 | | }, |
4895 | | "default": [], |
4896 | | "required": false |
4897 | | }, |
4898 | | "offset": { |
4899 | | "description": "Offset the result set by a specific number of items.", |
4900 | | "type": "integer", |
4901 | | "required": false |
4902 | | }, |
4903 | | "order": { |
4904 | | "description": "Order sort attribute ascending or descending.", |
4905 | | "type": "string", |
4906 | | "default": "desc", |
4907 | | "enum": [ |
4908 | | "asc", |
4909 | | "desc" |
4910 | | ], |
4911 | | "required": false |
4912 | | }, |
4913 | | "orderby": { |
4914 | | "description": "Sort collection by object attribute.", |
4915 | | "type": "string", |
4916 | | "default": "date", |
4917 | | "enum": [ |
4918 | | "date", |
4919 | | "id", |
4920 | | "include", |
4921 | | "relevance", |
4922 | | "slug", |
4923 | | "include_slugs", |
4924 | | "title" |
4925 | | ], |
4926 | | "required": false |
4927 | | } |
4928 | | } |
4929 | | } |
4930 | | ] |
4931 | | }, |
4932 | | "/wp/v2/template-parts/(?P<parent>[\\d]+)/revisions/(?P<id>[\\d]+)": { |
4933 | | "namespace": "wp/v2", |
4934 | | "methods": [ |
4935 | | "GET", |
4936 | | "DELETE" |
4937 | | ], |
4938 | | "endpoints": [ |
4939 | | { |
4940 | | "methods": [ |
4941 | | "GET" |
4942 | | ], |
4943 | | "args": { |
4944 | | "parent": { |
4945 | | "description": "The ID for the parent of the revision.", |
4946 | | "type": "integer", |
4947 | | "required": false |
4948 | | }, |
4949 | | "id": { |
4950 | | "description": "Unique identifier for the revision.", |
4951 | | "type": "integer", |
4952 | | "required": false |
4953 | | }, |
4954 | | "context": { |
4955 | | "description": "Scope under which the request is made; determines fields present in response.", |
4956 | | "type": "string", |
4957 | | "enum": [ |
4958 | | "view", |
4959 | | "embed", |
4960 | | "edit" |
4961 | | ], |
4962 | | "default": "view", |
4963 | | "required": false |
4964 | | } |
4965 | | } |
4966 | | }, |
4967 | | { |
4968 | | "methods": [ |
4969 | | "DELETE" |
4970 | | ], |
4971 | | "args": { |
4972 | | "parent": { |
4973 | | "description": "The ID for the parent of the revision.", |
4974 | | "type": "integer", |
4975 | | "required": false |
4976 | | }, |
4977 | | "id": { |
4978 | | "description": "Unique identifier for the revision.", |
4979 | | "type": "integer", |
4980 | | "required": false |
4981 | | }, |
4982 | | "force": { |
4983 | | "type": "boolean", |
4984 | | "default": false, |
4985 | | "description": "Required to be true, as revisions do not support trashing.", |
4986 | | "required": false |
4987 | | } |
4988 | | } |
4989 | | } |
4990 | | ] |
4991 | | }, |
4992 | | "/wp/v2/template-parts/(?P<id>[\\d]+)/autosaves": { |
4993 | | "namespace": "wp/v2", |
4994 | | "methods": [ |
4995 | | "GET", |
4996 | | "POST" |
4997 | | ], |
4998 | | "endpoints": [ |
4999 | | { |
5000 | | "methods": [ |
5001 | | "GET" |
5002 | | ], |
5003 | | "args": { |
5004 | | "parent": { |
5005 | | "description": "The ID for the parent of the autosave.", |
5006 | | "type": "integer", |
5007 | | "required": false |
5008 | | }, |
5009 | | "context": { |
5010 | | "description": "Scope under which the request is made; determines fields present in response.", |
5011 | | "type": "string", |
5012 | | "enum": [ |
5013 | | "view", |
5014 | | "embed", |
5015 | | "edit" |
5016 | | ], |
5017 | | "default": "view", |
5018 | | "required": false |
5019 | | } |
5020 | | } |
5021 | | }, |
5022 | | { |
5023 | | "methods": [ |
5024 | | "POST" |
5025 | | ], |
5026 | | "args": { |
5027 | | "parent": { |
5028 | | "description": "The ID for the parent of the autosave.", |
5029 | | "type": "integer", |
5030 | | "required": false |
5031 | | }, |
5032 | | "slug": { |
5033 | | "description": "Unique slug identifying the template.", |
5034 | | "type": "string", |
5035 | | "minLength": 1, |
5036 | | "pattern": "[a-zA-Z_\\-]+", |
5037 | | "required": false |
5038 | | }, |
5039 | | "theme": { |
5040 | | "description": "Theme identifier for the template.", |
5041 | | "type": "string", |
5042 | | "required": false |
5043 | | }, |
5044 | | "content": { |
5045 | | "description": "Content of template.", |
5046 | | "type": [ |
5047 | | "object", |
5048 | | "string" |
5049 | | ], |
5050 | | "required": false |
5051 | | }, |
5052 | | "title": { |
5053 | | "description": "Title of template.", |
5054 | | "type": [ |
5055 | | "object", |
5056 | | "string" |
5057 | | ], |
5058 | | "required": false |
5059 | | }, |
5060 | | "description": { |
5061 | | "description": "Description of template.", |
5062 | | "type": "string", |
5063 | | "required": false |
5064 | | }, |
5065 | | "status": { |
5066 | | "description": "Status of template.", |
5067 | | "type": "string", |
5068 | | "required": false |
5069 | | }, |
5070 | | "area": { |
5071 | | "description": "Where the template part is intended for use (header, footer, etc.)", |
5072 | | "type": "string", |
5073 | | "required": false |
5074 | | } |
5075 | | } |
5076 | | } |
5077 | | ] |
5078 | | }, |
5079 | | "/wp/v2/template-parts/(?P<parent>[\\d]+)/autosaves/(?P<id>[\\d]+)": { |
5080 | | "namespace": "wp/v2", |
5081 | | "methods": [ |
5082 | | "GET" |
5083 | | ], |
5084 | | "endpoints": [ |
5085 | | { |
5086 | | "methods": [ |
5087 | | "GET" |
5088 | | ], |
5089 | | "args": { |
5090 | | "parent": { |
5091 | | "description": "The ID for the parent of the autosave.", |
5092 | | "type": "integer", |
5093 | | "required": false |
5094 | | }, |
5095 | | "id": { |
5096 | | "description": "The ID for the autosave.", |
5097 | | "type": "integer", |
5098 | | "required": false |
5099 | | }, |
5100 | | "context": { |
5101 | | "description": "Scope under which the request is made; determines fields present in response.", |
5102 | | "type": "string", |
5103 | | "enum": [ |
5104 | | "view", |
5105 | | "embed", |
5106 | | "edit" |
5107 | | ], |
5108 | | "default": "view", |
5109 | | "required": false |
5110 | | } |
5111 | | } |
5112 | | } |
5113 | | ] |
5114 | | }, |
5115 | | "/wp/v2/navigation": { |
| 4320 | "/wp/v2/blocks": { |
| 4531 | "view", |
| 4532 | "edit" |
| 4533 | ] |
| 4534 | } |
| 4535 | }, |
| 4536 | "required": false |
| 4537 | }, |
| 4538 | "content": { |
| 4539 | "description": "The content for the post.", |
| 4540 | "type": "object", |
| 4541 | "properties": { |
| 4542 | "raw": { |
| 4543 | "description": "Content for the post, as it exists in the database.", |
| 4544 | "type": "string", |
| 4545 | "context": [ |
| 4546 | "view", |
| 4547 | "edit" |
| 4548 | ] |
| 4549 | }, |
| 4550 | "block_version": { |
| 4551 | "description": "Version of the content block format used by the post.", |
| 4552 | "type": "integer", |
| 4553 | "context": [ |
| 4554 | "edit" |
| 4555 | ], |
| 4556 | "readonly": true |
| 4557 | }, |
| 4558 | "protected": { |
| 4559 | "description": "Whether the content is protected with a password.", |
| 4560 | "type": "boolean", |
| 4561 | "context": [ |
| 4562 | "view", |
| 4563 | "edit", |
| 4564 | "embed" |
| 4565 | ], |
| 4566 | "readonly": true |
| 4567 | } |
| 4568 | }, |
| 4569 | "required": false |
| 4570 | }, |
| 4571 | "template": { |
| 4572 | "description": "The theme file to use to display the post.", |
| 4573 | "type": "string", |
| 4574 | "required": false |
| 4575 | } |
| 4576 | } |
| 4577 | } |
| 4578 | ], |
| 4579 | "_links": { |
| 4580 | "self": "http://example.org/index.php?rest_route=/wp/v2/blocks" |
| 4581 | } |
| 4582 | }, |
| 4583 | "/wp/v2/blocks/(?P<id>[\\d]+)": { |
| 4584 | "namespace": "wp/v2", |
| 4585 | "methods": [ |
| 4586 | "GET", |
| 4587 | "POST", |
| 4588 | "PUT", |
| 4589 | "PATCH", |
| 4590 | "DELETE" |
| 4591 | ], |
| 4592 | "endpoints": [ |
| 4593 | { |
| 4594 | "methods": [ |
| 4595 | "GET" |
| 4596 | ], |
| 4597 | "allow_batch": { |
| 4598 | "v1": true |
| 4599 | }, |
| 4600 | "args": { |
| 4601 | "id": { |
| 4602 | "description": "Unique identifier for the post.", |
| 4603 | "type": "integer", |
| 4604 | "required": false |
| 4605 | }, |
| 4606 | "context": { |
| 4607 | "description": "Scope under which the request is made; determines fields present in response.", |
| 4608 | "type": "string", |
| 4609 | "enum": [ |
| 4610 | "view", |
| 4611 | "embed", |
| 4612 | "edit" |
| 4613 | ], |
| 4614 | "default": "view", |
| 4615 | "required": false |
| 4616 | }, |
| 4617 | "password": { |
| 4618 | "description": "The password for the post if it is password protected.", |
| 4619 | "type": "string", |
| 4620 | "required": false |
| 4621 | } |
| 4622 | } |
| 4623 | }, |
| 4624 | { |
| 4625 | "methods": [ |
| 4626 | "POST", |
| 4627 | "PUT", |
| 4628 | "PATCH" |
| 4629 | ], |
| 4630 | "allow_batch": { |
| 4631 | "v1": true |
| 4632 | }, |
| 4633 | "args": { |
| 4634 | "id": { |
| 4635 | "description": "Unique identifier for the post.", |
| 4636 | "type": "integer", |
| 4637 | "required": false |
| 4638 | }, |
| 4639 | "date": { |
| 4640 | "description": "The date the post was published, in the site's timezone.", |
| 4641 | "type": [ |
| 4642 | "string", |
| 4643 | "null" |
| 4644 | ], |
| 4645 | "format": "date-time", |
| 4646 | "required": false |
| 4647 | }, |
| 4648 | "date_gmt": { |
| 4649 | "description": "The date the post was published, as GMT.", |
| 4650 | "type": [ |
| 4651 | "string", |
| 4652 | "null" |
| 4653 | ], |
| 4654 | "format": "date-time", |
| 4655 | "required": false |
| 4656 | }, |
| 4657 | "slug": { |
| 4658 | "description": "An alphanumeric identifier for the post unique to its type.", |
| 4659 | "type": "string", |
| 4660 | "required": false |
| 4661 | }, |
| 4662 | "status": { |
| 4663 | "description": "A named status for the post.", |
| 4664 | "type": "string", |
| 4665 | "enum": [ |
| 4666 | "publish", |
| 4667 | "future", |
| 4668 | "draft", |
| 4669 | "pending", |
| 4670 | "private" |
| 4671 | ], |
| 4672 | "required": false |
| 4673 | }, |
| 4674 | "password": { |
| 4675 | "description": "A password to protect access to the content and excerpt.", |
| 4676 | "type": "string", |
| 4677 | "required": false |
| 4678 | }, |
| 4679 | "title": { |
| 4680 | "description": "The title for the post.", |
| 4681 | "type": "object", |
| 4682 | "properties": { |
| 4683 | "raw": { |
| 4684 | "description": "Title for the post, as it exists in the database.", |
| 4685 | "type": "string", |
| 4686 | "context": [ |
| 4687 | "view", |
| 4688 | "edit" |
| 4689 | ] |
| 4690 | } |
| 4691 | }, |
| 4692 | "required": false |
| 4693 | }, |
| 4694 | "content": { |
| 4695 | "description": "The content for the post.", |
| 4696 | "type": "object", |
| 4697 | "properties": { |
| 4698 | "raw": { |
| 4699 | "description": "Content for the post, as it exists in the database.", |
| 4700 | "type": "string", |
| 4701 | "context": [ |
| 4702 | "view", |
| 4703 | "edit" |
| 4704 | ] |
| 4705 | }, |
| 4706 | "block_version": { |
| 4707 | "description": "Version of the content block format used by the post.", |
| 4708 | "type": "integer", |
| 4709 | "context": [ |
| 4710 | "edit" |
| 4711 | ], |
| 4712 | "readonly": true |
| 4713 | }, |
| 4714 | "protected": { |
| 4715 | "description": "Whether the content is protected with a password.", |
| 4716 | "type": "boolean", |
| 4717 | "context": [ |
| 4718 | "view", |
| 4719 | "edit", |
| 4720 | "embed" |
| 4721 | ], |
| 4722 | "readonly": true |
| 4723 | } |
| 4724 | }, |
| 4725 | "required": false |
| 4726 | }, |
| 4727 | "template": { |
| 4728 | "description": "The theme file to use to display the post.", |
| 4729 | "type": "string", |
| 4730 | "required": false |
| 4731 | } |
| 4732 | } |
| 4733 | }, |
| 4734 | { |
| 4735 | "methods": [ |
| 4736 | "DELETE" |
| 4737 | ], |
| 4738 | "allow_batch": { |
| 4739 | "v1": true |
| 4740 | }, |
| 4741 | "args": { |
| 4742 | "id": { |
| 4743 | "description": "Unique identifier for the post.", |
| 4744 | "type": "integer", |
| 4745 | "required": false |
| 4746 | }, |
| 4747 | "force": { |
| 4748 | "type": "boolean", |
| 4749 | "default": false, |
| 4750 | "description": "Whether to bypass Trash and force deletion.", |
| 4751 | "required": false |
| 4752 | } |
| 4753 | } |
| 4754 | } |
| 4755 | ] |
| 4756 | }, |
| 4757 | "/wp/v2/blocks/(?P<parent>[\\d]+)/revisions": { |
| 4758 | "namespace": "wp/v2", |
| 4759 | "methods": [ |
| 4760 | "GET" |
| 4761 | ], |
| 4762 | "endpoints": [ |
| 4763 | { |
| 4764 | "methods": [ |
| 4765 | "GET" |
| 4766 | ], |
| 4767 | "args": { |
| 4768 | "parent": { |
| 4769 | "description": "The ID for the parent of the revision.", |
| 4770 | "type": "integer", |
| 4771 | "required": false |
| 4772 | }, |
| 4773 | "context": { |
| 4774 | "description": "Scope under which the request is made; determines fields present in response.", |
| 4775 | "type": "string", |
| 4776 | "enum": [ |
| 4777 | "view", |
| 4778 | "embed", |
| 4779 | "edit" |
| 4780 | ], |
| 4781 | "default": "view", |
| 4782 | "required": false |
| 4783 | }, |
| 4784 | "page": { |
| 4785 | "description": "Current page of the collection.", |
| 4786 | "type": "integer", |
| 4787 | "default": 1, |
| 4788 | "minimum": 1, |
| 4789 | "required": false |
| 4790 | }, |
| 4791 | "per_page": { |
| 4792 | "description": "Maximum number of items to be returned in result set.", |
| 4793 | "type": "integer", |
| 4794 | "minimum": 1, |
| 4795 | "maximum": 100, |
| 4796 | "required": false |
| 4797 | }, |
| 4798 | "search": { |
| 4799 | "description": "Limit results to those matching a string.", |
| 4800 | "type": "string", |
| 4801 | "required": false |
| 4802 | }, |
| 4803 | "exclude": { |
| 4804 | "description": "Ensure result set excludes specific IDs.", |
| 4805 | "type": "array", |
| 4806 | "items": { |
| 4807 | "type": "integer" |
| 4808 | }, |
| 4809 | "default": [], |
| 4810 | "required": false |
| 4811 | }, |
| 4812 | "include": { |
| 4813 | "description": "Limit result set to specific IDs.", |
| 4814 | "type": "array", |
| 4815 | "items": { |
| 4816 | "type": "integer" |
| 4817 | }, |
| 4818 | "default": [], |
| 4819 | "required": false |
| 4820 | }, |
| 4821 | "offset": { |
| 4822 | "description": "Offset the result set by a specific number of items.", |
| 4823 | "type": "integer", |
| 4824 | "required": false |
| 4825 | }, |
| 4826 | "order": { |
| 4827 | "description": "Order sort attribute ascending or descending.", |
| 4828 | "type": "string", |
| 4829 | "default": "desc", |
| 4830 | "enum": [ |
| 4831 | "asc", |
| 4832 | "desc" |
| 4833 | ], |
| 4834 | "required": false |
| 4835 | }, |
| 4836 | "orderby": { |
| 4837 | "description": "Sort collection by object attribute.", |
| 4838 | "type": "string", |
| 4839 | "default": "date", |
| 4840 | "enum": [ |
| 4841 | "date", |
| 4842 | "id", |
| 4843 | "include", |
| 4844 | "relevance", |
| 4845 | "slug", |
| 4846 | "include_slugs", |
| 4847 | "title" |
| 4848 | ], |
| 4849 | "required": false |
| 4850 | } |
| 4851 | } |
| 4852 | } |
| 4853 | ] |
| 4854 | }, |
| 4855 | "/wp/v2/blocks/(?P<parent>[\\d]+)/revisions/(?P<id>[\\d]+)": { |
| 4856 | "namespace": "wp/v2", |
| 4857 | "methods": [ |
| 4858 | "GET", |
| 4859 | "DELETE" |
| 4860 | ], |
| 4861 | "endpoints": [ |
| 4862 | { |
| 4863 | "methods": [ |
| 4864 | "GET" |
| 4865 | ], |
| 4866 | "args": { |
| 4867 | "parent": { |
| 4868 | "description": "The ID for the parent of the revision.", |
| 4869 | "type": "integer", |
| 4870 | "required": false |
| 4871 | }, |
| 4872 | "id": { |
| 4873 | "description": "Unique identifier for the revision.", |
| 4874 | "type": "integer", |
| 4875 | "required": false |
| 4876 | }, |
| 4877 | "context": { |
| 4878 | "description": "Scope under which the request is made; determines fields present in response.", |
| 4879 | "type": "string", |
| 4880 | "enum": [ |
| 4881 | "view", |
| 4882 | "embed", |
| 4883 | "edit" |
| 4884 | ], |
| 4885 | "default": "view", |
| 4886 | "required": false |
| 4887 | } |
| 4888 | } |
| 4889 | }, |
| 4890 | { |
| 4891 | "methods": [ |
| 4892 | "DELETE" |
| 4893 | ], |
| 4894 | "args": { |
| 4895 | "parent": { |
| 4896 | "description": "The ID for the parent of the revision.", |
| 4897 | "type": "integer", |
| 4898 | "required": false |
| 4899 | }, |
| 4900 | "id": { |
| 4901 | "description": "Unique identifier for the revision.", |
| 4902 | "type": "integer", |
| 4903 | "required": false |
| 4904 | }, |
| 4905 | "force": { |
| 4906 | "type": "boolean", |
| 4907 | "default": false, |
| 4908 | "description": "Required to be true, as revisions do not support trashing.", |
| 4909 | "required": false |
| 4910 | } |
| 4911 | } |
| 4912 | } |
| 4913 | ] |
| 4914 | }, |
| 4915 | "/wp/v2/blocks/(?P<id>[\\d]+)/autosaves": { |
| 4916 | "namespace": "wp/v2", |
| 4917 | "methods": [ |
| 4918 | "GET", |
| 4919 | "POST" |
| 4920 | ], |
| 4921 | "endpoints": [ |
| 4922 | { |
| 4923 | "methods": [ |
| 4924 | "GET" |
| 4925 | ], |
| 4926 | "args": { |
| 4927 | "parent": { |
| 4928 | "description": "The ID for the parent of the autosave.", |
| 4929 | "type": "integer", |
| 4930 | "required": false |
| 4931 | }, |
| 4932 | "context": { |
| 4933 | "description": "Scope under which the request is made; determines fields present in response.", |
| 4934 | "type": "string", |
| 4935 | "enum": [ |
| 4936 | "view", |
| 4937 | "embed", |
| 4938 | "edit" |
| 4939 | ], |
| 4940 | "default": "view", |
| 4941 | "required": false |
| 4942 | } |
| 4943 | } |
| 4944 | }, |
| 4945 | { |
| 4946 | "methods": [ |
| 4947 | "POST" |
| 4948 | ], |
| 4949 | "args": { |
| 4950 | "parent": { |
| 4951 | "description": "The ID for the parent of the autosave.", |
| 4952 | "type": "integer", |
| 4953 | "required": false |
| 4954 | }, |
| 4955 | "date": { |
| 4956 | "description": "The date the post was published, in the site's timezone.", |
| 4957 | "type": [ |
| 4958 | "string", |
| 4959 | "null" |
| 4960 | ], |
| 4961 | "format": "date-time", |
| 4962 | "required": false |
| 4963 | }, |
| 4964 | "date_gmt": { |
| 4965 | "description": "The date the post was published, as GMT.", |
| 4966 | "type": [ |
| 4967 | "string", |
| 4968 | "null" |
| 4969 | ], |
| 4970 | "format": "date-time", |
| 4971 | "required": false |
| 4972 | }, |
| 4973 | "slug": { |
| 4974 | "description": "An alphanumeric identifier for the post unique to its type.", |
| 4975 | "type": "string", |
| 4976 | "required": false |
| 4977 | }, |
| 4978 | "status": { |
| 4979 | "description": "A named status for the post.", |
| 4980 | "type": "string", |
| 4981 | "enum": [ |
| 4982 | "publish", |
| 4983 | "future", |
| 4984 | "draft", |
| 4985 | "pending", |
| 4986 | "private" |
| 4987 | ], |
| 4988 | "required": false |
| 4989 | }, |
| 4990 | "password": { |
| 4991 | "description": "A password to protect access to the content and excerpt.", |
| 4992 | "type": "string", |
| 4993 | "required": false |
| 4994 | }, |
| 4995 | "title": { |
| 4996 | "description": "The title for the post.", |
| 4997 | "type": "object", |
| 4998 | "properties": { |
| 4999 | "raw": { |
| 5000 | "description": "Title for the post, as it exists in the database.", |
| 5001 | "type": "string", |
| 5002 | "context": [ |
| 5003 | "view", |
| 5004 | "edit" |
| 5005 | ] |
| 5006 | } |
| 5007 | }, |
| 5008 | "required": false |
| 5009 | }, |
| 5010 | "content": { |
| 5011 | "description": "The content for the post.", |
| 5012 | "type": "object", |
| 5013 | "properties": { |
| 5014 | "raw": { |
| 5015 | "description": "Content for the post, as it exists in the database.", |
| 5016 | "type": "string", |
| 5017 | "context": [ |
| 5018 | "view", |
| 5019 | "edit" |
| 5020 | ] |
| 5021 | }, |
| 5022 | "block_version": { |
| 5023 | "description": "Version of the content block format used by the post.", |
| 5024 | "type": "integer", |
| 5025 | "context": [ |
| 5026 | "edit" |
| 5027 | ], |
| 5028 | "readonly": true |
| 5029 | }, |
| 5030 | "protected": { |
| 5031 | "description": "Whether the content is protected with a password.", |
| 5032 | "type": "boolean", |
| 5033 | "context": [ |
| 5034 | "view", |
| 5035 | "edit", |
| 5036 | "embed" |
| 5037 | ], |
| 5038 | "readonly": true |
| 5039 | } |
| 5040 | }, |
| 5041 | "required": false |
| 5042 | }, |
| 5043 | "template": { |
| 5044 | "description": "The theme file to use to display the post.", |
| 5045 | "type": "string", |
| 5046 | "required": false |
| 5047 | } |
| 5048 | } |
| 5049 | } |
| 5050 | ] |
| 5051 | }, |
| 5052 | "/wp/v2/blocks/(?P<parent>[\\d]+)/autosaves/(?P<id>[\\d]+)": { |
| 5053 | "namespace": "wp/v2", |
| 5054 | "methods": [ |
| 5055 | "GET" |
| 5056 | ], |
| 5057 | "endpoints": [ |
| 5058 | { |
| 5059 | "methods": [ |
| 5060 | "GET" |
| 5061 | ], |
| 5062 | "args": { |
| 5063 | "parent": { |
| 5064 | "description": "The ID for the parent of the autosave.", |
| 5065 | "type": "integer", |
| 5066 | "required": false |
| 5067 | }, |
| 5068 | "id": { |
| 5069 | "description": "The ID for the autosave.", |
| 5070 | "type": "integer", |
| 5071 | "required": false |
| 5072 | }, |
| 5073 | "context": { |
| 5074 | "description": "Scope under which the request is made; determines fields present in response.", |
| 5075 | "type": "string", |
| 5076 | "enum": [ |
| 5077 | "view", |
| 5078 | "embed", |
| 5079 | "edit" |
| 5080 | ], |
| 5081 | "default": "view", |
| 5082 | "required": false |
| 5083 | } |
| 5084 | } |
| 5085 | } |
| 5086 | ] |
| 5087 | }, |
| 5088 | "/wp/v2/templates": { |
| 5089 | "namespace": "wp/v2", |
| 5090 | "methods": [ |
| 5091 | "GET", |
| 5092 | "POST" |
| 5093 | ], |
| 5094 | "endpoints": [ |
| 5095 | { |
| 5096 | "methods": [ |
| 5097 | "GET" |
| 5098 | ], |
| 5099 | "args": { |
| 5100 | "context": { |
| 5101 | "description": "Scope under which the request is made; determines fields present in response.", |
| 5102 | "type": "string", |
| 5103 | "enum": [ |
| 5104 | "view", |
| 5105 | "embed", |
| 5106 | "edit" |
| 5107 | ], |
| 5108 | "required": false |
| 5109 | }, |
| 5110 | "wp_id": { |
| 5111 | "description": "Limit to the specified post id.", |
| 5112 | "type": "integer", |
| 5113 | "required": false |
| 5114 | }, |
| 5115 | "area": { |
| 5116 | "description": "Limit to the specified template part area.", |
| 5117 | "type": "string", |
| 5118 | "required": false |
| 5119 | }, |
| 5120 | "post_type": { |
| 5121 | "description": "Post type to get the templates for.", |
| 5122 | "type": "string", |
| 5123 | "required": false |
| 5124 | } |
| 5125 | } |
| 5126 | }, |
| 5127 | { |
| 5128 | "methods": [ |
| 5129 | "POST" |
| 5130 | ], |
| 5131 | "args": { |
| 5132 | "slug": { |
| 5133 | "description": "Unique slug identifying the template.", |
| 5134 | "type": "string", |
| 5135 | "minLength": 1, |
| 5136 | "pattern": "[a-zA-Z_\\-]+", |
| 5137 | "required": true |
| 5138 | }, |
| 5139 | "theme": { |
| 5140 | "description": "Theme identifier for the template.", |
| 5141 | "type": "string", |
| 5142 | "required": false |
| 5143 | }, |
| 5144 | "content": { |
| 5145 | "default": "", |
| 5146 | "description": "Content of template.", |
| 5147 | "type": [ |
| 5148 | "object", |
| 5149 | "string" |
| 5150 | ], |
| 5151 | "required": false |
| 5152 | }, |
| 5153 | "title": { |
| 5154 | "default": "", |
| 5155 | "description": "Title of template.", |
| 5156 | "type": [ |
| 5157 | "object", |
| 5158 | "string" |
| 5159 | ], |
| 5160 | "required": false |
| 5161 | }, |
| 5162 | "description": { |
| 5163 | "default": "", |
| 5164 | "description": "Description of template.", |
| 5165 | "type": "string", |
| 5166 | "required": false |
| 5167 | }, |
| 5168 | "status": { |
| 5169 | "default": "publish", |
| 5170 | "description": "Status of template.", |
| 5171 | "type": "string", |
| 5172 | "required": false |
| 5173 | } |
| 5174 | } |
| 5175 | } |
| 5176 | ], |
| 5177 | "_links": { |
| 5178 | "self": [ |
| 5179 | { |
| 5180 | "href": "http://example.org/index.php?rest_route=/wp/v2/templates" |
| 5181 | } |
| 5182 | ] |
| 5183 | } |
| 5184 | }, |
| 5185 | "/wp/v2/templates/(?P<id>[\\/\\w-]+)": { |
| 5186 | "namespace": "wp/v2", |
| 5187 | "methods": [ |
| 5188 | "GET", |
| 5189 | "POST", |
| 5190 | "PUT", |
| 5191 | "PATCH", |
| 5192 | "DELETE" |
| 5193 | ], |
| 5194 | "endpoints": [ |
| 5195 | { |
| 5196 | "methods": [ |
| 5197 | "GET" |
| 5198 | ], |
| 5199 | "args": { |
| 5200 | "id": { |
| 5201 | "description": "The id of a template", |
| 5202 | "type": "string", |
| 5203 | "required": false |
| 5204 | } |
| 5205 | } |
| 5206 | }, |
| 5207 | { |
| 5208 | "methods": [ |
| 5209 | "POST", |
| 5210 | "PUT", |
| 5211 | "PATCH" |
| 5212 | ], |
| 5213 | "args": { |
| 5214 | "slug": { |
| 5215 | "description": "Unique slug identifying the template.", |
| 5216 | "type": "string", |
| 5217 | "minLength": 1, |
| 5218 | "pattern": "[a-zA-Z_\\-]+", |
| 5219 | "required": false |
| 5220 | }, |
| 5221 | "theme": { |
| 5222 | "description": "Theme identifier for the template.", |
| 5223 | "type": "string", |
| 5224 | "required": false |
| 5225 | }, |
| 5226 | "content": { |
| 5227 | "description": "Content of template.", |
| 5228 | "type": [ |
| 5229 | "object", |
| 5230 | "string" |
| 5231 | ], |
| 5232 | "required": false |
| 5233 | }, |
| 5234 | "title": { |
| 5235 | "description": "Title of template.", |
| 5236 | "type": [ |
| 5237 | "object", |
| 5238 | "string" |
| 5239 | ], |
| 5240 | "required": false |
| 5241 | }, |
| 5242 | "description": { |
| 5243 | "description": "Description of template.", |
| 5244 | "type": "string", |
| 5245 | "required": false |
| 5246 | }, |
| 5247 | "status": { |
| 5248 | "description": "Status of template.", |
| 5249 | "type": "string", |
| 5250 | "required": false |
| 5251 | } |
| 5252 | } |
| 5253 | }, |
| 5254 | { |
| 5255 | "methods": [ |
| 5256 | "DELETE" |
| 5257 | ], |
| 5258 | "args": { |
| 5259 | "force": { |
| 5260 | "type": "boolean", |
| 5261 | "default": false, |
| 5262 | "description": "Whether to bypass Trash and force deletion.", |
| 5263 | "required": false |
| 5264 | } |
| 5265 | } |
| 5266 | } |
| 5267 | ] |
| 5268 | }, |
| 5269 | "/wp/v2/templates/(?P<parent>[\\d]+)/revisions": { |
| 5270 | "namespace": "wp/v2", |
| 5271 | "methods": [ |
| 5272 | "GET" |
| 5273 | ], |
| 5274 | "endpoints": [ |
| 5275 | { |
| 5276 | "methods": [ |
| 5277 | "GET" |
| 5278 | ], |
| 5279 | "args": { |
| 5280 | "parent": { |
| 5281 | "description": "The ID for the parent of the revision.", |
| 5282 | "type": "integer", |
| 5283 | "required": false |
| 5284 | }, |
| 5285 | "context": { |
| 5286 | "description": "Scope under which the request is made; determines fields present in response.", |
| 5287 | "type": "string", |
| 5288 | "enum": [ |
| 5289 | "view", |
| 5290 | "embed", |
| 5291 | "edit" |
| 5292 | ], |
| 5293 | "default": "view", |
| 5294 | "required": false |
| 5295 | }, |
| 5296 | "page": { |
| 5297 | "description": "Current page of the collection.", |
| 5298 | "type": "integer", |
| 5299 | "default": 1, |
| 5300 | "minimum": 1, |
| 5301 | "required": false |
| 5302 | }, |
| 5303 | "per_page": { |
| 5304 | "description": "Maximum number of items to be returned in result set.", |
| 5305 | "type": "integer", |
| 5306 | "minimum": 1, |
| 5307 | "maximum": 100, |
| 5308 | "required": false |
| 5309 | }, |
| 5310 | "search": { |
| 5311 | "description": "Limit results to those matching a string.", |
| 5312 | "type": "string", |
| 5313 | "required": false |
| 5314 | }, |
| 5315 | "exclude": { |
| 5316 | "description": "Ensure result set excludes specific IDs.", |
| 5317 | "type": "array", |
| 5318 | "items": { |
| 5319 | "type": "integer" |
| 5320 | }, |
| 5321 | "default": [], |
| 5322 | "required": false |
| 5323 | }, |
| 5324 | "include": { |
| 5325 | "description": "Limit result set to specific IDs.", |
| 5326 | "type": "array", |
| 5327 | "items": { |
| 5328 | "type": "integer" |
| 5329 | }, |
| 5330 | "default": [], |
| 5331 | "required": false |
| 5332 | }, |
| 5333 | "offset": { |
| 5334 | "description": "Offset the result set by a specific number of items.", |
| 5335 | "type": "integer", |
| 5336 | "required": false |
| 5337 | }, |
| 5338 | "order": { |
| 5339 | "description": "Order sort attribute ascending or descending.", |
| 5340 | "type": "string", |
| 5341 | "default": "desc", |
| 5342 | "enum": [ |
| 5343 | "asc", |
| 5344 | "desc" |
| 5345 | ], |
| 5346 | "required": false |
| 5347 | }, |
| 5348 | "orderby": { |
| 5349 | "description": "Sort collection by object attribute.", |
| 5350 | "type": "string", |
| 5351 | "default": "date", |
| 5352 | "enum": [ |
| 5353 | "date", |
| 5354 | "id", |
| 5355 | "include", |
| 5356 | "relevance", |
| 5357 | "slug", |
| 5358 | "include_slugs", |
| 5359 | "title" |
| 5360 | ], |
| 5361 | "required": false |
| 5362 | } |
| 5363 | } |
| 5364 | } |
| 5365 | ] |
| 5366 | }, |
| 5367 | "/wp/v2/templates/(?P<parent>[\\d]+)/revisions/(?P<id>[\\d]+)": { |
| 5368 | "namespace": "wp/v2", |
| 5369 | "methods": [ |
| 5370 | "GET", |
| 5371 | "DELETE" |
| 5372 | ], |
| 5373 | "endpoints": [ |
| 5374 | { |
| 5375 | "methods": [ |
| 5376 | "GET" |
| 5377 | ], |
| 5378 | "args": { |
| 5379 | "parent": { |
| 5380 | "description": "The ID for the parent of the revision.", |
| 5381 | "type": "integer", |
| 5382 | "required": false |
| 5383 | }, |
| 5384 | "id": { |
| 5385 | "description": "Unique identifier for the revision.", |
| 5386 | "type": "integer", |
| 5387 | "required": false |
| 5388 | }, |
| 5389 | "context": { |
| 5390 | "description": "Scope under which the request is made; determines fields present in response.", |
| 5391 | "type": "string", |
| 5392 | "enum": [ |
| 5393 | "view", |
| 5394 | "embed", |
| 5395 | "edit" |
| 5396 | ], |
| 5397 | "default": "view", |
| 5398 | "required": false |
| 5399 | } |
| 5400 | } |
| 5401 | }, |
| 5402 | { |
| 5403 | "methods": [ |
| 5404 | "DELETE" |
| 5405 | ], |
| 5406 | "args": { |
| 5407 | "parent": { |
| 5408 | "description": "The ID for the parent of the revision.", |
| 5409 | "type": "integer", |
| 5410 | "required": false |
| 5411 | }, |
| 5412 | "id": { |
| 5413 | "description": "Unique identifier for the revision.", |
| 5414 | "type": "integer", |
| 5415 | "required": false |
| 5416 | }, |
| 5417 | "force": { |
| 5418 | "type": "boolean", |
| 5419 | "default": false, |
| 5420 | "description": "Required to be true, as revisions do not support trashing.", |
| 5421 | "required": false |
| 5422 | } |
| 5423 | } |
| 5424 | } |
| 5425 | ] |
| 5426 | }, |
| 5427 | "/wp/v2/templates/(?P<id>[\\d]+)/autosaves": { |
| 5428 | "namespace": "wp/v2", |
| 5429 | "methods": [ |
| 5430 | "GET", |
| 5431 | "POST" |
| 5432 | ], |
| 5433 | "endpoints": [ |
| 5434 | { |
| 5435 | "methods": [ |
| 5436 | "GET" |
| 5437 | ], |
| 5438 | "args": { |
| 5439 | "parent": { |
| 5440 | "description": "The ID for the parent of the autosave.", |
| 5441 | "type": "integer", |
| 5442 | "required": false |
| 5443 | }, |
| 5444 | "context": { |
| 5445 | "description": "Scope under which the request is made; determines fields present in response.", |
| 5446 | "type": "string", |
| 5447 | "enum": [ |
| 5448 | "view", |
| 5449 | "embed", |
| 5450 | "edit" |
| 5451 | ], |
| 5452 | "default": "view", |
| 5453 | "required": false |
| 5454 | } |
| 5455 | } |
| 5456 | }, |
| 5457 | { |
| 5458 | "methods": [ |
| 5459 | "POST" |
| 5460 | ], |
| 5461 | "args": { |
| 5462 | "parent": { |
| 5463 | "description": "The ID for the parent of the autosave.", |
| 5464 | "type": "integer", |
| 5465 | "required": false |
| 5466 | }, |
| 5467 | "slug": { |
| 5468 | "description": "Unique slug identifying the template.", |
| 5469 | "type": "string", |
| 5470 | "minLength": 1, |
| 5471 | "pattern": "[a-zA-Z_\\-]+", |
| 5472 | "required": false |
| 5473 | }, |
| 5474 | "theme": { |
| 5475 | "description": "Theme identifier for the template.", |
| 5476 | "type": "string", |
| 5477 | "required": false |
| 5478 | }, |
| 5479 | "content": { |
| 5480 | "description": "Content of template.", |
| 5481 | "type": [ |
| 5482 | "object", |
| 5483 | "string" |
| 5484 | ], |
| 5485 | "required": false |
| 5486 | }, |
| 5487 | "title": { |
| 5488 | "description": "Title of template.", |
| 5489 | "type": [ |
| 5490 | "object", |
| 5491 | "string" |
| 5492 | ], |
| 5493 | "required": false |
| 5494 | }, |
| 5495 | "description": { |
| 5496 | "description": "Description of template.", |
| 5497 | "type": "string", |
| 5498 | "required": false |
| 5499 | }, |
| 5500 | "status": { |
| 5501 | "description": "Status of template.", |
| 5502 | "type": "string", |
| 5503 | "required": false |
| 5504 | } |
| 5505 | } |
| 5506 | } |
| 5507 | ] |
| 5508 | }, |
| 5509 | "/wp/v2/templates/(?P<parent>[\\d]+)/autosaves/(?P<id>[\\d]+)": { |
| 5510 | "namespace": "wp/v2", |
| 5511 | "methods": [ |
| 5512 | "GET" |
| 5513 | ], |
| 5514 | "endpoints": [ |
| 5515 | { |
| 5516 | "methods": [ |
| 5517 | "GET" |
| 5518 | ], |
| 5519 | "args": { |
| 5520 | "parent": { |
| 5521 | "description": "The ID for the parent of the autosave.", |
| 5522 | "type": "integer", |
| 5523 | "required": false |
| 5524 | }, |
| 5525 | "id": { |
| 5526 | "description": "The ID for the autosave.", |
| 5527 | "type": "integer", |
| 5528 | "required": false |
| 5529 | }, |
| 5530 | "context": { |
| 5531 | "description": "Scope under which the request is made; determines fields present in response.", |
| 5532 | "type": "string", |
| 5533 | "enum": [ |
| 5534 | "view", |
| 5535 | "embed", |
| 5536 | "edit" |
| 5537 | ], |
| 5538 | "default": "view", |
| 5539 | "required": false |
| 5540 | } |
| 5541 | } |
| 5542 | } |
| 5543 | ] |
| 5544 | }, |
| 5545 | "/wp/v2/template-parts": { |
| 5546 | "namespace": "wp/v2", |
| 5547 | "methods": [ |
| 5548 | "GET", |
| 5549 | "POST" |
| 5550 | ], |
| 5551 | "endpoints": [ |
| 5552 | { |
| 5553 | "methods": [ |
| 5554 | "GET" |
| 5555 | ], |
| 5556 | "args": { |
| 5557 | "context": { |
| 5558 | "description": "Scope under which the request is made; determines fields present in response.", |
| 5559 | "type": "string", |
| 5560 | "enum": [ |
| 5561 | "view", |
| 5562 | "embed", |
| 5563 | "edit" |
| 5564 | ], |
| 5565 | "required": false |
| 5566 | }, |
| 5567 | "wp_id": { |
| 5568 | "description": "Limit to the specified post id.", |
| 5569 | "type": "integer", |
| 5570 | "required": false |
| 5571 | }, |
| 5572 | "area": { |
| 5573 | "description": "Limit to the specified template part area.", |
| 5574 | "type": "string", |
| 5575 | "required": false |
| 5576 | }, |
| 5577 | "post_type": { |
| 5578 | "description": "Post type to get the templates for.", |
| 5579 | "type": "string", |
| 5580 | "required": false |
| 5581 | } |
| 5582 | } |
| 5583 | }, |
| 5584 | { |
| 5585 | "methods": [ |
| 5586 | "POST" |
| 5587 | ], |
| 5588 | "args": { |
| 5589 | "slug": { |
| 5590 | "description": "Unique slug identifying the template.", |
| 5591 | "type": "string", |
| 5592 | "minLength": 1, |
| 5593 | "pattern": "[a-zA-Z_\\-]+", |
| 5594 | "required": true |
| 5595 | }, |
| 5596 | "theme": { |
| 5597 | "description": "Theme identifier for the template.", |
| 5598 | "type": "string", |
| 5599 | "required": false |
| 5600 | }, |
| 5601 | "content": { |
| 5602 | "default": "", |
| 5603 | "description": "Content of template.", |
| 5604 | "type": [ |
| 5605 | "object", |
| 5606 | "string" |
| 5607 | ], |
| 5608 | "required": false |
| 5609 | }, |
| 5610 | "title": { |
| 5611 | "default": "", |
| 5612 | "description": "Title of template.", |
| 5613 | "type": [ |
| 5614 | "object", |
| 5615 | "string" |
| 5616 | ], |
| 5617 | "required": false |
| 5618 | }, |
| 5619 | "description": { |
| 5620 | "default": "", |
| 5621 | "description": "Description of template.", |
| 5622 | "type": "string", |
| 5623 | "required": false |
| 5624 | }, |
| 5625 | "status": { |
| 5626 | "default": "publish", |
| 5627 | "description": "Status of template.", |
| 5628 | "type": "string", |
| 5629 | "required": false |
| 5630 | }, |
| 5631 | "area": { |
| 5632 | "description": "Where the template part is intended for use (header, footer, etc.)", |
| 5633 | "type": "string", |
| 5634 | "required": false |
| 5635 | } |
| 5636 | } |
| 5637 | } |
| 5638 | ], |
| 5639 | "_links": { |
| 5640 | "self": [ |
| 5641 | { |
| 5642 | "href": "http://example.org/index.php?rest_route=/wp/v2/template-parts" |
| 5643 | } |
| 5644 | ] |
| 5645 | } |
| 5646 | }, |
| 5647 | "/wp/v2/template-parts/(?P<id>[\\/\\w-]+)": { |
| 5648 | "namespace": "wp/v2", |
| 5649 | "methods": [ |
| 5650 | "GET", |
| 5651 | "POST", |
| 5652 | "PUT", |
| 5653 | "PATCH", |
| 5654 | "DELETE" |
| 5655 | ], |
| 5656 | "endpoints": [ |
| 5657 | { |
| 5658 | "methods": [ |
| 5659 | "GET" |
| 5660 | ], |
| 5661 | "args": { |
| 5662 | "id": { |
| 5663 | "description": "The id of a template", |
| 5664 | "type": "string", |
| 5665 | "required": false |
| 5666 | } |
| 5667 | } |
| 5668 | }, |
| 5669 | { |
| 5670 | "methods": [ |
| 5671 | "POST", |
| 5672 | "PUT", |
| 5673 | "PATCH" |
| 5674 | ], |
| 5675 | "args": { |
| 5676 | "slug": { |
| 5677 | "description": "Unique slug identifying the template.", |
| 5678 | "type": "string", |
| 5679 | "minLength": 1, |
| 5680 | "pattern": "[a-zA-Z_\\-]+", |
| 5681 | "required": false |
| 5682 | }, |
| 5683 | "theme": { |
| 5684 | "description": "Theme identifier for the template.", |
| 5685 | "type": "string", |
| 5686 | "required": false |
| 5687 | }, |
| 5688 | "content": { |
| 5689 | "description": "Content of template.", |
| 5690 | "type": [ |
| 5691 | "object", |
| 5692 | "string" |
| 5693 | ], |
| 5694 | "required": false |
| 5695 | }, |
| 5696 | "title": { |
| 5697 | "description": "Title of template.", |
| 5698 | "type": [ |
| 5699 | "object", |
| 5700 | "string" |
| 5701 | ], |
| 5702 | "required": false |
| 5703 | }, |
| 5704 | "description": { |
| 5705 | "description": "Description of template.", |
| 5706 | "type": "string", |
| 5707 | "required": false |
| 5708 | }, |
| 5709 | "status": { |
| 5710 | "description": "Status of template.", |
| 5711 | "type": "string", |
| 5712 | "required": false |
| 5713 | }, |
| 5714 | "area": { |
| 5715 | "description": "Where the template part is intended for use (header, footer, etc.)", |
| 5716 | "type": "string", |
| 5717 | "required": false |
| 5718 | } |
| 5719 | } |
| 5720 | }, |
| 5721 | { |
| 5722 | "methods": [ |
| 5723 | "DELETE" |
| 5724 | ], |
| 5725 | "args": { |
| 5726 | "force": { |
| 5727 | "type": "boolean", |
| 5728 | "default": false, |
| 5729 | "description": "Whether to bypass Trash and force deletion.", |
| 5730 | "required": false |
| 5731 | } |
| 5732 | } |
| 5733 | } |
| 5734 | ] |
| 5735 | }, |
| 5736 | "/wp/v2/template-parts/(?P<parent>[\\d]+)/revisions": { |
| 5737 | "namespace": "wp/v2", |
| 5738 | "methods": [ |
| 5739 | "GET" |
| 5740 | ], |
| 5741 | "endpoints": [ |
| 5742 | { |
| 5743 | "methods": [ |
| 5744 | "GET" |
| 5745 | ], |
| 5746 | "args": { |
| 5747 | "parent": { |
| 5748 | "description": "The ID for the parent of the revision.", |
| 5749 | "type": "integer", |
| 5750 | "required": false |
| 5751 | }, |
| 5752 | "context": { |
| 5753 | "description": "Scope under which the request is made; determines fields present in response.", |
| 5754 | "type": "string", |
| 5755 | "enum": [ |
| 5756 | "view", |
| 5757 | "embed", |
| 5758 | "edit" |
| 5759 | ], |
| 5760 | "default": "view", |
| 5761 | "required": false |
| 5762 | }, |
| 5763 | "page": { |
| 5764 | "description": "Current page of the collection.", |
| 5765 | "type": "integer", |
| 5766 | "default": 1, |
| 5767 | "minimum": 1, |
| 5768 | "required": false |
| 5769 | }, |
| 5770 | "per_page": { |
| 5771 | "description": "Maximum number of items to be returned in result set.", |
| 5772 | "type": "integer", |
| 5773 | "minimum": 1, |
| 5774 | "maximum": 100, |
| 5775 | "required": false |
| 5776 | }, |
| 5777 | "search": { |
| 5778 | "description": "Limit results to those matching a string.", |
| 5779 | "type": "string", |
| 5780 | "required": false |
| 5781 | }, |
| 5782 | "exclude": { |
| 5783 | "description": "Ensure result set excludes specific IDs.", |
| 5784 | "type": "array", |
| 5785 | "items": { |
| 5786 | "type": "integer" |
| 5787 | }, |
| 5788 | "default": [], |
| 5789 | "required": false |
| 5790 | }, |
| 5791 | "include": { |
| 5792 | "description": "Limit result set to specific IDs.", |
| 5793 | "type": "array", |
| 5794 | "items": { |
| 5795 | "type": "integer" |
| 5796 | }, |
| 5797 | "default": [], |
| 5798 | "required": false |
| 5799 | }, |
| 5800 | "offset": { |
| 5801 | "description": "Offset the result set by a specific number of items.", |
| 5802 | "type": "integer", |
| 5803 | "required": false |
| 5804 | }, |
| 5805 | "order": { |
| 5806 | "description": "Order sort attribute ascending or descending.", |
| 5807 | "type": "string", |
| 5808 | "default": "desc", |
| 5809 | "enum": [ |
| 5810 | "asc", |
| 5811 | "desc" |
| 5812 | ], |
| 5813 | "required": false |
| 5814 | }, |
| 5815 | "orderby": { |
| 5816 | "description": "Sort collection by object attribute.", |
| 5817 | "type": "string", |
| 5818 | "default": "date", |
| 5819 | "enum": [ |
| 5820 | "date", |
| 5821 | "id", |
| 5822 | "include", |
| 5823 | "relevance", |
| 5824 | "slug", |
| 5825 | "include_slugs", |
| 5826 | "title" |
| 5827 | ], |
| 5828 | "required": false |
| 5829 | } |
| 5830 | } |
| 5831 | } |
| 5832 | ] |
| 5833 | }, |
| 5834 | "/wp/v2/template-parts/(?P<parent>[\\d]+)/revisions/(?P<id>[\\d]+)": { |
| 5835 | "namespace": "wp/v2", |
| 5836 | "methods": [ |
| 5837 | "GET", |
| 5838 | "DELETE" |
| 5839 | ], |
| 5840 | "endpoints": [ |
| 5841 | { |
| 5842 | "methods": [ |
| 5843 | "GET" |
| 5844 | ], |
| 5845 | "args": { |
| 5846 | "parent": { |
| 5847 | "description": "The ID for the parent of the revision.", |
| 5848 | "type": "integer", |
| 5849 | "required": false |
| 5850 | }, |
| 5851 | "id": { |
| 5852 | "description": "Unique identifier for the revision.", |
| 5853 | "type": "integer", |
| 5854 | "required": false |
| 5855 | }, |
| 5856 | "context": { |
| 5857 | "description": "Scope under which the request is made; determines fields present in response.", |
| 5858 | "type": "string", |
| 5859 | "enum": [ |
| 5860 | "view", |
| 5861 | "embed", |
| 5862 | "edit" |
| 5863 | ], |
| 5864 | "default": "view", |
| 5865 | "required": false |
| 5866 | } |
| 5867 | } |
| 5868 | }, |
| 5869 | { |
| 5870 | "methods": [ |
| 5871 | "DELETE" |
| 5872 | ], |
| 5873 | "args": { |
| 5874 | "parent": { |
| 5875 | "description": "The ID for the parent of the revision.", |
| 5876 | "type": "integer", |
| 5877 | "required": false |
| 5878 | }, |
| 5879 | "id": { |
| 5880 | "description": "Unique identifier for the revision.", |
| 5881 | "type": "integer", |
| 5882 | "required": false |
| 5883 | }, |
| 5884 | "force": { |
| 5885 | "type": "boolean", |
| 5886 | "default": false, |
| 5887 | "description": "Required to be true, as revisions do not support trashing.", |
| 5888 | "required": false |
| 5889 | } |
| 5890 | } |
| 5891 | } |
| 5892 | ] |
| 5893 | }, |
| 5894 | "/wp/v2/template-parts/(?P<id>[\\d]+)/autosaves": { |
| 5895 | "namespace": "wp/v2", |
| 5896 | "methods": [ |
| 5897 | "GET", |
| 5898 | "POST" |
| 5899 | ], |
| 5900 | "endpoints": [ |
| 5901 | { |
| 5902 | "methods": [ |
| 5903 | "GET" |
| 5904 | ], |
| 5905 | "args": { |
| 5906 | "parent": { |
| 5907 | "description": "The ID for the parent of the autosave.", |
| 5908 | "type": "integer", |
| 5909 | "required": false |
| 5910 | }, |
| 5911 | "context": { |
| 5912 | "description": "Scope under which the request is made; determines fields present in response.", |
| 5913 | "type": "string", |
| 5914 | "enum": [ |
| 5915 | "view", |
| 5916 | "embed", |
| 5917 | "edit" |
| 5918 | ], |
| 5919 | "default": "view", |
| 5920 | "required": false |
| 5921 | } |
| 5922 | } |
| 5923 | }, |
| 5924 | { |
| 5925 | "methods": [ |
| 5926 | "POST" |
| 5927 | ], |
| 5928 | "args": { |
| 5929 | "parent": { |
| 5930 | "description": "The ID for the parent of the autosave.", |
| 5931 | "type": "integer", |
| 5932 | "required": false |
| 5933 | }, |
| 5934 | "slug": { |
| 5935 | "description": "Unique slug identifying the template.", |
| 5936 | "type": "string", |
| 5937 | "minLength": 1, |
| 5938 | "pattern": "[a-zA-Z_\\-]+", |
| 5939 | "required": false |
| 5940 | }, |
| 5941 | "theme": { |
| 5942 | "description": "Theme identifier for the template.", |
| 5943 | "type": "string", |
| 5944 | "required": false |
| 5945 | }, |
| 5946 | "content": { |
| 5947 | "description": "Content of template.", |
| 5948 | "type": [ |
| 5949 | "object", |
| 5950 | "string" |
| 5951 | ], |
| 5952 | "required": false |
| 5953 | }, |
| 5954 | "title": { |
| 5955 | "description": "Title of template.", |
| 5956 | "type": [ |
| 5957 | "object", |
| 5958 | "string" |
| 5959 | ], |
| 5960 | "required": false |
| 5961 | }, |
| 5962 | "description": { |
| 5963 | "description": "Description of template.", |
| 5964 | "type": "string", |
| 5965 | "required": false |
| 5966 | }, |
| 5967 | "status": { |
| 5968 | "description": "Status of template.", |
| 5969 | "type": "string", |
| 5970 | "required": false |
| 5971 | }, |
| 5972 | "area": { |
| 5973 | "description": "Where the template part is intended for use (header, footer, etc.)", |
| 5974 | "type": "string", |
| 5975 | "required": false |
| 5976 | } |
| 5977 | } |
| 5978 | } |
| 5979 | ] |
| 5980 | }, |
| 5981 | "/wp/v2/template-parts/(?P<parent>[\\d]+)/autosaves/(?P<id>[\\d]+)": { |
| 5982 | "namespace": "wp/v2", |
| 5983 | "methods": [ |
| 5984 | "GET" |
| 5985 | ], |
| 5986 | "endpoints": [ |
| 5987 | { |
| 5988 | "methods": [ |
| 5989 | "GET" |
| 5990 | ], |
| 5991 | "args": { |
| 5992 | "parent": { |
| 5993 | "description": "The ID for the parent of the autosave.", |
| 5994 | "type": "integer", |
| 5995 | "required": false |
| 5996 | }, |
| 5997 | "id": { |
| 5998 | "description": "The ID for the autosave.", |
| 5999 | "type": "integer", |
| 6000 | "required": false |
| 6001 | }, |
| 6002 | "context": { |
| 6003 | "description": "Scope under which the request is made; determines fields present in response.", |
| 6004 | "type": "string", |
| 6005 | "enum": [ |
| 6006 | "view", |
| 6007 | "embed", |
| 6008 | "edit" |
| 6009 | ], |
| 6010 | "default": "view", |
| 6011 | "required": false |
| 6012 | } |
| 6013 | } |
| 6014 | } |
| 6015 | ] |
| 6016 | }, |
| 6017 | "/wp/v2/navigation": { |
| 6018 | "namespace": "wp/v2", |
| 6019 | "methods": [ |
| 6020 | "GET", |
| 6021 | "POST" |
| 6022 | ], |
| 6023 | "endpoints": [ |
| 6024 | { |
| 6025 | "methods": [ |
| 6026 | "GET" |
| 6027 | ], |
| 6028 | "allow_batch": { |
| 6029 | "v1": true |
| 6030 | }, |
| 6031 | "args": { |
| 6032 | "context": { |
| 6033 | "description": "Scope under which the request is made; determines fields present in response.", |
| 6034 | "type": "string", |
| 6035 | "enum": [ |
| 6036 | "view", |
| 6037 | "embed", |
| 6038 | "edit" |
| 6039 | ], |
| 6040 | "default": "view", |
| 6041 | "required": false |
| 6042 | }, |
| 6043 | "page": { |
| 6044 | "description": "Current page of the collection.", |
| 6045 | "type": "integer", |
| 6046 | "default": 1, |
| 6047 | "minimum": 1, |
| 6048 | "required": false |
| 6049 | }, |
| 6050 | "per_page": { |
| 6051 | "description": "Maximum number of items to be returned in result set.", |
| 6052 | "type": "integer", |
| 6053 | "default": 10, |
| 6054 | "minimum": 1, |
| 6055 | "maximum": 100, |
| 6056 | "required": false |
| 6057 | }, |
| 6058 | "search": { |
| 6059 | "description": "Limit results to those matching a string.", |
| 6060 | "type": "string", |
| 6061 | "required": false |
| 6062 | }, |
| 6063 | "after": { |
| 6064 | "description": "Limit response to posts published after a given ISO8601 compliant date.", |
| 6065 | "type": "string", |
| 6066 | "format": "date-time", |
| 6067 | "required": false |
| 6068 | }, |
| 6069 | "modified_after": { |
| 6070 | "description": "Limit response to posts modified after a given ISO8601 compliant date.", |
| 6071 | "type": "string", |
| 6072 | "format": "date-time", |
| 6073 | "required": false |
| 6074 | }, |
| 6075 | "before": { |
| 6076 | "description": "Limit response to posts published before a given ISO8601 compliant date.", |
| 6077 | "type": "string", |
| 6078 | "format": "date-time", |
| 6079 | "required": false |
| 6080 | }, |
| 6081 | "modified_before": { |
| 6082 | "description": "Limit response to posts modified before a given ISO8601 compliant date.", |
| 6083 | "type": "string", |
| 6084 | "format": "date-time", |
| 6085 | "required": false |
| 6086 | }, |
| 6087 | "exclude": { |
| 6088 | "description": "Ensure result set excludes specific IDs.", |
| 6089 | "type": "array", |
| 6090 | "items": { |
| 6091 | "type": "integer" |
| 6092 | }, |
| 6093 | "default": [], |
| 6094 | "required": false |
| 6095 | }, |
| 6096 | "include": { |
| 6097 | "description": "Limit result set to specific IDs.", |
| 6098 | "type": "array", |
| 6099 | "items": { |
| 6100 | "type": "integer" |
| 6101 | }, |
| 6102 | "default": [], |
| 6103 | "required": false |
| 6104 | }, |
| 6105 | "offset": { |
| 6106 | "description": "Offset the result set by a specific number of items.", |
| 6107 | "type": "integer", |
| 6108 | "required": false |
| 6109 | }, |
| 6110 | "order": { |
| 6111 | "description": "Order sort attribute ascending or descending.", |
| 6112 | "type": "string", |
| 6113 | "default": "desc", |
| 6114 | "enum": [ |
| 6115 | "asc", |
| 6116 | "desc" |
| 6117 | ], |
| 6118 | "required": false |
| 6119 | }, |
| 6120 | "orderby": { |
| 6121 | "description": "Sort collection by post attribute.", |
| 6122 | "type": "string", |
| 6123 | "default": "date", |
| 6124 | "enum": [ |
| 6125 | "author", |
| 6126 | "date", |
| 6127 | "id", |
| 6128 | "include", |
| 6129 | "modified", |
| 6130 | "parent", |
| 6131 | "relevance", |
| 6132 | "slug", |
| 6133 | "include_slugs", |
| 6134 | "title" |
| 6135 | ], |
| 6136 | "required": false |
| 6137 | }, |
| 6138 | "slug": { |
| 6139 | "description": "Limit result set to posts with one or more specific slugs.", |
| 6140 | "type": "array", |
| 6141 | "items": { |
| 6142 | "type": "string" |
| 6143 | }, |
| 6144 | "required": false |
| 6145 | }, |
| 6146 | "status": { |
| 6147 | "default": "publish", |
| 6148 | "description": "Limit result set to posts assigned one or more statuses.", |
| 6149 | "type": "array", |
| 6150 | "items": { |
| 6151 | "enum": [ |
| 6152 | "publish", |
| 6153 | "future", |
| 6154 | "draft", |
| 6155 | "pending", |
| 6156 | "private", |
| 6157 | "trash", |
| 6158 | "auto-draft", |
| 6159 | "inherit", |
| 6160 | "request-pending", |
| 6161 | "request-confirmed", |
| 6162 | "request-failed", |
| 6163 | "request-completed", |
| 6164 | "any" |
| 6165 | ], |
| 6166 | "type": "string" |
| 6167 | }, |
| 6168 | "required": false |
| 6169 | } |
| 6170 | } |
| 6171 | }, |
| 6172 | { |
| 6173 | "methods": [ |
| 6174 | "POST" |
| 6175 | ], |
| 6176 | "allow_batch": { |
| 6177 | "v1": true |
| 6178 | }, |
| 6179 | "args": { |
| 6180 | "date": { |
| 6181 | "description": "The date the post was published, in the site's timezone.", |
| 6182 | "type": [ |
| 6183 | "string", |
| 6184 | "null" |
| 6185 | ], |
| 6186 | "format": "date-time", |
| 6187 | "required": false |
| 6188 | }, |
| 6189 | "date_gmt": { |
| 6190 | "description": "The date the post was published, as GMT.", |
| 6191 | "type": [ |
| 6192 | "string", |
| 6193 | "null" |
| 6194 | ], |
| 6195 | "format": "date-time", |
| 6196 | "required": false |
| 6197 | }, |
| 6198 | "slug": { |
| 6199 | "description": "An alphanumeric identifier for the post unique to its type.", |
| 6200 | "type": "string", |
| 6201 | "required": false |
| 6202 | }, |
| 6203 | "status": { |
| 6204 | "description": "A named status for the post.", |
| 6205 | "type": "string", |
| 6206 | "enum": [ |
| 6207 | "publish", |
| 6208 | "future", |
| 6209 | "draft", |
| 6210 | "pending", |
| 6211 | "private" |
| 6212 | ], |
| 6213 | "required": false |
| 6214 | }, |
| 6215 | "password": { |
| 6216 | "description": "A password to protect access to the content and excerpt.", |
| 6217 | "type": "string", |
| 6218 | "required": false |
| 6219 | }, |
| 6220 | "title": { |
| 6221 | "description": "The title for the post.", |
| 6222 | "type": "object", |
| 6223 | "properties": { |
| 6224 | "raw": { |
| 6225 | "description": "Title for the post, as it exists in the database.", |
| 6226 | "type": "string", |
| 6227 | "context": [ |