You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 24, 2018. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 24, 2018. It is now read-only.
Is the desire to, at some point, add routes and endpoints for plugins and themes? I.e for checking currently installed plugins/themes, installing and updating?
I'm thinking about a use for this and have the following routes and endpoints in mind...
Route: /plugins
GET: List of installed plugins, basically the output of get_plugins()
I like the design you've given so far, but I'm not sure on separating POST/PUT. IMO, a better way would be to include an active key in the data that gets returned, and allow the client to change this. I'm not sure how updating would work, because you're correct that it is an action, so maybe PUT for that would work. I'll think about this more. :)
With implementation, I suspect there'll be a few issues around activating plugins/themes, but otherwise it should be pretty straightforward.
In the interests of getting something small that could be built on, I'm planning on adding authentication to my work so far, and submitting a pull request for that. Once those basics are in, anyone can build on it.
Does that sound sensible to folks as a way forward?
Is the desire to, at some point, add routes and endpoints for plugins and themes? I.e for checking currently installed plugins/themes, installing and updating?
I'm thinking about a use for this and have the following routes and endpoints in mind...
Route: /plugins
Route: /plugins/[plugin-name]
Route: /themes
Route: /themes/[theme-name]
What do you think?