Skip to content

Blitz-Mobile-Apps/wordpress-general-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wordpress General API Generator

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

Installation

This plugin is required to install woocommerce.

Get app data

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..."
		}
	}
}

Contact form

POST: http://localhost/Plugin_api/wp-json/api/v1/contact_form

{
	"name" : "asdfsa",
	"email" : "[email protected]",
	"message" : "asdfsa"
}

Forget password

POST: http://localhost/Plugin_api/wp-json/api/v1/forgotpassword

{
	"email" : "[email protected]"
}

Code verify

POST: http://localhost/Plugin_api/wp-json/api/v1/code_verify

{
	"code" : "12345"
}

Change password

POST: http://localhost/Plugin_api/wp-json/api/v1/change_password

{
	"code" : "12345",
    "password" : "12345"
}

Get shipping by country

POST: http://localhost/Plugin_api/wp-json/api/v1/get_shipping_method_by_country

{
	"country" : "US",
}

Get all contries

GET: http://localhost/Plugin_api/wp-json/api/v1/get_all_contries

Get product by id

GET: http://localhost/Plugin_api/wp-json/api/v1/get_product_by_id/{product_id}

Contributing

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.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages