summaryrefslogtreecommitdiff
path: root/rest.pl
diff options
context:
space:
mode:
authorjasonjayr <jasonjayr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-01-04 02:43:30 +0000
committerjasonjayr <jasonjayr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-01-04 02:43:30 +0000
commita56fe253c96abdff7d9909a3cca3c1d0a6a8e3d2 (patch)
tree8168093b4bccda93c7301a933a7824ce1f27f5c8 /rest.pl
parentfc64714f04d5018ba251f3cbfa98cbaf0f94adb6 (diff)
The start of a new REST API, these modules only provide read-only access for now.
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@750 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'rest.pl')
-rwxr-xr-xrest.pl32
1 files changed, 32 insertions, 0 deletions
diff --git a/rest.pl b/rest.pl
new file mode 100755
index 00000000..968743f0
--- /dev/null
+++ b/rest.pl
@@ -0,0 +1,32 @@
+#!/usr/bin/perl
+
+use LedgerSMB::RESTXML::Handler;
+
+# To Enable the REST API, Delete these 3 lines.
+
+print "Content-type: text/plain\n\n";
+print "REST API disabled by default until authentication is working correctly";
+exit;
+
+LedgerSMB::RESTXML::Handler->cgi_handle();
+
+=head1 NAME
+
+rest.pl - RESTful interface to LedgerSMB
+
+=head1 SUMMARY
+
+ status
+ [OK] GET rest.pl/Customer/12345
+ [ ] GET rest.pl/Customer/CUSTOMERNUMBER
+ [OK] GET rest.pl/Customer_Search?_keyword=FOO
+
+ [OK] GET rest.pl/Part/12345
+ [ ] GET rest.pl/Part/PARTNUMBER
+ [ ] GET rest.pl/Part_Search?_keyword=red
+
+ [ ] GET rest.pl/SalesOrder/12345
+
+
+=cut
+