Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.2.0 #71

Merged
merged 67 commits into from
Mar 24, 2021
Merged

v1.2.0 #71

merged 67 commits into from
Mar 24, 2021

Conversation

jaredhendrickson13
Copy link
Owner

@jaredhendrickson13 jaredhendrickson13 commented Feb 4, 2021

  • Adds /api/v1/system/halt endpoint to shutdown pfSense
  • Adds /api/v1/system/reboot endpoint to reboot pfSense
  • Adds /api/v1/firewall/traffic_shaper endpoint to interact with interface traffic shapers
  • Adds /api/v1/firewall/traffic_shaper/queue endpoint to interact with interface traffic shaper queues
  • Adds /api/v1/firewall/traffic_shaper/limiter endpoint to interact with limiters
  • Adds /api/v1/firewall/traffic_shaper/limiter/bandwidth endpoint to interact with limiter bandwidth settings
  • Adds /api/v1/firewall/traffic_shaper/limiter/queue endpoint to interact with limiter queues
  • Adds /api/v1/firewall/schedule endpoint to interact with firewall schedules
  • Adds /api/v1/firewall/schedule/time_range endpoint to interact with schedule time ranges
  • Adds ability to specify firewalls schedule and shapers in firewall rules on /api/v1/firewall/rule endpoint
  • Adds support for PUT requests on /api/v1/system/api to update the API configuration
  • Adds endpoint for /api/v1/services/ntpd to read and update the NTP configuration
  • Adds endpoint for /api/v1/services/ntpd/time_server to add or remove NTP timeservers
  • Adds documentation for NTP endpoints
  • Adds unit tests for NTP endpoints
  • Optimizes /api/v1/firewall/states/size endpoint
  • Overhauls the API settings page with a simpler, more organized design.
  • Adds the custom_headers and allow_options API configuration
  • Updates the /api/v1/system/api endpoint to include new API configuration values
  • Updates APIEndpoint.inc to add custom response headers and OPTIONS requests when configured
  • Updates documentation to include the new configuration options

jaredhendrickson13 and others added 7 commits January 31, 2021 12:15
… documentation to include new endpoint instructions, added new unit tests to test new endpoints
… documentation to include new endpoint instructions, added new unit tests to test new endpoints
…point to allow PUT requests, added unit test to test PUT requests on /api/v1/system/api endpoint, updated docs with instructions for PUT requests on /api/v1/system/api
…point to allow PUT requests, added unit test to test PUT requests on /api/v1/system/api endpoint, updated docs with instructions for PUT requests on /api/v1/system/api
@jaredhendrickson13 jaredhendrickson13 self-assigned this Feb 4, 2021
@jaredhendrickson13 jaredhendrickson13 added the needs testing Features or fixes that require further testing label Feb 4, 2021
@jaredhendrickson13 jaredhendrickson13 changed the title v1.2.0 [WIP] v1.2.0 Feb 4, 2021
@jaredhendrickson13 jaredhendrickson13 linked an issue Feb 4, 2021 that may be closed by this pull request
Update API configuration from API endpoint
@jaredhendrickson13 jaredhendrickson13 linked an issue Feb 4, 2021 that may be closed by this pull request
jaredhendrickson13 and others added 5 commits February 4, 2021 15:38
…delete NTP timeservers. Added API endpoints for /api/v1/services/ntpd and /api/v1/services/ntpd/time_server
…inc, changed APIServicesNTPdTimeServerDelete.inc to assign the default timeserver if all timeservers were removed, fixed interface assignment in APIServicesNTPdUpdate.inc, add nested timeservers call in APIServicesNTPdUpdate.inc to create timeservers using APIServicesNTPdTimeServerCreate.inc
@jaredhendrickson13 jaredhendrickson13 linked an issue Feb 22, 2021 that may be closed by this pull request
@jaredhendrickson13 jaredhendrickson13 linked an issue Feb 25, 2021 that may be closed by this pull request
@mwoolweaver
Copy link

after installing the package provided for 2.6 i got the following crash

Crash report begins.  Anonymous machine information:

amd64
12.2-STABLE
FreeBSD 12.2-STABLE 9758000a7ba(devel-12) pfSense

Crash report details:

PHP Errors:
[26-Feb-2021 23:38:02 US/Central] PHP Warning:  file_get_contents(/usr/local/share/pfSense-pkg-API/backup.json): failed to open stream: No such file or directory in /usr/local/share/pfSense-pkg-API/manage.php on line 61



No FreeBSD crash data found.
			

doesn't seem to be anything major just a missing backup. possibly cause i never made one.

jaredhendrickson13 and others added 18 commits March 12, 2021 22:40
…eues, updated unit test to test queue deletions
…ded documentation for the /api/v1/firewall/traffic_shaper/queue endpoint
… unit tests to to test /api/v1/firewall/schedule/time_range, added support to delete firewall schedules and updated unit tests to test deletions
… firewall schedules, updated unit tests and documentation accordingly
…perLimiterBandwidthCreate models to create limiter/bandwidth objects
…lete models, created unit tests for each, minor validation corrections
…nd delete child queues for limiters, added corresponding unit tests, minor adjustments to traffic shaper application
…ule endpoints, prevented shapers from being deleted while in use, updated unit tests
Firewall Shaper & Schedule Endpoints
@jaredhendrickson13 jaredhendrickson13 changed the title [WIP] v1.2.0 v1.2.0 Mar 18, 2021
@jaredhendrickson13 jaredhendrickson13 linked an issue Mar 18, 2021 that may be closed by this pull request
@jaredhendrickson13
Copy link
Owner Author

jaredhendrickson13 commented Mar 18, 2021

Completed beta builds are ready. Would greatly appreciate anyone willing to test:

pfSense 2.4:
pkg add https://github.com/jaredhendrickson13/pfsense-api/files/6190503/pfSense-2.4-pkg-API-1.2_0beta.zip && /etc/rc.restart_webgui
pfSense 2.5:
pkg add https://github.com/jaredhendrickson13/pfsense-api/files/6190504/pfSense-2.5-pkg-API-1.2_0beta.zip && /etc/rc.restart_webgui
pfSense 2.6:
pkg add https://github.com/jaredhendrickson13/pfsense-api/files/6190505/pfSense-2.6-pkg-API-1.2_0beta.zip && /etc/rc.restart_webgui

pfSense-2.4-pkg-API-1.2_0beta.zip
pfSense-2.5-pkg-API-1.2_0beta.zip
pfSense-2.6-pkg-API-1.2_0beta.zip

@jaredhendrickson13 jaredhendrickson13 merged commit 73e0da9 into master Mar 24, 2021
@jaredhendrickson13 jaredhendrickson13 deleted the v120 branch March 24, 2021 01:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment