Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#3416 closed defect (bug) (worksforme)

Add plugins data to info v1.2

Reported by: casiepa's profile casiepa Owned by:
Milestone: Priority: normal
Component: API Keywords:


A lot of information exists in different APIs to get information of a plugin. Now that v1.2 is being created, it might be a good idea to unify some of the info.

Starting from e.g.[slug]=bbpress I don't see info that is in

3 possibilites:
1) Add the post_id in info/1.2
2) add the missing parts into info/1.2 (like rating, author id, stable_tag, colors, etc)
3) Both 1) and 2)

Change History (1)

#1 @dd32
6 years ago

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

Most of those things are already available.

post_id - That's internal and shouldn't be relied upon, all plugins data should be accessed by slug.
rating - Pass the rating field (It's enabled by default)
author id - We'll refer to everything by user slug
stable_tag - Pass the stable_tag field.
colors - That's internal directory data that's not needed outside of the directory (and even then, should not be relied upon always being there / in the same format)

In general, accessing /plugins/wp-json/wp/v2/plugin/ should also be avoided for anything, as it's unlikely to remain accessible as it is forever, it's bound to be restricted due to the additional server load which it can cause on non-api-webservers.

If there's any useful data that's needed, we can enable that through a field statement, but we'll need a use-case for it.

I'm going to close this as worksforme, but if there's anything specific you need access to, make a specific request ticket for it.
(edit: I'll also note that WordPress itself is who the API is designed for, if core doesn't need something, chances are we'll not support it)

Last edited 6 years ago by dd32 (previous) (diff)
Note: See TracTickets for help on using tickets.