forked from jfkw/ledgersmb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrest.pl
executable file
·35 lines (23 loc) · 833 Bytes
/
rest.pl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/perl
use LedgerSMB::RESTXML::Handler;
# To Enable the REST API, Delete these 5 lines.
print "Content-type: text/plain\n\n";
print
"REST API disabled by default until authentication is working correctly\n";
print
"If you understand the security implications of this, and wish to enable the REST api\n";
print "Then open rest.pl, and remove these 5 lines";
exit;
LedgerSMB::RESTXML::Handler->cgi_handle();
=head1 NAME
rest.pl - RESTful interface to LedgerSMB
=head1 SUMMARY
URLS that are working:
[OK] GET rest.pl/Login/Customer/12345
[ ] GET rest.pl/Login/Customer/CUSTOMERNUMBER
[OK] GET rest.pl/Login/Customer_Search?_keyword=FOO
[OK] GET rest.pl/Login/Part/12345
[ ] GET rest.pl/Login/Part/PARTNUMBER
[ ] GET rest.pl/Login/Part_Search?_keyword=red
[ ] GET rest.pl/Login/SalesOrder/12345
=cut