[wp-meta] [Making WordPress.org] #7385: Review: Append some information to the ZIP urls
Making WordPress.org
noreply at wordpress.org
Mon Apr 29 07:47:30 UTC 2024
#7385: Review: Append some information to the ZIP urls
------------------------------+---------------------
Reporter: dd32 | Owner: (none)
Type: enhancement | Status: new
Priority: high | Milestone:
Component: Plugin Directory | Resolution:
Keywords: |
------------------------------+---------------------
Comment (by dd32):
The above changeset adds a link to a private API endpoint that details
information about the plugin the ZIP is attached to.
The API data is the same as the regular `plugin_information` API endpoint,
but for pending plugins, with some additional fields.
For example, you'd see:
{{{
{
"ID": 12345,
"post_status": "new",
"edit_url": "https://wordpress.org/plugins/wp-
admin/post.php?action=edit&id=12345",
"submitter": {
"user_login": "example_user_login",
"user_email": "user_email at example.org"
},
# Everything below this point would be the same as from
plugin_information
"name": "Test Plugin",
"slug": "d-test-plugin",
"version": "1.0",
....
}}}
The API endpoint is attached to the ZIP urls in wp-admin, for example:
{{{
https://wordpress.org/plugins/files/example-file-
upload.zip?info=https%3A%2F%2Fwordpress.org%2Fplugins%2Fwp-
json%2Fplugins%2Fv1%2Fpending-plugin%2F12345-md5tokenhere%2F
}}}
Additional data/fields can be added as needed.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/7385#comment:5>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list