WooMinecraft / woominecraft-wp

A FREE Minecraft Donation Plugin for WordPress designed to work in conjunction with WooMinecraft for Bukkit/Spigot & WooCommerce to allow the purchasing of virtual items in MineCraft and have them delivered to the servers.
https://wordpress.org/plugins/woominecraft/
GNU General Public License v2.0
31 stars 14 forks source link

WP REST API Support #37

Closed JayWood closed 4 years ago

ethsmith commented 7 years ago

Could you please elaborate on this idea? What exactly do you mean.

ethsmith commented 7 years ago

Like a ReST API for users to use for custom solutions? Or do you want to switch over the actual app to a better ReST setup?

JayWood commented 7 years ago

The WordPress side of things will be moving to use the WordPress REST API instead of custom query strings. This also means the JAVA side of things can use most readily available REST client libraries instead of the current custom Apache HTTP implementation

In short, this will make endpoints available for both getting server commands, and processing orders, while still using server keys.

And no, keys won't be exposed in endpoints.

Example

Current Endpoint

http://example.com/?wmc_key=myrandomlychosenkey

New endpoint

http://example.com/wp-json/woominecraft/v1/server/myrandomlychosenkey

Additionally this should alleviate most hosting issues with query strings, since WordPress has officially started supporting the WordPress REST API for some time now. Not to say there won't be that one host who just.... doesn't upgrade lol.

JayWood commented 7 years ago

Changed the title to make it less confusing.

ethsmith commented 7 years ago

Ah okay.