This plugin will create a general API such as forgot password, verify code, change password, Shipping Method by country, Contact form and banner creator. Also, this plugin will create Single product data of variable product
This plugin is required to install woocommerce.
GET: http://localhost/Plugin_api/wp-json/api/v1/get_app_data
{
"banners": [
{
"image": "http://localhost/Plugin_api/wp-content/uploads/woocommerce-placeholder.png",
"category": "16",
"button": "View More"
},
{
"image": "http://localhost/Plugin_api/wp-content/uploads/woocommerce-placeholder.png",
"category": "16",
"button": "View More"
}
],
"pages": {
"privacy_policy": {
"image": "http://localhost/Plugin_api/wp-content/uploads/woocommerce-placeholder.png",
"title": "Privacy Policy ",
"content": "Rerum numquam omnis Rerum numquam omnis Rerum numquam omnis Rerum numquam omnis Rerum numquam omnis Rerum numquam omnis Rerum numquam omnis Rerum numquam omnis Rerum numquam omnis Rerum numquam omnis Rerum numquam omnis..."
}
}
}
POST: http://localhost/Plugin_api/wp-json/api/v1/contact_form
{
"name" : "asdfsa",
"email" : "[email protected]",
"message" : "asdfsa"
}
POST: http://localhost/Plugin_api/wp-json/api/v1/forgotpassword
{
"email" : "[email protected]"
}
POST: http://localhost/Plugin_api/wp-json/api/v1/code_verify
{
"code" : "12345"
}
POST: http://localhost/Plugin_api/wp-json/api/v1/change_password
{
"code" : "12345",
"password" : "12345"
}
POST: http://localhost/Plugin_api/wp-json/api/v1/get_shipping_method_by_country
{
"country" : "US",
}
GET: http://localhost/Plugin_api/wp-json/api/v1/get_all_contries
GET: http://localhost/Plugin_api/wp-json/api/v1/get_product_by_id/{product_id}
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.