Wednesday, November 2, 2022
HomeWordPress DevelopmentCustomized WP Relaxation API Endpoints from JSON Schema

Customized WP Relaxation API Endpoints from JSON Schema


This query appears like a silly query, however for the lifetime of me, I can’t discover a solution.

I’ve created a customized WP relaxation endpoint, and for all intents and functions have it working the best way I would like. Nevertheless, I might wish to create the api construction utilizing precise JSON schema – like from a schema file. Can I import my schema right into a PHP array from JSON and use that? Is it simply so simple as utilizing json_decode(file_get_contents('my_schema.json')? I might simply attempt it, however I do know there could be nuances that I’ll miss. Anyone with any expertise right here? Or is there any documentation that truly specifies one of the simplest ways to go about this with an instance?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments