Documentation menu

test : Test method for debugging

This method reads AJAX POST request data, parses it and outputs as array. It also outputs post data in a raw format. You may use it for debugging your code.

Method: POST
Content-type: application-json

Request example

          curl -i -H "Accept: application/json" \
     -H "Content-Type: application/json" \
     -X POST -d '{
"hello" : "world",
"apitest" : true

Response example

JSON with no errors
          HTTP/1.1 200 OK
Server: nginx/1.12.1
Date: Tue, 24 Oct 2017 21:25:57 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive

Parsed input JSON:
    [clientKey] => myClientKey
    [hello] => world
    [apitest] => 1
Raw POST input:
"hello" : "world",
"apitest" : true