![]() ![]() If I turn on ‘Enable CRON to remove backlog’, it will capture log, as results database will be consumed more space. If you put that code snippet and return your OBJECT/ARRAY/ STRING, then this plugin will return a JSON array and your ‘returned value’ will be on the DATA object. And that variable holding all request parameters. Hence if you put that code in your any function PHP file, you will see a ‘$param’ variable is passing through that callback function. If you click on that icon, you will be prompted with a CODE snippet. IN the description it has already mentioned, that after registering an endpoint in the backend, you will see an ‘INFO’ icon on ‘Filter Hook’ Column in Endpoint Listing. How Do I get request’s Parameters in server side However, Custom Endpoint is user defined in this plugin. Admin can change the number of days from the settings panel.īasically, Endpoint URL is an API URL, Anyone can send a request to the server with that URL and will get a response from the server after processing the requests. All recent actions will be recorded by this plugin and the activity would be recorded for maximum last 6 days. ![]() ☛ There is a Recent activity tab in the admin panel. Please note WordPress CRON is not a real-time auto job, it could be a delay. The users can select their desired options to delete log in the settings panel. ☛ One of the most features of this plugin is that it records all requests/responses and create a log, if it is TURN ON in the settings panel.Also, the plugin will remove/delete previously captured log VIA CRON, if CRON is enabled in the settings panel. Users can control settings from the settings panel. ☛ This plugin exposes a simple yet easy interface to all settings. After defining the FILTER hook in any function page, you will be started receiving all request parameters and make functioning your API and return your output. You can find that in Endpoint Listing panel. Yes, the answer is you could make a API in very less time with the Endpoint URLs, however you do not need to write/handle the API, you just hang your own code in the filter hook, provided by this plugin, once you have created an endpoint, and enjoy the response. ☛ Now one question could appear in your mind that what’s need to create a Custom Endpoints URL, though I need to write my own custom code to make a API. If you hit that endpoint URL, you will get a ‘Connection OK’ response instantly.That Means your endpoint uRL/Route is ready. When You are creating an endpoint, this plugin register that ROUTE automatically with parameters(request) defined by the users in ‘Endpoint URLs’ Tab and the plugin builds an endpoint instantly. ☛ Now coming to the Custom Endpoints URLs.This plugin provides an easy or simple way to create a Custom Endpoints/route by just one click. You can see those in ‘Endpoint URLs’ tab. By default, the plugin will be providing a ROOT SECRET KEY. After creating a new access, the plugin will be providing a SECRET KEY, which will be needed on requests. ☛ Firstly a Secret Key is needed to call the Custom Endpoints URL, However Admin can create ‘New Secret Key’ on plugin interface in the backend. ☛ You probably understand we requires lots of hours of work to make a plugins and technical supports, So if you like this plugin, you can buy me an Ice-Cream here – ✅ Capture Api Request/Response Log into system The WordPress REST API is more than just a set of default routes.But you want to add your Custom Endpoints/routes to the WP REST API ? Fantastic! Let’s get started with this plugin.
0 Comments
Leave a Reply. |