Playground SmartAdmin PHP REST API Playground

Configuration

The API demo requires the Authorization header. Call /authenticate end-point first and pass in the Username and Password to secure a token. To set a user with password, use the following command:

php E:\Inetpub\vhosts\eplanosdesaude.com.br\httpdocs/utils/set_password.php --username=lodev09 --password=YOUR_PASSWORD

/authenticate

/hello

Results

Using the jQuery Ajax code example, here is the result from your request:

Example codes

PHP Curl

Using the php-curl-class PHP package, put this code somewhere in your php script:

Curl command line

Run the following command in your terminal:

jQuery Ajax

Put the following code in your <script> block: