Hi. In this tutorial we will use Drupal CMS as the application backend
The first thing we have to do is give permission to json to be accessed by the app
This can be done by adding some code on htaccess
look for the text "mod_headers.c" and edit the code
When it's finished. then we save it!
The next step is to activate the JSON: API module
Click the Extend menu
Then check: JSON: API and Serialization
Then click the Install button!
Next for configuration
For security reasons. just choose "Accept only JSON: API read operations"
let's test, has JSON been able to perform perfectly?
JSON has appeared normally
Next! we will use JSON Scraping addons to generate codes to retrieve data in Drupal
Select the page to be the target code and write the page title
For JSON URLs use a format like this
1st Variable must be filled. because the first variable is an object. not an array
For "JSON URL for Single Item" the value in the id parameter is replaced with {id}
and so for the 1st Variable for detail items must be filled. because the first variable is an array. not an object
and other settings just like the others
and other settings just like the others. only the difference: "1st Variable" must be filled correctly