Fork me on GitHub

CodeIgniter REST Server Tests

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

The master project repository is https://github.com/halimus/codeigniter-rest-api

Click on the links to check whether the REST server is working.

GET users

  1. https://satnadiocese.org/api/users - get it in JSON by default
  2. https://satnadiocese.org/api/users/format/json - get it in JSON
  3. https://satnadiocese.org/api/users/format/xml - get it in XML
  4. https://satnadiocese.org/api/users/format/html - get it in HTML
  5. https://satnadiocese.org/api/users/format/csv - get it in CSV

  6. https://satnadiocese.org/api/users?format=json - get it in JSON
  7. https://satnadiocese.org/api/users?format=xml - get it in XML
  8. https://satnadiocese.org/api/users?format=html - get it in HTML
  9. https://satnadiocese.org/api/users?format=csv - get it in CSV

  10. https://satnadiocese.org/api/users.json - get it in JSON
  11. https://satnadiocese.org/api/users.xml - get it in XML
  12. https://satnadiocese.org/api/users.html - get it in HTML
  13. https://satnadiocese.org/api/users.csv - get it in CSV

GET users/id/1

  1. https://satnadiocese.org/api/users/id/1 - get it in JSON by default
  2. https://satnadiocese.org/api/users/id/1/format/json - get it in JSON
  3. https://satnadiocese.org/api/users/id/1/format/xml - get it in XML
  4. https://satnadiocese.org/api/users/id/1/format/html - get it in HTML
  5. https://satnadiocese.org/api/users/id/1/format/csv - get it in CSV

  6. https://satnadiocese.org/api/users/id/1?format=json - get it in JSON
  7. https://satnadiocese.org/api/users/id/1?format=xml - get it in XML
  8. https://satnadiocese.org/api/users/id/1?format=html - get it in HTML
  9. https://satnadiocese.org/api/users/id/1?format=csv - get it in CSV

  10. https://satnadiocese.org/api/users/id/1.json - get it in JSON
  11. https://satnadiocese.org/api/users/id/1.xml - get it in XML
  12. https://satnadiocese.org/api/users/id/1.html - get it in HTML
  13. https://satnadiocese.org/api/users/id/1.csv - get it in CSV

POST user

  1. https://satnadiocese.org/api/users/ - create new user

PUT user

  1. https://satnadiocese.org/api/users/id/ - update specific user

DELETE user

  1. https://satnadiocese.org/api/users/id/ - delete specific user