All Projects → imranhsayed → rest-api-endpoints

imranhsayed / rest-api-endpoints

Licence: other
🌾 WordPress REST API endpoints

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to rest-api-endpoints

Intervention
WordPress plugin to configure wp-admin and application state using a single config file.
Stars: ✭ 481 (+1451.61%)
Mutual labels:  wordpress-plugin, wordpress-development, wordpress-api
Live Composer Page Builder
Free page builder plugin for WordPress http://livecomposerplugin.com
Stars: ✭ 143 (+361.29%)
Mutual labels:  wordpress-plugin, wordpress-development, wordpress-api
kirby3-instagram
Kirby 3 Plugin to call Instagram (or any other) API Endpoints
Stars: ✭ 20 (-35.48%)
Mutual labels:  endpoint, endpoints
Co Cart
🛒 CoCart is a flexible, open-source solution to enabling the shopping cart via the REST API for WooCommerce.
Stars: ✭ 198 (+538.71%)
Mutual labels:  wordpress-plugin, wordpress-development
Woocommerce.net
A .NET Wrapper for WooCommerce/WordPress REST API
Stars: ✭ 247 (+696.77%)
Mutual labels:  wordpress-plugin, wordpress-api
Restsplain
WordPress REST API documentation generator
Stars: ✭ 126 (+306.45%)
Mutual labels:  wordpress-plugin, wordpress-api
Codestar Framework
A Simple and Lightweight WordPress Option Framework for Themes and Plugins
Stars: ✭ 147 (+374.19%)
Mutual labels:  wordpress-plugin, wordpress-development
Code Snippets
Code Snippets WordPress Plugin
Stars: ✭ 226 (+629.03%)
Mutual labels:  wordpress-plugin, wordpress-development
Updevtools
UpDevTools - A suite of developer tools for your WordPress development environment
Stars: ✭ 74 (+138.71%)
Mutual labels:  wordpress-plugin, wordpress-development
dudestack
A toolkit for creating a new professional WordPress project with deployments. Originally based on Roots/bedrock.
Stars: ✭ 82 (+164.52%)
Mutual labels:  wordpress-plugin, wordpress-development
wordpress
📚 Recursos para aprender WordPress
Stars: ✭ 20 (-35.48%)
Mutual labels:  wordpress-plugin, wordpress-development
patterns
Pattern Library for WordPress Theme and Plugin Developers to aide in building Admin interfaces
Stars: ✭ 56 (+80.65%)
Mutual labels:  wordpress-plugin, wordpress-development
Login Designer
Official repository of the Login Designer WordPress Plugin
Stars: ✭ 97 (+212.9%)
Mutual labels:  wordpress-plugin, wordpress-development
Dynamic Featured Image
Dynamically adds multiple featured image (post thumbnail) functionality to posts, pages and custom post types
Stars: ✭ 96 (+209.68%)
Mutual labels:  wordpress-plugin, wordpress-development
Wp Functions List
This is a list of all WordPress functions from version 0 to version 4.8.1 along with the data of when they were first introduced and if they are deprecated or not
Stars: ✭ 88 (+183.87%)
Mutual labels:  wordpress-plugin, wordpress-development
Brizy
Brizy is the most user-friendly visual page builder in town! No designer or developer skills required. The only tools you'll need to master are clicks and drags.
Stars: ✭ 209 (+574.19%)
Mutual labels:  wordpress-plugin, wordpress-development
wp-boilerplate-plugin-with-vuejs
This is an example plugin for Wp plugin developer.
Stars: ✭ 26 (-16.13%)
Mutual labels:  wordpress-plugin, wordpress-development
Better Rest Endpoints
A WordPress plugin that serves up slimmer WP Rest API endpoints.
Stars: ✭ 56 (+80.65%)
Mutual labels:  wordpress-plugin, wordpress-api
Wpintel
Chrome extension designed for WordPress Vulnerability Scanning and information gathering!
Stars: ✭ 70 (+125.81%)
Mutual labels:  wordpress-plugin, wordpress-development
view-admin-as
View the WordPress admin as a different role, switch between users, temporarily change your capabilities, set default screen settings for roles, manage your roles and capabilities.
Stars: ✭ 44 (+41.94%)
Mutual labels:  wordpress-development, capabilities

REST API ENDPOINT

This plugin provides you different endpoints using WordPress REST API.

  • 👤 Login End Point
  • 📃 Create Post End Point

Login Endpoint Demo 📹

When we access the end point on URI: http://your-domain/wp-json/wp/v2/rae/user/login, and we pass our username and password in the body using postman, we get the following with a status code:

  • User Object on success
  • Error when fields are empty or incorrect credentials
  • Any other error.

Create a new post Endpoint Demo 📹

When we access the end point on URI: http://your-domain/wp-json/wp/v2/rae/post/create, and we pass our 'user_id', 'title' and 'content' in the body using postman, we get the following with a status code:

  • New post id if the post is created.
  • Error when fields are empty or if the user with the given id does not have capability to publish posts.
  • Any other error.

Getting Started 📋

These instructions will get you a copy of the project up and running on your local machine for development purposes.

Prerequisites 🚪

You need to have any WordPress theme activated on your WordPress project, which has REST API enabled.

Installation 🔧

  1. Clone the plugin directory in the /wp-content/plugins/ directory, or install a zipped directory of this plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress

Use 🎿

There are different end points that are available. Some are public while others are protected.

  • 👤 Login End Point http://your-domain/wp-json/wp/v2/rae/user/login

Params to be sent in the body username(String) and password(String) Return Value: User Object or Error (Object)

  • 📃 Create Post End Point http://your-domain/wp-json/wp/v2/rae/post/create

Params to be sent in the body user_id(Int), title(String) and content(String) Return Value: Object with post ID and status or Error (Object)

Features

  • Adds option to add social links in customizer
  • Registers two custom menus for header ( menu location = rwt-menu-header ) and for footer ( menu location = rwt-menu-footer )
  • Registers the following sidebars
  1. RWT Footer #1 with sidebar id 'rwt-sidebar-1'
  2. RWT Footer #2 with sidebar id 'rwt-sidebar-2'
  • Registers custom end points

Available Endpoints:

Get single post ( GET request )

  • http://example.com/wp-json/rae/v1/post?post_id=1

Get posts by page no: ( GET Request )

  • http://example.com/wp-json/rae/v1/posts?page_no=1

Get header and footer date: ( GET Request )

  • Get the header data ( site title, site description , site logo URL, menu items ) and footer data ( footer menu items, social icons )
  • http://example.com/wp-json/rae/v1/header-footer?header_location_id=primary&footer_location_id=secondary

Create new post: ( POST Request )

Contributing 👥

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

I use Git for versioning.

Author 📝

License 📄

License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].