REST Server Tests

Home

The article: http://net.tutsplus.com/tutorials/php/working-with-restful-services-in-codeigniter-2/

The master project repository is: https://github.com/chriskacerguis/codeigniter-restserver

Basic Tests: Click on the links below to check whether the REST server is working.

  1. Users - defaulting to JSON
  2. Users - get it in CSV
  3. User #1 - defaulting to JSON (users/id/1)
  4. User #1 - defaulting to JSON (users/1)
  5. User #1 - get it in XML (users/id/1.xml)
  6. User #1 - get it in XML (users/id/1/format/xml)
  7. User #1 - get it in XML (users/id/1?format=xml)
  8. User #1 - get it in XML (users/1.xml)
  9. Users - get it in JSON (AJAX request)
  10. Users - get it in HTML (users.html)
  11. Users - get it in HTML (users/format/html)
  12. Users - get it in HTML (users?format=html)

Testing various HTTP clients

Accessing the REST Server Using the Curl Library

Accessing the REST Server Using the Rest Client Library

Accessing the REST Server Using the Requests HTTP Library

Accessing the REST Server Using the Guzzle HTTP Client

Accessing the REST Server Using a PHP-HTTP Client

Other

Testing a POST request