Skip to content

Commit 1d081bf

Browse files
committed
minor revision to 1.3.2 to correctly handle hosts running on non-standard ports
1 parent 4dec6ca commit 1d081bf

File tree

5 files changed

+18
-9
lines changed

5 files changed

+18
-9
lines changed

package/LATEST

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pfSense-pkg-FauxAPI-1.3_1.txz
1+
pfSense-pkg-FauxAPI-1.3_2.txz

package/SHA256SUMS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ e06079b5ea7ec0dd32612c324e4dec3aa1720adf573a055b060d4f67344be552 pfSense-pkg-Fa
66
4e93e8ba4266b6524d6347bb15fd7214a8c64a2061517706939f5dc7261d7408 pfSense-pkg-FauxAPI-1.2_1.txz
77
aa01bd1750c325584291f7842ae7c0c20d9b82c9b5fa38bd79cce61c2f88031f pfSense-pkg-FauxAPI-1.2_2.txz
88
cc3d1cac94b9088b13330f72dfbad8a080ca853cd292ad3bbecb5fc6a8497e62 pfSense-pkg-FauxAPI-1.3_1.txz
9+
a1770eebae1acc38c2c28fc227bc64561f4e80b01cc3cbffe3655d02c84673ef pfSense-pkg-FauxAPI-1.3_2.txz
37 KB
Binary file not shown.

pfSense-pkg-FauxAPI/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
PORTNAME= pfSense-pkg-FauxAPI
44
PORTVERSION= 1.3
5-
PORTREVISION= 1
5+
PORTREVISION= 2
66
CATEGORIES= sysutils
77
MASTER_SITES= # empty
88
DISTFILES= # empty

pfSense-pkg-FauxAPI/files/usr/local/www/fauxapi/admin/about.php

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,16 @@
147147
to observe worked examples with the library. Of small note is that the Python
148148
library supports the ability to get and set single sections of the pfSense
149149
system, not just the entire system configuration as with the Bash library.</p>
150-
<p><strong>update-aws-aliases.py</strong> - a reasonable Python based worked example using the API can
151-
be found with <code>update-aws-aliases.py</code> under the <a href="https://github.com/ndejong/pfsense_fauxapi/blob/master/extras/examples"><code>extras/examples</code></a>
152-
path - the tool pulls in the latest AWS <code>ip-ranges.json</code> parses them and injects them
153-
into the aliases section if required.</p>
150+
<p><strong>Python examples</strong></p>
151+
<ul>
152+
<li>
153+
<code>usergroup-management.py</code> - example code that provides the ability to <code>get_users</code>,
154+
<code>add_user</code>, <code>manage_user</code>, <code>remove_user</code> and perform the same functions on groups.</li>
155+
<li>
156+
<code>update-aws-aliases.py</code> - example code that pulls in the latest AWS <code>ip-ranges.json</code>
157+
data, parses it and injects them into the pfSense aliases section if required.</li>
158+
<li><a href="https://github.com/ndejong/pfsense_fauxapi/blob/master/extras/examples">github.com/ndejong/pfsense_fauxapi/blob/master/extras/examples</a></li>
159+
</ul>
154160
<h4>
155161
<a id="user-content-bash" class="anchor" href="#bash" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Bash</h4>
156162
<p>The <a href="https://github.com/ndejong/pfsense_fauxapi/tree/master/extras/client-libs">Bash client library</a>
@@ -166,9 +172,11 @@
166172
to get a better idea how to use it.</p>
167173
<h4>
168174
<a id="user-content-php" class="anchor" href="#php" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>PHP</h4>
169-
<p>A PHP interface does not yet exist, it should be fairly easy to develop by
170-
observing the Bash and Python examples - if you do please submit it as a github
171-
pull request, there are no doubt others that will appreciate a PHP interface.</p>
175+
<p>A PHP client has been developed by a third party and is available here</p>
176+
<ul>
177+
<li><a href="https://github.com/travisghansen/pfsense_fauxapi_php_client">github.com/travisghansen/pfsense_fauxapi_php_client</a></li>
178+
<li><a href="https://packagist.org/packages/travisghansen/pfsense_fauxapi_php_client" rel="nofollow">packagist.org/packages/travisghansen/pfsense_fauxapi_php_client</a></li>
179+
</ul>
172180
<h2>
173181
<a id="user-content-api-authentication" class="anchor" href="#api-authentication" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>API Authentication</h2>
174182
<p>A deliberate design decision to decouple FauxAPI authentication from both the

0 commit comments

Comments
 (0)