As part of the application process, you’ve been requested to complete the following challenge. If you have any questions please respond to the last email you received from our team.
Using the GET accessible endpoint https://cspf-dev-challenge.herokuapp.com/ (there are no parameters to/from required), create an AJAX endpoint in WordPress that:
- Can be used when logged out or in, and returns a JSON response which contains an HTML table of the endpoint data
- Which when called always returns the data, but regardless of when/how many times it is called should never request the data from our server more than 1 time per hour
- Within the table, ensure that values in the Date column are formatted according to the configured WordPress Date and Time formats, and displayed in the configured WordPress Timezone
Ensure to properly escape, sanitize and validate data in each step as appropriate using built in PHP and WordPress functions.
Organize & package the code as a WordPress plugin zip file.
The code you submit should not be built from a boilerplate.