WordPress.org

Making WordPress.org

Opened 3 months ago

Closed 3 months ago

Last modified 3 months ago

#5569 closed defect (invalid)

rest api not returns all information about some embedded objects of post

Reported by: sashakozlovskiy Owned by:
Milestone: Priority: normal
Component: General Keywords:
Cc:

Description

When i want to get all information,for example,about category of post,i can get only name and id of category. But i want to get also description of category. Yes,i know,that i can do aditional http request,using category id,but why for author i have this information,but for category and may be for tag - not? Please fix this issue in your rest api. Also i have field links,but i don't want to have this in json. Why in json i get it? You can see example of this issues in link https://опиши-мне.рф/wp-json/wp/v2/posts/1935?_fields=id,title&_embed=author,wp:term. Thank you for your reply.

Change History (3)

#1 @Otto42
3 months ago

  • Resolution set to invalid
  • Status changed from new to closed

This is the meta trac. If you have issues with the REST API and the data it returns, then that is part of the WordPress core and would go on the core.trac instead.

However, the category data would not be returned with the post because it's not information that is about the post, but about the category. This seems unlikely to get any traction, since the purpose of having them separate is so that you don't request excessive amounts of data all at once.

#2 @sashakozlovskiy
3 months ago

Ok,please give me link on which i can report issue to wordpress api. As for data,according to documentation,i can return all data about other object,if i will use _embed argument,as in my example.

#3 @dd32
3 months ago

Enhancements and bugs in WordPress "core" can be filed through https://core.trac.wordpress.org/

Support requests should be directed to https://wordpress.org/support/forums/

Note: See TracTickets for help on using tickets.