summaryrefslogtreecommitdiff
path: root/rest.pl
blob: 9b1330de2fab04d1576f8f9fedda3fe4461e689b (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
  6. "REST API disabled by default until authentication is working correctly\n";
  7. print
  8. "If you understand the security implications of this, and wish to enable the REST api\n";
  9. print "Then open rest.pl, and remove these 5 lines";
  10. exit;
  11. LedgerSMB::RESTXML::Handler->cgi_handle();
  12. =head1 NAME
  13. rest.pl - RESTful interface to LedgerSMB
  14. =head1 SUMMARY
  15. URLS that are working:
  16. [OK] GET rest.pl/Login/Customer/12345
  17. [ ] GET rest.pl/Login/Customer/CUSTOMERNUMBER
  18. [OK] GET rest.pl/Login/Customer_Search?_keyword=FOO
  19. [OK] GET rest.pl/Login/Part/12345
  20. [ ] GET rest.pl/Login/Part/PARTNUMBER
  21. [ ] GET rest.pl/Login/Part_Search?_keyword=red
  22. [ ] GET rest.pl/Login/SalesOrder/12345
  23. =cut