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.
Requirements
Step 1
Using the GET accessible endpoint https://caseproof.s3.amazonaws.com/dev-challenge/table.json (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
- Create a shortcode for the frontend, that when loaded uses JavaScript to contact your AJAX endpoint and displays the HTML table containing the data at the location of the shortcode
- 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.