summaryrefslogtreecommitdiff
path: root/rest.pl
blob: 276182028d7701f13cbe3b5940ecb92ff54588f6 (plain)
  1. #!/usr/bin/perl
  2. use LedgerSMB::RESTXML::Handler;
  3. # To Enable the REST API, Delete these 5 lines.
  4. print "Content-type: text/plain\n\n";
  5. print "REST API disabled by default until authentication is working correctly\n";
  6. print "If you understand the security implications of this, and wish to enable the REST api\n";
  7. print "Then open rest.pl, and remove these 5 lines";
  8. exit;
  9. LedgerSMB::RESTXML::Handler->cgi_handle();
  10. =head1 NAME
  11. rest.pl - RESTful interface to LedgerSMB
  12. =head1 SUMMARY
  13. URLS that are working:
  14. [OK] GET rest.pl/Login/Customer/12345
  15. [ ] GET rest.pl/Login/Customer/CUSTOMERNUMBER
  16. [OK] GET rest.pl/Login/Customer_Search?_keyword=FOO
  17. [OK] GET rest.pl/Login/Part/12345
  18. [ ] GET rest.pl/Login/Part/PARTNUMBER
  19. [ ] GET rest.pl/Login/Part_Search?_keyword=red
  20. [ ] GET rest.pl/Login/SalesOrder/12345
  21. =cut